chore: 升级为 vuepress@2 (#807)
* fix: 修正文档中存在的错误路径,标签和目录 * chore: 升级为 vuepress@2 * fix: vuepress-vite 版本错误
This commit is contained in:
8
.vuepress/client.js
Normal file
8
.vuepress/client.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { defineClientConfig } from '@vuepress/client'
|
||||
import Layout from './theme/layouts/Layout.vue'
|
||||
|
||||
export default defineClientConfig({
|
||||
layouts: {
|
||||
Layout,
|
||||
},
|
||||
})
|
||||
@@ -1,40 +1,46 @@
|
||||
module.exports = {
|
||||
import { defaultTheme, defineUserConfig } from 'vuepress'
|
||||
import markdownItTaskLists from 'markdown-it-task-lists'
|
||||
import { copyCodePlugin } from "vuepress-plugin-copy-code2";
|
||||
|
||||
export default defineUserConfig({
|
||||
base: "/bilibili-API-collect/",
|
||||
lang: 'zh-CN',
|
||||
title: "BAC Document",
|
||||
description: "社区开源的第三方哔哩哔哩 API 文档",
|
||||
head: [
|
||||
['link', { rel: 'icon', href: './logo2.jpg' }]
|
||||
['link', { rel: 'icon', href: '/logo2.jpg' }]
|
||||
],
|
||||
locales: {
|
||||
'/': {
|
||||
lang: 'zh-CN',
|
||||
},
|
||||
},
|
||||
themeConfig: {
|
||||
logo: './logo2.jpg',
|
||||
nav: [
|
||||
{text: '首页', link: '/'},
|
||||
{text: '目录', link: '/#🍴目录'},
|
||||
{text: '贡献指南', link: '/CONTRIBUTING.html'},
|
||||
theme: defaultTheme({
|
||||
logo: '/logo2.jpg',
|
||||
navbar: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '目录', link: '/#🍴目录' },
|
||||
{ text: '贡献指南', link: '/CONTRIBUTING.html' },
|
||||
{
|
||||
text: '相关社群',
|
||||
items: [
|
||||
{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'}
|
||||
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',
|
||||
smoothScroll: true,
|
||||
repo: 'SocialSisterYi/bilibili-API-collect',
|
||||
editLinks: true,
|
||||
docsBranch: 'master',
|
||||
editLinkText: '在 GitHub 上编辑此页',
|
||||
},
|
||||
plugins: [
|
||||
'@vuepress/back-to-top',
|
||||
],
|
||||
}),
|
||||
plugins: [copyCodePlugin({})],
|
||||
markdown: {
|
||||
lineNumbers: true,
|
||||
plugins: ['task-lists']
|
||||
code: {
|
||||
lineNumbers: true
|
||||
}
|
||||
},
|
||||
extendsMarkdown: (md) => {
|
||||
md.use(markdownItTaskLists)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
extend: '@vuepress/theme-default'
|
||||
}
|
||||
@@ -1,21 +1,18 @@
|
||||
<template>
|
||||
<ParentLayout>
|
||||
<template #page-bottom>
|
||||
<footer style="text-align: center;">
|
||||
Copyright © 2020-2023 <a href="https://github.com/SocialSisterYi/">SocialSisterYi</a> |
|
||||
<a href="https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/LICENSE">CC-BY-NC-4.0 Licensed</a>
|
||||
<footer style="text-align: center">
|
||||
Copyright © 2020-2023
|
||||
<a href="https://github.com/SocialSisterYi/">SocialSisterYi</a> |
|
||||
<a
|
||||
href="https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/LICENSE"
|
||||
>CC-BY-NC-4.0 Licensed</a
|
||||
>
|
||||
</footer>
|
||||
</template>
|
||||
</ParentLayout>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ParentLayout from '@parent-theme/layouts/Layout.vue'
|
||||
|
||||
export default {
|
||||
name: 'Layout',
|
||||
components: {
|
||||
ParentLayout
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script setup>
|
||||
import ParentLayout from '@vuepress/theme-default/layouts/Layout.vue';
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user