diff --git a/.ci/docker/requirements.txt b/.ci/docker/requirements.txt index 631a40d808..a4e07afd8e 100644 --- a/.ci/docker/requirements.txt +++ b/.ci/docker/requirements.txt @@ -16,7 +16,7 @@ pandocfilters==1.5.1 markdown==3.8.2 # PyTorch Theme --e git+https://github.com/pytorch/pytorch_sphinx_theme.git@23a72fbf4eb9cbcb7697a71d1889da4d7c10a4f7#egg=pytorch_sphinx_theme2 +-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@b39e3e1e800132815a6187bf4f7bf545a2e9d8a9#egg=pytorch_sphinx_theme2 # Tutorial dependencies tqdm==4.66.1 diff --git a/conf.py b/conf.py index 6b50bf4ce4..f0a55898a4 100644 --- a/conf.py +++ b/conf.py @@ -158,9 +158,7 @@ def wrapper(*args, **kwargs): "author": "PyTorch Contributors", } -html_additional_pages = { - "404": "404.html", -} + # -- Sphinx-gallery configuration -------------------------------------------- @@ -191,6 +189,11 @@ def wrapper(*args, **kwargs): }, } +html_additional_pages = { + "404": "404.html", +} + + html_baseurl = "https://pytorch.org/tutorials/" # needed for sphinx-sitemap sitemap_locales = [None] sitemap_excludes = [ diff --git a/recipes_index.rst b/recipes_index.rst index 53239633b6..d3cf87b381 100644 --- a/recipes_index.rst +++ b/recipes_index.rst @@ -34,7 +34,7 @@ from our full-length tutorials. :header: Defining a Neural Network :card_description: Learn how to use PyTorch's torch.nn package to create and define a neural network for the MNIST dataset. :image: _static/img/thumbnails/cropped/defining-a-network.PNG - :link: recipesrecipes/defining_a_neural_network.html + :link: recipes/recipes/defining_a_neural_network.html :tags: Basics .. customcarditem::