Skip to content

Commit

Permalink
improve docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jan 16, 2025
1 parent 51273d6 commit 055e9b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.napoleon', # must go **before** typehints below
'sphinx_autodoc_typehints',
'sphinx.ext.autosummary',
'sphinx.ext.extlinks',
'sphinx.ext.todo',
'sphinx.ext.ifconfig',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'enum_tools.autoenum',
]

Expand Down Expand Up @@ -226,3 +226,9 @@

# If false, no module index is generated.
# latex_use_modindex = True

# For sphinx-autodoc-typehints
always_use_bars_union = True
typehints_defaults = 'comma'
typehints_use_signature = True
typehints_use_signature_return = True

0 comments on commit 055e9b8

Please sign in to comment.