From 3dd42bcb4ae7782d391cf0ad0a288c452fb147b9 Mon Sep 17 00:00:00 2001 From: james hadfield Date: Thu, 12 Nov 2020 15:12:22 +1300 Subject: [PATCH] update doc redirect URLs --- redirects.js | 19 ++++++++++++------- .../src/components/sars-cov-2/builds.jsx | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/redirects.js b/redirects.js index 1acd53d53..7db3f7755 100644 --- a/redirects.js +++ b/redirects.js @@ -5,7 +5,7 @@ const setup = (app) => { /* send auspice to the auspice docs (currently hosted on docs.nextstrain.org) */ app.route("/auspice") - .get((req, res) => res.redirect('https://docs.nextstrain.org/projects/auspice/en/migrate-docs/')); + .get((req, res) => res.redirect('https://docs.nextstrain.org/projects/auspice/en/latest/')); /* we don't yet have a community page */ app.route("/community") @@ -52,10 +52,15 @@ const setup = (app) => { conflates a language part ("zh") with a region ("europe") so we want to keep zh out of the manifest JSON */ app.route("/ncov/zh").get((req, res) => res.redirect("/ncov/global/zh")); - // DOCS, HELP Redirects for docs migration: + /** + * DOCS & HELP Redirects + * In November 2020 we shifted the docs from being hosted by this server + * at nextstrain.org/docs and nextstrain.org/help + * to a Read The Docs setup running at docs.nextstrain.org. + * This block contains the appropriate redirects + */ const mainReadTheDocs = "https://docs.nextstrain.org/en/latest"; - const augurReadTheDocs = "https://docs.nextstrain.org/projects/augur/en/migrate-docs"; - + const augurReadTheDocs = "https://docs.nextstrain.org/projects/augur/en/latest"; const docsRedirects = { "/docs": `${mainReadTheDocs}`, "/help": `${mainReadTheDocs}/learn/about-nextstrain.html`, @@ -71,8 +76,8 @@ const setup = (app) => { "/docs/getting-started/container-installation": `${mainReadTheDocs}/guides/install/cli-install.html`, "/docs/getting-started/quickstart": `${mainReadTheDocs}/tutorials/quickstart.html`, "/docs/getting-started/windows-help": `${mainReadTheDocs}/guides/install/windows-help.html`, - "/docs/bioinformatics/introduction-to-augur": `${augurReadTheDocs}/faq/introduction-to-augur.html`, - "/docs/bioinformatics/introduction": `${augurReadTheDocs}/faq/introduction-to-augur.html`, + "/docs/bioinformatics/introduction-to-augur": `${augurReadTheDocs}/index.html`, + "/docs/bioinformatics/introduction": `${augurReadTheDocs}/faq/index.html`, "/docs/bioinformatics/what-is-a-build": `${augurReadTheDocs}/faq/what-is-a-build.html`, "/docs/bioinformatics/data-formats": `${mainReadTheDocs}/reference/formats/data-formats.html`, "/docs/bioinformatics/output-jsons": `${mainReadTheDocs}/reference/formats/data-formats.html`, @@ -110,7 +115,7 @@ const setup = (app) => { for (const [from, to] of Object.entries(docsRedirects)) { app.route([from]) - .get((req, res) => res.redirect(to)); + .get((req, res) => res.redirect(to)); } }; diff --git a/static-site/src/components/sars-cov-2/builds.jsx b/static-site/src/components/sars-cov-2/builds.jsx index d6508e17a..7dbc15c5e 100644 --- a/static-site/src/components/sars-cov-2/builds.jsx +++ b/static-site/src/components/sars-cov-2/builds.jsx @@ -74,7 +74,7 @@ class Index extends React.Component { This section is an index of public Nextstrain builds (datasets) for SARS-CoV-2, organized by geography. Some of these builds are maintained by the nextstrain team and others are maintained by independent research groups. - (See here for more information on what a build is, and see this tutorial for a walkthrough of running your own phylogenetic analysis of SARS-CoV-2 data!) + (See here for more information on what a build is, and see this tutorial for a walkthrough of running your own phylogenetic analysis of SARS-CoV-2 data!) If you know of a build not listed here, please let us know! Please note that inclusion on this list does not indicate an endorsement by the Nextstrain team.