From 7f7486840266023b2ae1f381f3ecffce8d3ca766 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Thu, 14 May 2020 09:09:51 -0700 Subject: [PATCH] [website] navigation between doc versions Summary: Add a new section in the docs, creatively named "Versions", with links to the 0.17.0 and "next" version. Staying vague on what "next" points to because I don't know how often we'll be able to update it yet. Reviewed By: ngorogiannis Differential Revision: D21573699 fbshipit-source-id: fc527cf61 --- website/docs/versions.md | 8 ++++++++ website/sidebars.js | 1 + website/versioned_docs/version-0.17.0/versions.md | 8 ++++++++ .../versioned_sidebars/version-0.17.0-sidebars.json | 10 ++++++++++ 4 files changed, 27 insertions(+) create mode 100644 website/docs/versions.md create mode 100644 website/versioned_docs/version-0.17.0/versions.md diff --git a/website/docs/versions.md b/website/docs/versions.md new file mode 100644 index 000000000..7546fbbda --- /dev/null +++ b/website/docs/versions.md @@ -0,0 +1,8 @@ +--- +id: versions +title: Documentation Versions +--- + +Browse the documentation for different versions: +- [latest released version (0.17.0)](/docs/getting-started) +- [next version](/docs/next/getting-started) \ No newline at end of file diff --git a/website/sidebars.js b/website/sidebars.js index a31ba2cb4..72070e3b3 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -32,5 +32,6 @@ module.exports = { "linters-bug-types", ], Contribute: ["absint-framework", "adding-checkers", "internal-API"], + Versions: ["versions"], }, }; diff --git a/website/versioned_docs/version-0.17.0/versions.md b/website/versioned_docs/version-0.17.0/versions.md new file mode 100644 index 000000000..7546fbbda --- /dev/null +++ b/website/versioned_docs/version-0.17.0/versions.md @@ -0,0 +1,8 @@ +--- +id: versions +title: Documentation Versions +--- + +Browse the documentation for different versions: +- [latest released version (0.17.0)](/docs/getting-started) +- [next version](/docs/next/getting-started) \ No newline at end of file diff --git a/website/versioned_sidebars/version-0.17.0-sidebars.json b/website/versioned_sidebars/version-0.17.0-sidebars.json index 3edc9040c..5e176849a 100644 --- a/website/versioned_sidebars/version-0.17.0-sidebars.json +++ b/website/versioned_sidebars/version-0.17.0-sidebars.json @@ -117,6 +117,16 @@ "id": "version-0.17.0/internal-API" } ] + }, + { + "type": "category", + "label": "Versions", + "items": [ + { + "type": "doc", + "id": "version-0.17.0/versions" + } + ] } ] }