Skip to content

Commit 6e579ee

Browse files
committed
Updated to release stylesheet
1 parent 3e73b5b commit 6e579ee

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import os
2121
import sys
2222
sys.path.insert(0, os.path.abspath('.'))
23-
23+
import pytorch_sphinx_theme
2424
import torch
2525
import glob
2626
import shutil
@@ -32,7 +32,7 @@
3232
except ImportError:
3333
import warnings
3434
warnings.warn('unable to load "torchvision" package')
35-
import sphinx_rtd_theme
35+
import pytorch_sphinx_theme
3636

3737
# -- General configuration ------------------------------------------------
3838

@@ -152,10 +152,11 @@
152152
# }
153153

154154

155-
html_theme = 'sphinx_rtd_theme'
156-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
155+
html_theme = 'pytorch_sphinx_theme'
156+
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
157157
html_logo = '_static/img/pytorch-logo-dark.svg'
158158
html_theme_options = {
159+
'pytorch_project': 'tutorials',
159160
'collapse_navigation': False,
160161
'display_version': True,
161162
'logo_only': False,
@@ -221,8 +222,8 @@
221222

222223
def setup(app):
223224
# Custom CSS
224-
app.add_stylesheet('css/pytorch_theme.css')
225-
app.add_stylesheet('https://fonts.googleapis.com/css?family=Lato')
225+
# app.add_stylesheet('css/pytorch_theme.css')
226+
# app.add_stylesheet('https://fonts.googleapis.com/css?family=Lato')
226227
# Custom directives
227228
app.add_directive('includenodoc', IncludeDirective)
228229
app.add_directive('galleryitem', GalleryItemDirective)

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# as pypi package
2+
pytorch_sphinx_theme
3+
14
sphinx
2-
sphinx_rtd_theme
35
sphinx-gallery
46
numpy
57
matplotlib

0 commit comments

Comments
 (0)