Skip to content

Commit

Permalink
Remove dependency on sphinx_autodoc_typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Apr 29, 2024
1 parent b44e9bf commit 55e3be6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.9"
python: "3.10"

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
9 changes: 2 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'matplotlib.sphinxext.plot_directive',
'sphinx_autodoc_typehints',
'myst_nb',
"sphinx_remove_toctrees",
'sphinx_copybutton',
Expand Down Expand Up @@ -294,17 +293,13 @@

# -- Extension configuration -------------------------------------------------

# Tell sphinx-autodoc-typehints to generate stub parameter annotations including
# types, even if the parameters aren't explicitly documented.
always_document_param_types = True


# Tell sphinx autodoc how to render type aliases.
autodoc_typehints = "description"
autodoc_typehints_description_target = "all"
autodoc_type_aliases = {
'ArrayLike': 'jax.typing.ArrayLike',
'DTypeLike': 'jax.typing.DTypeLike',
}


# Remove auto-generated API docs from sidebars. They take too long to build.
remove_from_toctrees = ["_autosummary/*"]
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
absl-py
ipython>=8.8.0 # 8.7.0 has ipython3 lexer error
sphinx>=7.3.2 # 7.3.0 breaks sphinx-book-theme
sphinx-autodoc-typehints
sphinx-book-theme>=1.0.1 # Older versions fail to pin pydata-sphinx-theme
sphinx-copybutton>=0.5.0
sphinx-remove-toctrees
Expand Down

0 comments on commit 55e3be6

Please sign in to comment.