Unverified Commit 98f820b1 authored by Ruilong Li(李瑞龙)'s avatar Ruilong Li(李瑞龙) Committed by GitHub
Browse files

swith to pytorch theme (#13)

* swith to pytorch theme

* doc deps
parent f3a7f175
.header-logo {
background-image: url("../images/logo.png");
background-size: 150px 40px;
height: 40px;
width: 150px;
}
\ No newline at end of file
# Configuration file for the Sphinx documentation builder. # Configuration file for the Sphinx documentation builder.
import pytorch_sphinx_theme
# -- Project information # -- Project information
project = "nerfacc" project = "nerfacc"
...@@ -30,7 +32,60 @@ templates_path = ["_templates"] ...@@ -30,7 +32,60 @@ templates_path = ["_templates"]
# -- Options for HTML output # -- Options for HTML output
html_theme = "furo" # html_theme = "furo"
html_theme = "pytorch_sphinx_theme"
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
html_static_path = ["_static"]
html_css_files = ["css/readthedocs.css"]
# Ignore >>> when copying code
copybutton_prompt_text = r">>> |\.\.\. "
copybutton_prompt_is_regexp = True
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
# The target url that the logo directs to. Unset to do nothing
"logo_url": "https://plenoptix-nerfacc.readthedocs-hosted.com/en/latest/index.html",
# "menu" is a list of dictionaries where you can specify the content and the
# behavior of each item in the menu. Each item can either be a link or a
# dropdown menu containing a list of links.
"menu": [
# A link
{"name": "GitHub", "url": "https://github.com/KAIR-BAIR/nerfacc"},
# A dropdown menu
{
"name": "Projects",
"children": [
# A vanilla dropdown item
{
"name": "NeRFactory",
"url": "https://plenoptix-nerfactory.readthedocs-hosted.com/en/latest/?badge=latest",
"description": "The all-in-one repo for NeRFs",
},
],
# Optional, determining whether this dropdown menu will always be
# highlighted.
# "active": True,
},
],
}
# html_theme_options = {
# "canonical_url": "",
# "analytics_id": "",
# "logo_only": False,
# "display_version": True,
# "prev_next_buttons_location": "bottom",
# "style_external_links": False,
# # Toc options
# "collapse_navigation": True,
# "sticky_navigation": True,
# "navigation_depth": 4,
# "includehidden": True,
# "titles_only": False
# }
# -- Options for EPUB output # -- Options for EPUB output
epub_show_urls = "footnote" epub_show_urls = "footnote"
...@@ -21,7 +21,9 @@ docs = [ ...@@ -21,7 +21,9 @@ docs = [
"furo==2022.4.7", "furo==2022.4.7",
"sphinx==4.5.0", "sphinx==4.5.0",
"sphinx-copybutton==0.5.0", "sphinx-copybutton==0.5.0",
"sphinx-design==0.2.0" "sphinx-design==0.2.0",
"pytorch_sphinx_theme @ git+https://github.com/liruilong940607/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme",
"sphinx_copybutton"
] ]
# for development # for development
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment