diff --git a/docs/requirements.txt b/docs/requirements.txt index 5c9ef500f..cc0255ff0 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,7 @@ # For generating documentation. -Sphinx < 7 +Sphinx < 9 sphinx-rtd-theme # documentation theme -sphinx_autodoc_typehints == 1.21.3 +sphinx_autodoc_typehints == 2.5.0 nbsphinx nbsphinx-link ipython >= 8.10 # Avoids bug with code highlighting diff --git a/docs/source/conf.py b/docs/source/conf.py index e40503e2a..7e4365bf6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -73,12 +73,20 @@ # Source file suffixes source_suffix = [".rst", ".md"] +# Suppress warnings +suppress_warnings = ["config.cache"] + # Autodoc config autosummary_generate = True autodoc_member_order = "bysource" autodoc_typehints = "none" typehints_defaults = "comma" +autodoc_type_aliases = { + "ArrayLike": "ArrayLike", + "QubitId": "QubitId", +} + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for