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

65 lines
1.9 KiB
JavaScript
Raw Normal View History

import { defineUserConfig } from "vuepress";
import { viteBundler } from '@vuepress/bundler-vite'
import { defaultTheme } from "@vuepress/theme-default";
2023-09-14 19:55:11 +08:00
import markdownItTaskLists from "markdown-it-task-lists";
import { searchPlugin } from "@vuepress/plugin-search";
import { shikiPlugin } from '@vuepress/plugin-shiki'
const base = "/bilibili-API-collect/";
2023-09-06 14:25:46 +08:00
export default defineUserConfig({
bundler: viteBundler(),
base: base,
2023-09-14 19:55:11 +08:00
lang: "zh-CN",
title: "BAC Document",
description: "社区开源的第三方哔哩哔哩 API 文档",
head: [["link", { rel: "icon", href: base + "logo2.jpg" }]],
2023-09-14 19:55:11 +08:00
locales: {
"/": {
lang: "zh-CN",
2023-02-21 09:05:05 +08:00
},
2023-09-14 19:55:11 +08:00
},
theme: defaultTheme({
logo: "/logo2.jpg",
navbar: [
{ text: "首页", link: "/" },
{ text: "目录", link: "/#🍴目录" },
{ text: "贡献指南", link: "/CONTRIBUTING.html" },
{
text: "相关社群",
children: [
{
2024-02-01 18:23:12 +08:00
text: "QQ交流群(综合技术交流)",
2024-04-20 20:47:22 +08:00
link: "http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ympvb3LAPT-Ulu3ezhGqbkJ8zXMKImOX&authKey=z1KdkOdKO3wytN43m9K6On9nBtnDL4pAoD6VQHCipFBb9TasNDKuDHCmOE6TF3uc&noverify=0&group_code=191187164",
2023-09-14 19:55:11 +08:00
},
{
2024-02-01 18:23:12 +08:00
text: "Telegram交流群(Github Bot推送)",
2023-09-14 19:55:11 +08:00
link: "https://t.me/bilibili_API_collect_community",
},
2023-02-21 09:05:05 +08:00
],
2023-09-14 19:55:11 +08:00
},
],
2024-02-01 18:23:12 +08:00
repo: "https://github.com/SocialSisterYi/bilibili-API-collect",
2023-09-14 19:55:11 +08:00
docsBranch: "master",
editLinkText: "在 GitHub 上编辑此页",
colorMode: "auto",
themePlugins: {
prismjs: false
}
2023-09-14 19:55:11 +08:00
}),
plugins: [
searchPlugin({}),
shikiPlugin({
theme: 'dark-plus',
langs: [
'javascript', 'typescript', 'markdown', 'protobuf', 'json', 'jsonc',
'shell', 'go', 'html', 'http', 'java', 'kotlin', 'python', 'rust', 'c',
'c++', 'cs', 'php', 'swift', 'text'
]
})
],
2023-09-14 19:55:11 +08:00
extendsMarkdown: (md) => {
md.use(markdownItTaskLists);
}
2023-09-14 19:55:11 +08:00
});