Skip to content

Commit

Permalink
update doc redirect URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Nov 12, 2020
1 parent dd63255 commit 3dd42bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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`,
Expand All @@ -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`,
Expand Down Expand Up @@ -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));
}

};
Expand Down
2 changes: 1 addition & 1 deletion static-site/src/components/sars-cov-2/builds.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Index extends React.Component {
<splashStyles.FocusParagraph>
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.
(<a href="https://docs.nextstrain.org/projects/augur/en/migrate-docs/faq/what-is-a-build.html" >See here</a> for more information on what a build is, and see <a href="https://nextstrain.github.io/ncov/">this tutorial</a> for a walkthrough of running your own phylogenetic analysis of SARS-CoV-2 data!)
(<a href="https://docs.nextstrain.org/projects/augur/en/latest/faq/what-is-a-build.html" >See here</a> for more information on what a build is, and see <a href="https://nextstrain.github.io/ncov/">this tutorial</a> 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.
</splashStyles.FocusParagraph>
Expand Down

0 comments on commit 3dd42bc

Please sign in to comment.