Skip to content

Commit b1993c5

Browse files
authored
Fix Redirects and Move PyTorch Versions to Getting Started (#83)
While working on moving PyTorch versions to a tab in Getting Started, and setting up a redirect from the old page, I noticed that the docs redirect (with `redirect_url` was clashing with the default redirects using `redirect_from` - if you look at the prod site, you will notice that the latter redirects do not work any longer). So, I changed the layout name of the redirect for docs to `docs_redirect.html` and then the others use the default redirect mechanism provided by the redirect plugin.
1 parent 046b81a commit b1993c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+64
-51
lines changed

_get_started/get-started-via-cloud-partners.md

Lines changed: 1 addition & 1 deletion

_get_started/get-started-via-colab.md

Lines changed: 1 addition & 1 deletion

previous-versions.md renamed to _get_started/previous-versions.md

Lines changed: 16 additions & 3 deletions

_includes/quick_start_local.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p>Select your preferences and run the install command. Please ensure that you are on the latest pip and numpy
22
packages. Anaconda is our recommended package manager. You can also
3-
<a href="{{ site.baseurl }}/previous-versions">install previous versions of PyTorch.</a>
3+
<a href="{{ site.baseurl }}/get-started/previous-versions">install previous versions of PyTorch.</a>
44
</p>
55

66
<div class="row">

_includes/quick_start_module.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h3>Quick Start
88

99
{% include quick_start_local.html %}
1010

11-
<br/><a href="{{ site.baseurl }}/previous-versions">Previous versions of PyTorch</a>
11+
<br/><a href="{{ site.baseurl }}/get-started/previous-versions">Previous versions of PyTorch</a>
1212
</div>
1313

1414
<div class="col-md-4 offset-md-2 cloud-options-col">
File renamed without changes.

docs/0.4.1/autograd.md

Lines changed: 1 addition & 1 deletion

docs/0.4.1/bottleneck.md

Lines changed: 1 addition & 1 deletion

docs/0.4.1/checkpoint.md

Lines changed: 1 addition & 1 deletion

docs/0.4.1/cpp_extenstion.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)