mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2024-12-25 20:10:06 +08:00
add search plugin (#816)
This commit is contained in:
parent
3a408362c7
commit
d6d1787145
@ -1,46 +1,51 @@
|
||||
import { defaultTheme, defineUserConfig } from 'vuepress'
|
||||
import markdownItTaskLists from 'markdown-it-task-lists'
|
||||
import { defaultTheme, defineUserConfig } from "vuepress";
|
||||
import markdownItTaskLists from "markdown-it-task-lists";
|
||||
import { copyCodePlugin } from "vuepress-plugin-copy-code2";
|
||||
import { searchPlugin } from "@vuepress/plugin-search";
|
||||
|
||||
export default defineUserConfig({
|
||||
base: "/bilibili-API-collect/",
|
||||
lang: 'zh-CN',
|
||||
title: "BAC Document",
|
||||
description: "社区开源的第三方哔哩哔哩 API 文档",
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/logo2.jpg' }]
|
||||
],
|
||||
locales: {
|
||||
'/': {
|
||||
lang: 'zh-CN',
|
||||
},
|
||||
base: "/bilibili-API-collect/",
|
||||
lang: "zh-CN",
|
||||
title: "BAC Document",
|
||||
description: "社区开源的第三方哔哩哔哩 API 文档",
|
||||
head: [["link", { rel: "icon", href: "/logo2.jpg" }]],
|
||||
locales: {
|
||||
"/": {
|
||||
lang: "zh-CN",
|
||||
},
|
||||
theme: defaultTheme({
|
||||
logo: '/logo2.jpg',
|
||||
navbar: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '目录', link: '/#🍴目录' },
|
||||
{ text: '贡献指南', link: '/CONTRIBUTING.html' },
|
||||
{
|
||||
text: '相关社群',
|
||||
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' }
|
||||
]
|
||||
}
|
||||
},
|
||||
theme: defaultTheme({
|
||||
logo: "/logo2.jpg",
|
||||
navbar: [
|
||||
{ text: "首页", link: "/" },
|
||||
{ text: "目录", link: "/#🍴目录" },
|
||||
{ text: "贡献指南", link: "/CONTRIBUTING.html" },
|
||||
{
|
||||
text: "相关社群",
|
||||
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",
|
||||
},
|
||||
],
|
||||
sidebar: 'auto',
|
||||
repo: 'SocialSisterYi/bilibili-API-collect',
|
||||
docsBranch: 'master',
|
||||
editLinkText: '在 GitHub 上编辑此页',
|
||||
}),
|
||||
plugins: [copyCodePlugin({})],
|
||||
markdown: {
|
||||
code: {
|
||||
lineNumbers: true
|
||||
}
|
||||
},
|
||||
],
|
||||
sidebar: "auto",
|
||||
repo: "SocialSisterYi/bilibili-API-collect",
|
||||
docsBranch: "master",
|
||||
editLinkText: "在 GitHub 上编辑此页",
|
||||
}),
|
||||
plugins: [copyCodePlugin({}), searchPlugin({})],
|
||||
markdown: {
|
||||
code: {
|
||||
lineNumbers: true,
|
||||
},
|
||||
extendsMarkdown: (md) => {
|
||||
md.use(markdownItTaskLists)
|
||||
}
|
||||
})
|
||||
},
|
||||
extendsMarkdown: (md) => {
|
||||
md.use(markdownItTaskLists);
|
||||
},
|
||||
});
|
||||
|
@ -14,6 +14,7 @@
|
||||
"devDependencies": {
|
||||
"vuepress": "2.0.0-beta.67",
|
||||
"vuepress-plugin-copy-code2": "2.0.0-beta.237",
|
||||
"vuepress-vite": "2.0.0-beta.67"
|
||||
"vuepress-vite": "2.0.0-beta.67",
|
||||
"@vuepress/plugin-search": "^2.0.0-beta.67"
|
||||
}
|
||||
}
|
||||
|
13
yarn.lock
13
yarn.lock
@ -553,6 +553,19 @@
|
||||
"@vuepress/core" "2.0.0-beta.67"
|
||||
prismjs "^1.29.0"
|
||||
|
||||
"@vuepress/plugin-search@^2.0.0-beta.67":
|
||||
version "2.0.0-beta.67"
|
||||
resolved "https://registry.yarnpkg.com/@vuepress/plugin-search/-/plugin-search-2.0.0-beta.67.tgz#f903a10c360de0180517026b2bd992c2e33b9167"
|
||||
integrity sha512-oju9DK2zQE7PqP7EXm/c0ekoG0clLSn4h6Y7DvgbXJRmonM42oHHj3DdC/eGtyLhTUGuD7mw93Svj2uaC556Nw==
|
||||
dependencies:
|
||||
"@vuepress/client" "2.0.0-beta.67"
|
||||
"@vuepress/core" "2.0.0-beta.67"
|
||||
"@vuepress/shared" "2.0.0-beta.67"
|
||||
"@vuepress/utils" "2.0.0-beta.67"
|
||||
chokidar "^3.5.3"
|
||||
vue "^3.3.4"
|
||||
vue-router "^4.2.4"
|
||||
|
||||
"@vuepress/plugin-theme-data@2.0.0-beta.67":
|
||||
version "2.0.0-beta.67"
|
||||
resolved "https://registry.npmjs.org/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-beta.67.tgz#e2258b6b71096436dc89629a5a4b82b7bca4d275"
|
||||
|
Loading…
Reference in New Issue
Block a user