Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nerfacc
Commits
98f820b1
"tests/vscode:/vscode.git/clone" did not exist on "2e5203be043f107eae5c1b6788584d199f403286"
Unverified
Commit
98f820b1
authored
Sep 16, 2022
by
Ruilong Li(李瑞龙)
Committed by
GitHub
Sep 16, 2022
Browse files
swith to pytorch theme (#13)
* swith to pytorch theme * doc deps
parent
f3a7f175
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
2 deletions
+65
-2
docs/source/_static/css/readthedocs.css
docs/source/_static/css/readthedocs.css
+6
-0
docs/source/_static/images/logo.png
docs/source/_static/images/logo.png
+0
-0
docs/source/conf.py
docs/source/conf.py
+56
-1
pyproject.toml
pyproject.toml
+3
-1
No files found.
docs/source/_static/css/readthedocs.css
0 → 100644
View file @
98f820b1
.header-logo
{
background-image
:
url("../images/logo.png")
;
background-size
:
150px
40px
;
height
:
40px
;
width
:
150px
;
}
\ No newline at end of file
docs/source/_static/images/logo.png
0 → 100644
View file @
98f820b1
21.8 KB
docs/source/conf.py
View file @
98f820b1
# Configuration file for the Sphinx documentation builder.
import
pytorch_sphinx_theme
# -- Project information
project
=
"nerfacc"
...
...
@@ -30,7 +32,60 @@ templates_path = ["_templates"]
# -- 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
epub_show_urls
=
"footnote"
pyproject.toml
View file @
98f820b1
...
...
@@ -21,7 +21,9 @@ docs = [
"furo==2022.4.7"
,
"sphinx==4.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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment