diff --git a/docs/requirements.txt b/docs/requirements.txt index f1f94c681..7b9ff3ada 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,5 @@ sphinx myst-parser linkify +sphinx==5.0.0 +-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme diff --git a/docs/source/conf.py b/docs/source/conf.py index 8f1d4b6ef..0223a75c7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,7 +19,11 @@ author = "Meta" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ["myst_parser"] +extensions = ["myst_parser", "sphinx_rtd_theme"] + +html_theme = "sphinx_rtd_theme" +html_theme = "pytorch_sphinx_theme" + templates_path = ["_templates"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]