Skip to content

Commit 7340002

Browse files
authored
Show all Learn the Basics content in the Left Nav (#1468)
* Show all Learn the Basics content in the Left Nav Testing out the look of creating a separate heading in the left nav for all the learn the basics content. * Collapse Learning PyTorch by default With the addition of the Introduction to PyTorch (Learn the Basics) section on the left nav, we now want to collapse the original Learning PyTorch section.
1 parent 0fb2781 commit 7340002

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</noscript>
7676

7777
<script type="text/javascript">
78-
var collapsedSections = ['PyTorch Recipes', 'Image and Video', 'Audio', 'Text', 'Reinforcement Learning', 'Deploying PyTorch Models in Production', 'Code Transforms with FX', 'Frontend APIs', 'Extending PyTorch', 'Model Optimization', 'Parallel and Distributed Training', 'Mobile'];
78+
var collapsedSections = ['PyTorch Recipes', 'Learning PyTorch', 'Image and Video', 'Audio', 'Text', 'Reinforcement Learning', 'Deploying PyTorch Models in Production', 'Code Transforms with FX', 'Frontend APIs', 'Extending PyTorch', 'Model Optimization', 'Parallel and Distributed Training', 'Mobile'];
7979
</script>
8080

8181
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/795629140/?label=txkmCPmdtosBENSssfsC&amp;guid=ON&amp;script=0"/>

index.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,24 @@ Additional Resources
531531
:maxdepth: 2
532532
:hidden:
533533
:includehidden:
534-
:caption: Learning PyTorch
534+
:caption: Introduction to PyTorch
535535

536536
beginner/basics/intro
537+
beginner/basics/quickstart_tutorial
538+
beginner/basics/tensorqs_tutorial
539+
beginner/basics/data_tutorial
540+
beginner/basics/transforms_tutorial
541+
beginner/basics/buildmodel_tutorial
542+
beginner/basics/autogradqs_tutorial
543+
beginner/basics/optimization_tutorial
544+
beginner/basics/saveloadrun_tutorial
545+
546+
.. toctree::
547+
:maxdepth: 2
548+
:hidden:
549+
:includehidden:
550+
:caption: Learning PyTorch
551+
537552
beginner/deep_learning_60min_blitz
538553
beginner/pytorch_with_examples
539554
beginner/nn_tutorial

0 commit comments

Comments
 (0)