nonebot2/docs/.vuepress/config.js
2018-12-27 20:52:40 +08:00

77 lines
2.7 KiB
JavaScript

module.exports = {
title: 'NoneBot',
description: '基于 酷Q 的 Python 异步 QQ 机器人框架',
markdown: {
lineNumbers: true
},
head: [
['link', { rel: 'icon', href: `/logo.png` }],
['link', { rel: 'manifest', href: '/manifest.json' }],
['meta', { name: 'theme-color', content: '#ffffff' }],
['meta', { name: 'application-name', content: 'NoneBot' }],
['meta', { name: 'apple-mobile-web-app-title', content: 'NoneBot' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon.png` }],
['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#5bbad5' }],
['meta', { name: 'msapplication-TileImage', content: '/icons/mstile-150x150.png' }],
['meta', { name: 'msapplication-TileColor', content: '#00aba9' }]
],
ga: 'UA-115509121-2',
themeConfig: {
repo: 'richardchien/nonebot',
docsDir: 'docs',
editLinks: true,
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '上次更新',
activeHeaderLinks: false,
nav: [
{ text: '指南', link: '/guide/' },
{ text: '进阶', link: '/advanced/' },
{ text: 'API', link: '/api.md' },
{ text: '术语表', link: '/glossary.md' },
{ text: '更新日志', link: '/changelog.md' },
],
sidebar: {
'/guide/': [
{
title: '指南',
collapsable: false,
children: [
'',
'installation',
'getting-started',
'whats-happened',
'basic-configuration',
'command',
'nl-processor',
'tuling',
'notice-and-request',
'calling-cqhttp-api',
'scheduler',
'whats-next',
]
}
],
'/advanced/': [
{
title: '进阶',
collapsable: false,
children: [
'',
'session',
'message',
'permission',
'decorator',
'scheduler',
'logging',
'configuration',
'argparse',
'larger-application',
'deployment',
]
}
],
},
}
}