Files
zhamao-framework/docs/.vuepress/config.js

145 lines
4.5 KiB
JavaScript
Raw Normal View History

module.exports = {
2022-12-26 20:02:47 +08:00
title: '炸毛框架 v3',
2022-04-02 18:01:17 +08:00
description: '一个高性能聊天机器人 + Web 框架',
theme: 'antdocs',
markdown: {
lineNumbers: true
},
head: [
['link', { rel: 'icon', href: '/logo_trans.png' }],
['script', {}, `
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?f0f276cefa10aa31a20ae3815a50b795";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`]
],
themeConfig: {
repo: 'zhamao-robot/zhamao-framework',
logo: '/logo_trans.png',
docsDir: 'docs',
editLinks: true,
lastUpdated: '上次更新',
activeHeaderLinks: false,
nav: [
{ text: '指南', link: '/guide/' },
2022-12-29 17:52:21 +08:00
{ text: '事件', link: '/event/' },
2023-01-05 16:12:24 +08:00
{ text: '组件', link: '/components/bot/bot-context' },
{ text: '进阶', link: '/advanced/' },
2023-01-06 17:00:40 +08:00
{ text: '更新日志', link: '/update/v3' },
2022-12-26 20:02:47 +08:00
{ text: 'API 文档', link: '/doxy/', target: '_blank' },
{ text: '炸毛框架 v2', link: 'https://docs-v2.zhamao.xin/' }
],
sidebar: {
'/guide/': [
{
title: '指南',
collapsable: false,
sidebarDepth: 1,
children: [
'',
'installation',
2022-12-26 18:31:27 +08:00
'configuration',
'structure',
'get-started',
2023-01-17 17:13:12 +08:00
'debugging',
]
}
],
2022-12-29 17:52:21 +08:00
'/event/': [
{
title: '事件',
collapsable: false,
sidebarDepth: 1,
children: [
'',
'bot',
'http',
'middleware',
'framework',
'extend',
]
}
2023-01-05 16:12:24 +08:00
],
'/components/': [
2023-01-06 16:58:55 +08:00
'',
2023-01-05 16:12:24 +08:00
{
2023-01-06 16:58:55 +08:00
title: '机器人组件',
2023-01-06 16:09:15 +08:00
collapsable: true,
2023-01-05 16:12:24 +08:00
sidebarDepth: 2,
children: [
'bot/bot-context',
'bot/message-segment',
2023-01-17 17:12:43 +08:00
'bot/authorization',
2023-01-06 16:58:55 +08:00
]
},
{
title: 'HTTP 组件',
collapsable: true,
sidebarDepth: 2,
2023-01-17 17:13:38 +08:00
children: [
'http/zmrequest',
],
2023-01-06 16:58:55 +08:00
},
{
title: '框架通用组件',
collapsable: true,
sidebarDepth: 2,
children: [
2023-01-06 16:09:15 +08:00
'common/class-alias',
2023-01-17 17:13:12 +08:00
'common/global-defines',
'common/logging',
'common/hot-update',
2023-01-05 16:12:24 +08:00
]
2023-01-09 01:52:39 +08:00
},
{
title: '存储组件',
collapsable: true,
sidebarDepth: 2,
children: [
'store/file-system',
'store/cache',
'store/redis',
2023-01-09 01:52:39 +08:00
]
2023-02-07 17:41:56 +08:00
},
{
title: '依赖注入组件',
collapsable: true,
sidebarDepth: 2,
children: [
'container/dependency-injection',
'container/configuration',
'container/dependencies',
],
2023-01-05 16:12:24 +08:00
}
2023-01-06 16:58:55 +08:00
],
'/advanced/': [
{
title: '进阶',
collapsable: false,
sidebarDepth: 1,
children: [
'',
'multi-process',
'custom-start',
]
}
],
2023-01-06 16:58:55 +08:00
'/update/': [
{
title: '更新日志',
collapsable: true,
sidebarDepth: 0,
children: [
'v3',
'v2',
]
}
2022-12-29 17:52:21 +08:00
]
}
}
2022-04-02 18:01:17 +08:00
}