Skip to content

Commit

Permalink
WIP read numpy-style docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Sep 12, 2024
1 parent dfe4c09 commit f23f5c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
"sphinx.ext.autosectionlabel",
"sphinx.ext.napoleon",
"numpydoc",
# "sphinx.ext.autosummary",
"myst_nb",
Expand Down Expand Up @@ -79,6 +81,16 @@
nb_execution_mode = "off"
suppress_warnings = ["myst.header"] # suppress non-consecutive header warning

# -- Options for autodoc -----------------------------------------------------

# Show the typehints in the description of each object instead of the signature.
autodoc_typehints = "description"

# Show the default value for a parameter after the description within parents, e.g.
# (default: "foo")
typehints_defaults = "braces-after"


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
1 change: 1 addition & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ numpydoc
pybtex
pygithub
sphinx>=4.3
sphinx-autodoc-typehints
sphinx-panels
sphinx_rtd_theme>=1.0
sphinxcontrib-bibtex

0 comments on commit f23f5c2

Please sign in to comment.