Skip to content

Commit 321a507

Browse files
committed
Add API documentation
1 parent ab7c817 commit 321a507

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

docs/conf.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,20 @@
3838
# If your documentation needs a minimal Sphinx version, state it here.
3939
#needs_sphinx = '1.0'
4040

41+
42+
4143
# Add any Sphinx extension module names here, as strings. They can be
4244
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
43-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
45+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode',
46+
'sphinx.ext.autosummary',
47+
'numpydoc']
4448

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

52+
autosummary_generate = True
53+
numpydoc_show_class_members = False
54+
4855
# The suffix of source filenames.
4956
source_suffix = '.rst'
5057

docs/index.rst

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Contents:
1818
authors
1919
history
2020

21+
.. autosummary::
22+
:toctree: generated/
23+
24+
gitgoing.mean_plus_one
25+
gitgoing.std_plus_one
26+
gitgoing.cv
27+
2128
Indices and tables
2229
==================
2330

docs/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Sphinx
22
fabric
33
sphinx_bootstrap_theme
4-
pandoc
4+
pandoc
5+
numpydoc

0 commit comments

Comments
 (0)