Skip to content

Updated to release stylesheet #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import os
import sys
sys.path.insert(0, os.path.abspath('.'))

import pytorch_sphinx_theme
import torch
import glob
import shutil
Expand All @@ -32,7 +32,7 @@
except ImportError:
import warnings
warnings.warn('unable to load "torchvision" package')
import sphinx_rtd_theme
import pytorch_sphinx_theme

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -152,10 +152,11 @@
# }


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()]
html_logo = '_static/img/pytorch-logo-dark.svg'
html_theme_options = {
'pytorch_project': 'tutorials',
'collapse_navigation': False,
'display_version': True,
'logo_only': False,
Expand Down Expand Up @@ -221,8 +222,8 @@

def setup(app):
# Custom CSS
app.add_stylesheet('css/pytorch_theme.css')
app.add_stylesheet('https://fonts.googleapis.com/css?family=Lato')
# app.add_stylesheet('css/pytorch_theme.css')
# app.add_stylesheet('https://fonts.googleapis.com/css?family=Lato')
# Custom directives
app.add_directive('includenodoc', IncludeDirective)
app.add_directive('galleryitem', GalleryItemDirective)
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# as pypi package
pytorch_sphinx_theme

sphinx
sphinx_rtd_theme
sphinx-gallery
numpy
matplotlib
Expand Down