From 4dcc9e979c9cf0fa2268e0084cb4de55f70b8cc7 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 7 Dec 2020 22:07:02 +0100 Subject: [PATCH] docs: add version dropdown and v0.34 docs(#5762) Co-authored-by: Cyrus Goh --- docs/.vuepress/config.js | 29 ++++++++++++++++++----------- docs/versions | 5 +++-- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index a5e705bf3..2e976d6b6 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -21,6 +21,24 @@ module.exports = { key: "59f0e2deb984aa9cdf2b3a5fd24ac501", index: "tendermint" }, + versions: [ + { + "label": "v0.32", + "key": "v0.32" + }, + { + "label": "v0.33", + "key": "v0.33" + }, + { + "label": "v0.34", + "key": "v0.34" + }, + { + "label": "master", + "key": "master" + } + ], topbar: { banner: false, }, @@ -39,17 +57,6 @@ module.exports = { path: 'https://docs.tendermint.com/master/rpc/', static: true }, - // TODO: remove once https://github.com/cosmos/vuepress-theme-cosmos/issues/91 is closed - { - title: 'Version 0.32', - path: '/v0.32', - static: true - }, - { - title: 'Version 0.33', - path: '/v0.33', - static: true - }, ] } ] diff --git a/docs/versions b/docs/versions index f3f5734d1..0da27675d 100644 --- a/docs/versions +++ b/docs/versions @@ -1,3 +1,4 @@ -v0.32 v0.32 +v0.32.x v0.32 cyrus/0.33-version v0.33 -master master +v0.34.x v0.34 +marko/docs_version master