Unverified Commit e1bd43cb authored by Brian Johnson's avatar Brian Johnson Committed by GitHub
Browse files

Update sphinx theme (#2031)

* Update requirements.txt

* Update conf.py

* Update conf.py
parent 7ee5a8b7
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
......@@ -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 ------------------------------------------
......
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