diff --git a/docs/requirements.txt b/docs/requirements.txt index 4c94a44e1dc8..1276fce2a839 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,3 @@ -sphinx==3.2.1 +sphinx==3.4.3 -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme sphinxcontrib-katex diff --git a/docs/source/conf.py b/docs/source/conf.py index a69170d460c4..6d76d5276165 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -206,8 +206,10 @@ # -- Type hints configs ------------------------------------------------------ +autodoc_inherit_docstrings = True autoclass_content = "both" autodoc_typehints = "description" +napoleon_attr_annotations = True # -- A patch that turns-off cross refs for type annotations ------------------