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:
parent
019444ae43
commit
7049237d52
2
Makefile
2
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 \
|
||||
|
|
|
@ -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,3 +1,4 @@
|
|||
release/v0.44.x v0.44
|
||||
release/v0.45.x v0.45
|
||||
main master
|
||||
main main
|
||||
|
|
Loading…
Reference in New Issue