docs: add redirects for all docs types (#1390)

Co-authored-by: janniks <janniks@users.noreply.github.com>
This commit is contained in:
janniks
2022-11-29 17:06:07 +01:00
committed by GitHub
parent d21a479646
commit ee52662809

View File

@@ -1,10 +1,45 @@
{
"cleanUrls": true,
"redirects": [
{
"source": "/modules/_stacks_cli",
"destination": "https://docs.hiro.so/references/stacks-cli",
"permanent": false
},
{
"source": "/modules/:path((?!_stacks_).*)",
"destination": "/modules/_stacks_:path*",
"permanent": false
},
{
"source": "/enums/:path((?!_stacks_).*)",
"destination": "/enums/_stacks_:path*",
"permanent": false
},
{
"source": "/variables/:path((?!_stacks_).*)",
"destination": "/variables/_stacks_:path*",
"permanent": false
},
{
"source": "/functions/:path((?!_stacks_).*)",
"destination": "/functions/_stacks_:path*",
"permanent": false
},
{
"source": "/types/:path((?!_stacks_).*)",
"destination": "/types/_stacks_:path*",
"permanent": false
},
{
"source": "/interfaces/:path((?!_stacks_).*)",
"destination": "/interfaces/_stacks_:path*",
"permanent": false
},
{
"source": "/classes/:path((?!_stacks_).*)",
"destination": "/classes/_stacks_:path*",
"permanent": false
}
]
}