From 7049237d520a96ed9fc7f39deb1c69f51fa05c92 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 27 Apr 2022 16:31:50 +0200 Subject: [PATCH] docs: fix master to main redirect (#11790) * docs: fix master to main redirect * revert beautify * precise we want main as the default docs * temporary duplicating the docs for main and master * link issue Co-authored-by: Aleksandr Bezobchuk --- Makefile | 2 +- docs/.vuepress/enhanceApp.js | 13 ++++++------- docs/versions | 1 + 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index cc73a26b79..56c8f9e260 100644 --- a/Makefile +++ b/Makefile @@ -193,7 +193,7 @@ godocs: # This builds a docs site for each branch/tag in `./docs/versions` # and copies each site to a version prefixed path. The last entry inside -# the `versions` file will be the default root index.html. +# the `versions` file will be the default root index.html (and it should be main). build-docs: @cd docs && \ while read -r branch path_prefix; do \ diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index 24b87e8006..1bed0f7959 100644 --- a/docs/.vuepress/enhanceApp.js +++ b/docs/.vuepress/enhanceApp.js @@ -1,9 +1,8 @@ export default ({ router }) => { router.addRoutes([ - { path: '/main/spec/*', redirect: '/main/modules/' }, - { path: '/main/spec/governance/', redirect: '/main/modules/gov/' }, - { path: '/v0.41/', redirect: '/v0.42/' }, - { path: '/v0.43/', redirect: '/v0.44/' }, - { path: '/master/', redirect: '/main/' }, - ]) -} + { path: "/main/spec/*", redirect: "/modules/" }, + { path: "/main/spec/governance/", redirect: "/modules/gov/" }, + { path: "/v0.43/", redirect: "/v0.44/" }, // TODO to fix: https://github.com/cosmos/cosmos-sdk/issues/11798 + { path: "/master/", redirect: "/" }, + ]); +}; diff --git a/docs/versions b/docs/versions index aed0c21b40..23488cf361 100644 --- a/docs/versions +++ b/docs/versions @@ -1,3 +1,4 @@ release/v0.44.x v0.44 release/v0.45.x v0.45 +main master main main