From 0f41118f31d57bb2c1a52e2ed4bb0145e5d13ba0 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Tue, 29 Oct 2024 15:52:33 -0700 Subject: [PATCH] pdj theme --- docs/requirements.txt | 1 + docs/source/conf.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 94b3dfede..962fb3002 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,3 +3,4 @@ myst-parser linkify -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme sphinx-rtd-theme>=1.0.0 +sphinx-pdj-theme diff --git a/docs/source/conf.py b/docs/source/conf.py index bcf3adc9f..93bac7e05 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -20,8 +20,12 @@ author = "Meta" # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = ["myst_parser", "sphinx_rtd_theme"] +import sphinx_pdj_theme -html_theme = "sphinx_rtd_theme" +html_theme = "sphinx_pdj_theme" +html_theme_path = [sphinx_pdj_theme.get_html_theme_path()] + +# html_theme = "sphinx_rtd_theme" # html_theme = "pytorch_sphinx_theme" # html_theme_path = ["../pytorch_sphinx_theme"] @@ -49,7 +53,7 @@ myst_enable_extensions = [ # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = "alabaster" +# html_theme = "alabaster" html_theme_options = { "canonical_url": "https://github.com/meta-llama/llama-stack", }