mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 20:06:12 +08:00
34 lines
809 B
JavaScript
34 lines
809 B
JavaScript
import { Vuepress } from '@vuepress/client/lib/components/Vuepress'
|
|
|
|
const routeItems = [
|
|
["v-8daa1a0e","/",{"title":""},["/index.html","/README.md"]],
|
|
["v-7445cd33","/dev/",{"title":"开发指南"},["/dev/index.html","/dev/README.md"]],
|
|
["v-d0736a32","/usage/",{"title":"部署和使用"},["/usage/index.html","/usage/README.md"]],
|
|
["v-3706649a","/404.html",{"title":""},["/404"]],
|
|
]
|
|
|
|
export const pagesRoutes = routeItems.reduce(
|
|
(result, [name, path, meta, redirects]) => {
|
|
result.push(
|
|
{
|
|
name,
|
|
path,
|
|
component: Vuepress,
|
|
meta,
|
|
},
|
|
...redirects.map((item) => ({
|
|
path: item,
|
|
redirect: path,
|
|
}))
|
|
)
|
|
return result
|
|
},
|
|
[
|
|
{
|
|
name: "404",
|
|
path: "/:catchAll(.*)",
|
|
component: Vuepress,
|
|
}
|
|
]
|
|
)
|