From 335d035a93fca475ec265021d7ffea07734ae3e1 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Tue, 29 Oct 2024 15:42:15 -0700 Subject: [PATCH] theme --- docs/requirements.txt | 2 ++ docs/source/conf.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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"]