Skip to content

Commit f4dda5d

Browse files
committed
Update
1 parent 3569db3 commit f4dda5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def wrapper(*args, **kwargs):
9696
except ImportError:
9797
import warnings
9898
warnings.warn('unable to load "torchvision" package')
99-
import pytorch_sphinx_theme
10099

101100
rst_epilog ="""
102101
.. |edit| image:: /_static/pencil-16.png
@@ -249,7 +248,10 @@ def wrapper(*args, **kwargs):
249248
distutils.file_util.copy_file(f, gallery_subdir_path, update=True)
250249

251250
# Add any paths that contain templates here, relative to this directory.
252-
templates_path = ['_templates']
251+
templates_path = [
252+
"_templates",
253+
os.path.join(os.path.dirname(pytorch_sphinx_theme2.__file__), "templates"),
254+
]
253255

254256
# The suffix(es) of source filenames.
255257
# You can specify multiple suffix as a list of string:

0 commit comments

Comments
 (0)