Files
bilibili-API-collect/.vuepress/config.js
T

47 lines
1.5 KiB
JavaScript
Raw Normal View History

2023-09-06 14:25:46 +08:00
import { defaultTheme, defineUserConfig } from 'vuepress'
import markdownItTaskLists from 'markdown-it-task-lists'
import { copyCodePlugin } from "vuepress-plugin-copy-code2";
export default defineUserConfig({
2023-02-21 09:05:05 +08:00
base: "/bilibili-API-collect/",
2023-09-06 14:25:46 +08:00
lang: 'zh-CN',
2023-02-22 00:56:04 +08:00
title: "BAC Document",
description: "社区开源的第三方哔哩哔哩 API 文档",
head: [
2023-09-06 14:25:46 +08:00
['link', { rel: 'icon', href: '/logo2.jpg' }]
2023-02-22 00:56:04 +08:00
],
2023-02-21 09:05:05 +08:00
locales: {
'/': {
lang: 'zh-CN',
},
},
2023-09-06 14:25:46 +08:00
theme: defaultTheme({
logo: '/logo2.jpg',
navbar: [
{ text: '首页', link: '/' },
{ text: '目录', link: '/#🍴目录' },
{ text: '贡献指南', link: '/CONTRIBUTING.html' },
2023-02-23 11:48:58 +08:00
{
text: '相关社群',
2023-09-06 14:25:46 +08:00
children: [
{ text: 'QQ交流群', link: 'http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=2rRJXK3zgU5yi3e_4rNLeJYUjMLzw_Jj&authKey=L%2FN3EfZXo3QFjEuHq4ifTgh%2F384UmrYpjl7dbYPhYHtznhfJWxkymxQKObQunmEQ&noverify=0&group_code=560304737' },
{ text: 'Telegram交流群', link: 'https://t.me/bilibili_API_collect_community' }
2023-02-23 11:48:58 +08:00
]
2023-08-06 19:02:55 +08:00
}
2023-02-21 09:05:05 +08:00
],
sidebar: 'auto',
2023-08-06 19:02:55 +08:00
repo: 'SocialSisterYi/bilibili-API-collect',
2023-09-06 14:25:46 +08:00
docsBranch: 'master',
2023-08-06 19:02:55 +08:00
editLinkText: '在 GitHub 上编辑此页',
2023-09-06 14:25:46 +08:00
}),
plugins: [copyCodePlugin({})],
2023-02-21 12:18:23 +08:00
markdown: {
2023-09-06 14:25:46 +08:00
code: {
lineNumbers: true
}
},
extendsMarkdown: (md) => {
md.use(markdownItTaskLists)
2023-02-22 00:56:04 +08:00
}
2023-09-06 14:25:46 +08:00
})