Skip to content

Commit f327c36

Browse files
author
Martin Journois
committed
Use sphinxcontrib-napoleon
1 parent f827aa3 commit f327c36

4 files changed

Lines changed: 7 additions & 36 deletions

File tree

docs/_themes/f6/README.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Add any Sphinx extension module names here, as strings. They can be extensions
2727
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28-
extensions = ['sphinx.ext.autodoc']
28+
extensions = ['sphinx.ext.autodoc', 'sphinxcontrib.napoleon']
2929

3030
# Add any paths that contain templates here, relative to this directory.
3131
templates_path = ['_templates']

docs/installing.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Easiest
1919
::
2020

2121
$pip install folium
22+
2223
Or from the source
2324

2425
$python setup.py install
@@ -69,14 +70,16 @@ To build the docs, you'll also need to install:
6970
::
7071

7172
sphinx
73+
sphinxcontrib-napoleon
7274

7375
Then go in folium base folder (`~/sandbox/folium` for example)
7476
::
7577

7678
$ cd ~/sandbox/folium
7779

78-
Run the test
80+
Build the docs
7981
::
8082

81-
$ sphinx-build -b html docs/ docs/_build/html
83+
$ rm -rf docs/_build; sphinx-build -b html docs/ docs/_build/html
8284

85+
Then the documentation is in `docs/_build/html/index.html`.

docs/module.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.. _module::
21
ModuleDescription
32
*****************
43

@@ -7,7 +6,7 @@ ModuleDescription
76

87
.. toctree::
98
:maxdepth: 3
10-
9+
1110
module/element
1211

1312
:doc:`Map </module/map>`

0 commit comments

Comments
 (0)