Skip to content

Commit f2392bb

Browse files
authored
Fix 404.html page and link in the card (#3545)
1 parent 239066d commit f2392bb

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.ci/docker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pandocfilters==1.5.1
1616
markdown==3.8.2
1717

1818
# PyTorch Theme
19-
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@23a72fbf4eb9cbcb7697a71d1889da4d7c10a4f7#egg=pytorch_sphinx_theme2
19+
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@b39e3e1e800132815a6187bf4f7bf545a2e9d8a9#egg=pytorch_sphinx_theme2
2020

2121
# Tutorial dependencies
2222
tqdm==4.66.1

conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ def wrapper(*args, **kwargs):
158158
"author": "PyTorch Contributors",
159159
}
160160

161-
html_additional_pages = {
162-
"404": "404.html",
163-
}
161+
164162

165163
# -- Sphinx-gallery configuration --------------------------------------------
166164

@@ -191,6 +189,11 @@ def wrapper(*args, **kwargs):
191189
},
192190
}
193191

192+
html_additional_pages = {
193+
"404": "404.html",
194+
}
195+
196+
194197
html_baseurl = "https://pytorch.org/tutorials/" # needed for sphinx-sitemap
195198
sitemap_locales = [None]
196199
sitemap_excludes = [

recipes_index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ from our full-length tutorials.
3434
:header: Defining a Neural Network
3535
:card_description: Learn how to use PyTorch's torch.nn package to create and define a neural network for the MNIST dataset.
3636
:image: _static/img/thumbnails/cropped/defining-a-network.PNG
37-
:link: recipesrecipes/defining_a_neural_network.html
37+
:link: recipes/recipes/defining_a_neural_network.html
3838
:tags: Basics
3939

4040
.. customcarditem::

0 commit comments

Comments
 (0)