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
co-authored by Aleksandr Bezobchuk
parent 019444ae43
commit 7049237d52
3 changed files with 8 additions and 8 deletions
+6 -7
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: "/" },
]);
};
+1
View File
@@ -1,3 +1,4 @@
release/v0.44.x v0.44
release/v0.45.x v0.45
main master
main main