Skip to content

Commit

Permalink
setup autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jsta committed Dec 18, 2024
1 parent f5c3d8d commit 4588a11
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,17 @@

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
import os
import sys
import hydropop
sys.path.insert(0, os.path.abspath("../"))

extensions = []
extensions = ["sphinx.ext.autodoc", "sphinx.ext.autosummary"]

autosummary_generate = True
autodoc_member_order = "bysource"
# Remove parentheses from functions cross-referenced
add_function_parentheses = False

templates_path = ["_templates"]
exclude_patterns = []
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Welcome to hpdocs's documentation!
pages/installation
pages/hpdata
pages/terminology
pages/api


.. Indices and tables
Expand Down
10 changes: 10 additions & 0 deletions docs/source/pages/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. currentmodule:: hydropop

API
===

hp_utils
----------------------------

.. automodule:: hydropop.hp_utils
:members:

0 comments on commit 4588a11

Please sign in to comment.