Skip to content

Commit

Permalink
Adding sphinx autoapi
Browse files Browse the repository at this point in the history
Sphinx autoapi is added, through this no manual running of sphinx-autodoc is needed.
  • Loading branch information
Malte Jahn committed Sep 14, 2022
1 parent 9fae3ea commit 8c8e6d3
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 299 deletions.
17 changes: 0 additions & 17 deletions doc/api.rst

This file was deleted.

58 changes: 0 additions & 58 deletions doc/api/edisgo.flex_opt.rst

This file was deleted.

42 changes: 0 additions & 42 deletions doc/api/edisgo.io.rst

This file was deleted.

50 changes: 0 additions & 50 deletions doc/api/edisgo.network.rst

This file was deleted.

44 changes: 0 additions & 44 deletions doc/api/edisgo.opf.rst

This file was deleted.

82 changes: 0 additions & 82 deletions doc/api/edisgo.tools.rst

This file was deleted.

5 changes: 0 additions & 5 deletions doc/api/edisgo_class.rst

This file was deleted.

4 changes: 4 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"autoapi.extension",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
Expand All @@ -56,6 +57,9 @@
"sphinx.ext.extlinks", # enables external links with a key
"sphinx_autodoc_typehints",
]
# Autoapi settings
autoapi_type = "python"
autoapi_dirs = ["../edisgo"]

# Napoleon settings
napoleon_google_docstring = True
Expand Down
1 change: 0 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,5 @@ Contents
definitions_and_units
configs
equipment
api
whatsnew
genindex
1 change: 1 addition & 0 deletions rtd_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ sphinx >= 4.3.0, < 5.1.0
sphinx_rtd_theme >=0.5.2
sphinx-autodoc-typehints
geopandas >= 0.9.0
sphinx-autoapi
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def read(fname):
"jupyter_contrib_nbextensions",
"sphinx_rtd_theme",
"sphinx-autodoc-typehints",
"sphinx-autoapi",
"pre-commit",
"black",
"isort",
Expand Down

0 comments on commit 8c8e6d3

Please sign in to comment.