pdj theme

This commit is contained in:
Xi Yan 2024-10-29 15:52:33 -07:00
parent b7f6ea4b58
commit 0f41118f31
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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",
}