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 <alexanderbez@users.noreply.github.com>
This commit is contained in:
Julien Robert 2022-04-27 16:31:50 +02:00 committed by GitHub
parent 019444ae43
commit 7049237d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -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 \

View File

@ -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: "/" },
]);
};

View File

@ -1,3 +1,4 @@
release/v0.44.x v0.44
release/v0.45.x v0.45
main master
main main