Skip to content

Commit 546b2e0

Browse files
authored
Merge pull request #116 from pyiron/apidoc
Add API documentation
2 parents 69829c9 + b25def0 commit 546b2e0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/source/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# -- General configuration ---------------------------------------------------
1414
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1515

16-
extensions = ["myst_parser"]
16+
extensions = ["myst_parser", 'sphinx.ext.autodoc']
1717

1818
templates_path = ['_templates']
1919
exclude_patterns = []
@@ -25,3 +25,10 @@
2525

2626
html_theme = 'alabaster'
2727
html_static_path = ['_static']
28+
29+
30+
# -- Generate API documentation ----------------------------------------------
31+
# https://www.sphinx-doc.org/en/master/man/sphinx-apidoc.html
32+
33+
from sphinx.ext.apidoc import main
34+
main(['-e', '-o', 'apidoc', '../../pympipool/', '--force'])

docs/source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ Documentation
3636
installation
3737
interfaces
3838
development
39+
40+
* :ref:`modindex`

0 commit comments

Comments
 (0)