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
vision
Commits
e1bd43cb
Unverified
Commit
e1bd43cb
authored
Mar 31, 2020
by
Brian Johnson
Committed by
GitHub
Mar 31, 2020
Browse files
Update sphinx theme (#2031)
* Update requirements.txt * Update conf.py * Update conf.py
parent
7ee5a8b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
docs/requirements.txt
docs/requirements.txt
+1
-1
docs/source/conf.py
docs/source/conf.py
+10
-9
No files found.
docs/requirements.txt
View file @
e1bd43cb
sphinx==1.7.3
sphinxcontrib-googleanalytics
-e git://github.com/
snide/
sphinx_
rtd_
theme.git#egg=sphinx_
rtd_
theme
-e
git+
git://github.com/
pytorch/pytorch_
sphinx_theme.git#egg=
pytorch_
sphinx_theme
docs/source/conf.py
View file @
e1bd43cb
...
...
@@ -22,7 +22,7 @@
# sys.path.insert(0, os.path.abspath('.'))
import
torch
import
torchvision
import
sphinx_
rtd_
theme
import
pytorch_
sphinx_theme
# -- General configuration ------------------------------------------------
...
...
@@ -104,8 +104,8 @@ todo_include_todos = True
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme
=
'sphinx_
rtd_
theme'
html_theme_path
=
[
sphinx_
rtd_
theme
.
get_html_theme_path
()]
html_theme
=
'
pytorch_
sphinx_theme'
html_theme_path
=
[
pytorch_
sphinx_theme
.
get_html_theme_path
()]
# 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
...
...
@@ -115,6 +115,7 @@ html_theme_options = {
'collapse_navigation'
:
False
,
'display_version'
:
True
,
'logo_only'
:
True
,
'pytorch_project'
:
'docs'
,
}
html_logo
=
'_static/img/pytorch-logo-dark.svg'
...
...
@@ -125,12 +126,12 @@ html_logo = '_static/img/pytorch-logo-dark.svg'
html_static_path
=
[
'_static'
]
# html_style_path = 'css/pytorch_theme.css'
html_context
=
{
'css_files'
:
[
'https://fonts.googleapis.com/css?family=Lato'
,
'_static/css/pytorch_theme.css'
],
}
#
html_context = {
#
'css_files': [
#
'https://fonts.googleapis.com/css?family=Lato',
#
'_static/css/pytorch_theme.css'
#
],
#
}
# -- Options for HTMLHelp output ------------------------------------------
...
...
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