From 155fc58a22d631746436a81119a94c80d6ea2d2b Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 10 Dec 2020 19:21:56 +0100 Subject: docs: add sphinx_autodoc_typehints dep --- docs/conf.py | 6 +++++- docs/requirements.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 208c0cdf..d9397495 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,7 +30,11 @@ release = ".".join(version.split(".")[0:2]) # 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.viewcode', 'sphinx.ext.intersphinx'] +extensions = [ + 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx', + 'sphinx_autodoc_typehints', +] + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 00000000..1fc9d861 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1 @@ +sphinx-autodoc-typehints -- cgit v1.2.3