From 820ade889f2bd6650886de0a53f561a88c639139 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Fri, 21 Sep 2018 10:44:49 -0700 Subject: [PATCH 1/3] Fix Redirects and Move PyTorch Versions to Getting Started 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 --- _get_started/get-started-via-cloud-partners.md | 2 +- _get_started/get-started-via-colab.md | 2 +- .../previous-versions.md | 17 +++++++++++++++-- _includes/quick_start_local.html | 2 +- _includes/quick_start_module.html | 2 +- _layouts/{redirect.html => docs_redirect.html} | 0 docs/0.4.1/autograd.md | 2 +- docs/0.4.1/bottleneck.md | 2 +- docs/0.4.1/checkpoint.md | 2 +- docs/0.4.1/cpp_extenstion.md | 2 +- docs/0.4.1/cuda.md | 2 +- docs/0.4.1/data.md | 2 +- docs/0.4.1/distributed.md | 2 +- docs/0.4.1/distributions.md | 2 +- docs/0.4.1/ffi.md | 2 +- docs/0.4.1/genindex.md | 2 +- docs/0.4.1/index.md | 2 +- docs/0.4.1/legacy.md | 2 +- docs/0.4.1/model_zoo.md | 2 +- docs/0.4.1/multiprocessing.md | 2 +- docs/0.4.1/nn.md | 2 +- docs/0.4.1/onnx.md | 2 +- docs/0.4.1/optim.md | 2 +- docs/0.4.1/py-modindex.md | 2 +- docs/0.4.1/search.md | 2 +- docs/0.4.1/sparse.md | 2 +- docs/0.4.1/storage.md | 2 +- docs/0.4.1/tensor_attributes.md | 2 +- docs/0.4.1/tensors.md | 2 +- docs/0.4.1/torch.md | 2 +- docs/autograd.md | 2 +- docs/cuda.md | 2 +- docs/data.md | 2 +- docs/distributed.md | 2 +- docs/distributions.md | 2 +- docs/ffi.md | 2 +- docs/genindex.md | 2 +- docs/index.md | 2 +- docs/legacy.md | 2 +- docs/model_zoo.md | 2 +- docs/multiprocessing.md | 2 +- docs/nn.md | 2 +- docs/onnx.md | 2 +- docs/optim.md | 2 +- docs/py-modindex.md | 2 +- docs/search.md | 2 +- docs/sparse.md | 2 +- docs/storage.md | 2 +- docs/tensors.md | 2 +- docs/torch.md | 2 +- 50 files changed, 63 insertions(+), 50 deletions(-) rename previous-versions.md => _get_started/previous-versions.md (97%) rename _layouts/{redirect.html => docs_redirect.html} (100%) diff --git a/_get_started/get-started-via-cloud-partners.md b/_get_started/get-started-via-cloud-partners.md index ab2beb4904d8..04fa87dd62dd 100644 --- a/_get_started/get-started-via-cloud-partners.md +++ b/_get_started/get-started-via-cloud-partners.md @@ -4,7 +4,7 @@ title: Start via Cloud Partners permalink: /get-started/cloud-partners/ background-class: get-started-background body-class: get-started -order: 3 +order: 2 published: true --- diff --git a/_get_started/get-started-via-colab.md b/_get_started/get-started-via-colab.md index 0d51fb6eb9ba..27e54de3b3bd 100644 --- a/_get_started/get-started-via-colab.md +++ b/_get_started/get-started-via-colab.md @@ -4,7 +4,7 @@ title: Try Now via CoLab permalink: /get-started/colab/ background-class: get-started-background body-class: get-started -order: 2 +order: 3 --- ## Try Now via CoLab diff --git a/previous-versions.md b/_get_started/previous-versions.md similarity index 97% rename from previous-versions.md rename to _get_started/previous-versions.md index db66376afc9f..5a1a42b99aa1 100644 --- a/previous-versions.md +++ b/_get_started/previous-versions.md @@ -1,10 +1,15 @@ --- -layout: general +layout: get_started title: Previous PyTorch Versions +permalink: /get-started/previous-versions/ +background-class: get-started-background +body-class: get-started +order: 4 published: true +redirect_from: /previous-versions.html --- -# Installing previous versions of PyTorch +## Installing previous versions of PyTorch We'd prefer you install the [latest version](http://pytorch.org/), but old binaries and installation instructions are provided below for @@ -253,3 +258,11 @@ Linux binaries with CUDA 7.5 support, and Mac OSX & miscellaneous other binaries - [torch_cuda80-0.1.6.post20-cp27-cp27mu-linux_x86_64.whl](http://download.pytorch.org/whl/torch_cuda80-0.1.6.post20-cp27-cp27mu-linux_x86_64.whl) - [torch_cuda80-0.1.6.post17-cp35-cp35m-linux_x86_64.whl](http://download.pytorch.org/whl/torch_cuda80-0.1.6.post17-cp35-cp35m-linux_x86_64.whl) - [torch_cuda80-0.1.6.post17-cp27-cp27mu-linux_x86_64.whl](http://download.pytorch.org/whl/torch_cuda80-0.1.6.post17-cp27-cp27mu-linux_x86_64.whl) + + + + \ No newline at end of file diff --git a/_includes/quick_start_local.html b/_includes/quick_start_local.html index cab48d2cadfb..45e02c645bde 100644 --- a/_includes/quick_start_local.html +++ b/_includes/quick_start_local.html @@ -1,6 +1,6 @@

Select your preferences and run the install command. Please ensure that you are on the latest pip and numpy packages. Anaconda is our recommended package manager. You can also - install previous versions of PyTorch. + install previous versions of PyTorch.

diff --git a/_includes/quick_start_module.html b/_includes/quick_start_module.html index aaa6239081c2..709c5ca3b3f9 100644 --- a/_includes/quick_start_module.html +++ b/_includes/quick_start_module.html @@ -8,7 +8,7 @@

Quick Start {% include quick_start_local.html %} -
Previous versions of PyTorch +
Previous versions of PyTorch

diff --git a/_layouts/redirect.html b/_layouts/docs_redirect.html similarity index 100% rename from _layouts/redirect.html rename to _layouts/docs_redirect.html diff --git a/docs/0.4.1/autograd.md b/docs/0.4.1/autograd.md index efb22a5b0bb1..eab87572c11a 100644 --- a/docs/0.4.1/autograd.md +++ b/docs/0.4.1/autograd.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/autograd.html" --- diff --git a/docs/0.4.1/bottleneck.md b/docs/0.4.1/bottleneck.md index 8168b991a4cf..7275fcd90d09 100644 --- a/docs/0.4.1/bottleneck.md +++ b/docs/0.4.1/bottleneck.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/bottleneck.html" --- diff --git a/docs/0.4.1/checkpoint.md b/docs/0.4.1/checkpoint.md index 7e1241755415..84101c7e2d43 100644 --- a/docs/0.4.1/checkpoint.md +++ b/docs/0.4.1/checkpoint.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/checkpoint.html" --- diff --git a/docs/0.4.1/cpp_extenstion.md b/docs/0.4.1/cpp_extenstion.md index 558587a8bda9..d6198c7db300 100644 --- a/docs/0.4.1/cpp_extenstion.md +++ b/docs/0.4.1/cpp_extenstion.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/cpp_extension.html" --- diff --git a/docs/0.4.1/cuda.md b/docs/0.4.1/cuda.md index 6b1104a71fa4..853cfa9775c3 100644 --- a/docs/0.4.1/cuda.md +++ b/docs/0.4.1/cuda.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/cuda.html" --- diff --git a/docs/0.4.1/data.md b/docs/0.4.1/data.md index 5be03049c1c4..0f118d330a68 100644 --- a/docs/0.4.1/data.md +++ b/docs/0.4.1/data.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/data.html" --- diff --git a/docs/0.4.1/distributed.md b/docs/0.4.1/distributed.md index 1c0f9ff98769..8e104f8b64a4 100644 --- a/docs/0.4.1/distributed.md +++ b/docs/0.4.1/distributed.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/distributed.html" --- diff --git a/docs/0.4.1/distributions.md b/docs/0.4.1/distributions.md index b67fd44866a2..e1074df55718 100644 --- a/docs/0.4.1/distributions.md +++ b/docs/0.4.1/distributions.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/distributions.html" --- diff --git a/docs/0.4.1/ffi.md b/docs/0.4.1/ffi.md index 4c1cbe6e77e0..fefb715d4caa 100644 --- a/docs/0.4.1/ffi.md +++ b/docs/0.4.1/ffi.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/ffi.html" --- diff --git a/docs/0.4.1/genindex.md b/docs/0.4.1/genindex.md index 0a0b6bf0a07a..7637c3a52383 100644 --- a/docs/0.4.1/genindex.md +++ b/docs/0.4.1/genindex.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/genindex.html" --- diff --git a/docs/0.4.1/index.md b/docs/0.4.1/index.md index 7c69f1b73e05..f713a57bdd8b 100644 --- a/docs/0.4.1/index.md +++ b/docs/0.4.1/index.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/index.html" --- diff --git a/docs/0.4.1/legacy.md b/docs/0.4.1/legacy.md index 981e89f6e7dc..543116775567 100644 --- a/docs/0.4.1/legacy.md +++ b/docs/0.4.1/legacy.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/legacy.html" --- diff --git a/docs/0.4.1/model_zoo.md b/docs/0.4.1/model_zoo.md index 318e25782427..6a6fe027361a 100644 --- a/docs/0.4.1/model_zoo.md +++ b/docs/0.4.1/model_zoo.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/model_zoo.html" --- diff --git a/docs/0.4.1/multiprocessing.md b/docs/0.4.1/multiprocessing.md index 944f31746ec0..9d467801787b 100644 --- a/docs/0.4.1/multiprocessing.md +++ b/docs/0.4.1/multiprocessing.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/multiprocessing.html" --- diff --git a/docs/0.4.1/nn.md b/docs/0.4.1/nn.md index fbf876d680fb..f095830fa6ca 100644 --- a/docs/0.4.1/nn.md +++ b/docs/0.4.1/nn.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/nn.html" --- diff --git a/docs/0.4.1/onnx.md b/docs/0.4.1/onnx.md index b612d518694d..74864a5382f7 100644 --- a/docs/0.4.1/onnx.md +++ b/docs/0.4.1/onnx.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/onnx.html" --- diff --git a/docs/0.4.1/optim.md b/docs/0.4.1/optim.md index 7396ebc3e0a9..2f7cce79665b 100644 --- a/docs/0.4.1/optim.md +++ b/docs/0.4.1/optim.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/optim.html" --- diff --git a/docs/0.4.1/py-modindex.md b/docs/0.4.1/py-modindex.md index d36dea0c6aa9..ac1ab0aceb2b 100644 --- a/docs/0.4.1/py-modindex.md +++ b/docs/0.4.1/py-modindex.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/py-modindex.html" --- diff --git a/docs/0.4.1/search.md b/docs/0.4.1/search.md index b8738eedc13e..99b8fbb359d2 100644 --- a/docs/0.4.1/search.md +++ b/docs/0.4.1/search.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/search.html" --- diff --git a/docs/0.4.1/sparse.md b/docs/0.4.1/sparse.md index 2d16cfd6b55f..e4d92969e5bf 100644 --- a/docs/0.4.1/sparse.md +++ b/docs/0.4.1/sparse.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/sparse.html" --- diff --git a/docs/0.4.1/storage.md b/docs/0.4.1/storage.md index 6aa0d6e16f0f..cdc3a15adb25 100644 --- a/docs/0.4.1/storage.md +++ b/docs/0.4.1/storage.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/storage.html" --- diff --git a/docs/0.4.1/tensor_attributes.md b/docs/0.4.1/tensor_attributes.md index f2b8bcbf91be..bd06fb3558e9 100644 --- a/docs/0.4.1/tensor_attributes.md +++ b/docs/0.4.1/tensor_attributes.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/tensor_attributes.html" --- diff --git a/docs/0.4.1/tensors.md b/docs/0.4.1/tensors.md index 250b5a2d37de..8b16ffb891cb 100644 --- a/docs/0.4.1/tensors.md +++ b/docs/0.4.1/tensors.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/tensors.html" --- diff --git a/docs/0.4.1/torch.md b/docs/0.4.1/torch.md index 16526fa7c070..b81382d183b5 100644 --- a/docs/0.4.1/torch.md +++ b/docs/0.4.1/torch.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/torch.html" --- diff --git a/docs/autograd.md b/docs/autograd.md index efb22a5b0bb1..eab87572c11a 100644 --- a/docs/autograd.md +++ b/docs/autograd.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/autograd.html" --- diff --git a/docs/cuda.md b/docs/cuda.md index 6b1104a71fa4..853cfa9775c3 100644 --- a/docs/cuda.md +++ b/docs/cuda.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/cuda.html" --- diff --git a/docs/data.md b/docs/data.md index 5be03049c1c4..0f118d330a68 100644 --- a/docs/data.md +++ b/docs/data.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/data.html" --- diff --git a/docs/distributed.md b/docs/distributed.md index 1c0f9ff98769..8e104f8b64a4 100644 --- a/docs/distributed.md +++ b/docs/distributed.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/distributed.html" --- diff --git a/docs/distributions.md b/docs/distributions.md index b67fd44866a2..e1074df55718 100644 --- a/docs/distributions.md +++ b/docs/distributions.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/distributions.html" --- diff --git a/docs/ffi.md b/docs/ffi.md index 4c1cbe6e77e0..fefb715d4caa 100644 --- a/docs/ffi.md +++ b/docs/ffi.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/ffi.html" --- diff --git a/docs/genindex.md b/docs/genindex.md index 0a0b6bf0a07a..7637c3a52383 100644 --- a/docs/genindex.md +++ b/docs/genindex.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/genindex.html" --- diff --git a/docs/index.md b/docs/index.md index 7c69f1b73e05..f713a57bdd8b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/index.html" --- diff --git a/docs/legacy.md b/docs/legacy.md index 981e89f6e7dc..543116775567 100644 --- a/docs/legacy.md +++ b/docs/legacy.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/legacy.html" --- diff --git a/docs/model_zoo.md b/docs/model_zoo.md index 318e25782427..6a6fe027361a 100644 --- a/docs/model_zoo.md +++ b/docs/model_zoo.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/model_zoo.html" --- diff --git a/docs/multiprocessing.md b/docs/multiprocessing.md index 944f31746ec0..9d467801787b 100644 --- a/docs/multiprocessing.md +++ b/docs/multiprocessing.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/multiprocessing.html" --- diff --git a/docs/nn.md b/docs/nn.md index fbf876d680fb..f095830fa6ca 100644 --- a/docs/nn.md +++ b/docs/nn.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/nn.html" --- diff --git a/docs/onnx.md b/docs/onnx.md index b612d518694d..74864a5382f7 100644 --- a/docs/onnx.md +++ b/docs/onnx.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/onnx.html" --- diff --git a/docs/optim.md b/docs/optim.md index 7396ebc3e0a9..2f7cce79665b 100644 --- a/docs/optim.md +++ b/docs/optim.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/optim.html" --- diff --git a/docs/py-modindex.md b/docs/py-modindex.md index d36dea0c6aa9..ac1ab0aceb2b 100644 --- a/docs/py-modindex.md +++ b/docs/py-modindex.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/py-modindex.html" --- diff --git a/docs/search.md b/docs/search.md index b8738eedc13e..99b8fbb359d2 100644 --- a/docs/search.md +++ b/docs/search.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/search.html" --- diff --git a/docs/sparse.md b/docs/sparse.md index 2d16cfd6b55f..e4d92969e5bf 100644 --- a/docs/sparse.md +++ b/docs/sparse.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/sparse.html" --- diff --git a/docs/storage.md b/docs/storage.md index 6aa0d6e16f0f..cdc3a15adb25 100644 --- a/docs/storage.md +++ b/docs/storage.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/storage.html" --- diff --git a/docs/tensors.md b/docs/tensors.md index 250b5a2d37de..8b16ffb891cb 100644 --- a/docs/tensors.md +++ b/docs/tensors.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/tensors.html" --- diff --git a/docs/torch.md b/docs/torch.md index 16526fa7c070..b81382d183b5 100644 --- a/docs/torch.md +++ b/docs/torch.md @@ -1,5 +1,5 @@ --- -layout: redirect +layout: docs_redirect title: PyTorch | Redirect redirect_url: "/docs/stable/torch.html" --- From 1f09b20d0d136983bf6b932714b5ec8bcd1b3945 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Fri, 21 Sep 2018 11:01:26 -0700 Subject: [PATCH 2/3] Point to getting started locally for latest version --- _get_started/previous-versions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_get_started/previous-versions.md b/_get_started/previous-versions.md index 5a1a42b99aa1..e76800d13aa4 100644 --- a/_get_started/previous-versions.md +++ b/_get_started/previous-versions.md @@ -7,11 +7,12 @@ body-class: get-started order: 4 published: true redirect_from: /previous-versions.html +r --- ## Installing previous versions of PyTorch -We'd prefer you install the [latest version](http://pytorch.org/), +We'd prefer you install the [latest version](http://pytorch.org/get-started/locally), but old binaries and installation instructions are provided below for your convenience. From 70b240eed6996f36cdc8cace977f9c3206497efd Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Fri, 21 Sep 2018 11:07:47 -0700 Subject: [PATCH 3/3] Remove rogue char --- _get_started/previous-versions.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_get_started/previous-versions.md b/_get_started/previous-versions.md index e76800d13aa4..202daf80b6fd 100644 --- a/_get_started/previous-versions.md +++ b/_get_started/previous-versions.md @@ -7,7 +7,6 @@ body-class: get-started order: 4 published: true redirect_from: /previous-versions.html -r --- ## Installing previous versions of PyTorch