File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 20
20
import os
21
21
import sys
22
22
sys .path .insert (0 , os .path .abspath ('.' ))
23
-
23
+ import pytorch_sphinx_theme
24
24
import torch
25
25
import glob
26
26
import shutil
32
32
except ImportError :
33
33
import warnings
34
34
warnings .warn ('unable to load "torchvision" package' )
35
- import sphinx_rtd_theme
35
+ import pytorch_sphinx_theme
36
36
37
37
# -- General configuration ------------------------------------------------
38
38
152
152
# }
153
153
154
154
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 ()]
157
157
html_logo = '_static/img/pytorch-logo-dark.svg'
158
158
html_theme_options = {
159
+ 'pytorch_project' : 'tutorials' ,
159
160
'collapse_navigation' : False ,
160
161
'display_version' : True ,
161
162
'logo_only' : False ,
221
222
222
223
def setup (app ):
223
224
# 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')
226
227
# Custom directives
227
228
app .add_directive ('includenodoc' , IncludeDirective )
228
229
app .add_directive ('galleryitem' , GalleryItemDirective )
Original file line number Diff line number Diff line change
1
+ # as pypi package
2
+ pytorch_sphinx_theme
3
+
1
4
sphinx
2
- sphinx_rtd_theme
3
5
sphinx-gallery
4
6
numpy
5
7
matplotlib
You can’t perform that action at this time.
0 commit comments