mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-08 04:43:00 +08:00
* ⬆️ Bump the docs-update group with 3 updates Bumps the docs-update group with 3 updates: [@vuepress/client](https://github.com/vuepress/core), [vue](https://github.com/vuejs/core) and [vuepress](https://github.com/vuejs/vuepress/tree/HEAD/packages/vuepress). Updates `@vuepress/client` from 2.0.0-rc.0 to 2.0.0-rc.2 - [Release notes](https://github.com/vuepress/core/releases) - [Changelog](https://github.com/vuepress/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuepress/core/compare/v2.0.0-rc.0...v2.0.0-rc.2) Updates `vue` from 3.4.3 to 3.4.21 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/compare/v3.4.3...v3.4.21) Updates `vuepress` from 2.0.0-rc.0 to 2.0.0-rc.8 - [Release notes](https://github.com/vuejs/vuepress/releases) - [Changelog](https://github.com/vuejs/vuepress/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/vuepress/commits/HEAD/packages/vuepress) --- updated-dependencies: - dependency-name: "@vuepress/client" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: docs-update - dependency-name: vue dependency-type: direct:development update-type: version-update:semver-patch dependency-group: docs-update - dependency-name: vuepress dependency-type: direct:development update-type: version-update:semver-patch dependency-group: docs-update ... Signed-off-by: dependabot[bot] <support@github.com> * 💄 auto fix by pre-commit hooks * 📝 使用 vuepress hope 主题 * 📝 更新文档中的过时内容 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Azide <rukuy@qq.com>
122 lines
2.5 KiB
TypeScript
122 lines
2.5 KiB
TypeScript
import { hopeTheme } from "vuepress-theme-hope";
|
|
import navbar from "./navbar.js";
|
|
import sidebar from "./sidebar.js";
|
|
|
|
export default hopeTheme({
|
|
hostname: "https://nonebot-bison.netlify.app",
|
|
|
|
author: {
|
|
name: "MountainDash Team",
|
|
url: "https://github.com/orgs/MountainDash/teams",
|
|
},
|
|
|
|
iconAssets: "fontawesome-with-brands",
|
|
|
|
logo: "logo.svg",
|
|
|
|
repo: "MountainDash/nonebot-bison",
|
|
|
|
docsDir: "docs",
|
|
|
|
// 导航栏
|
|
navbar,
|
|
|
|
// 侧边栏
|
|
sidebar,
|
|
|
|
// 页脚
|
|
footer: "默认页脚",
|
|
displayFooter: true,
|
|
|
|
// 加密配置
|
|
encrypt: {
|
|
config: {
|
|
"/demo/encrypt.html": ["1234"],
|
|
},
|
|
},
|
|
|
|
// 多语言配置
|
|
metaLocales: {
|
|
editLink: "在 GitHub 上编辑此页",
|
|
},
|
|
|
|
// 如果想要实时查看任何改变,启用它。注: 这对更新性能有很大负面影响
|
|
// hotReload: true,
|
|
|
|
// 在这里配置主题提供的插件
|
|
plugins: {
|
|
components: {
|
|
components: ["Badge", "VPCard"],
|
|
},
|
|
|
|
// 此处开启了很多功能用于演示,你应仅保留用到的功能。
|
|
mdEnhance: {
|
|
align: true,
|
|
attrs: true,
|
|
codetabs: true,
|
|
component: true,
|
|
demo: true,
|
|
figure: true,
|
|
imgLazyload: true,
|
|
imgSize: true,
|
|
include: true,
|
|
mark: true,
|
|
stylize: [
|
|
{
|
|
matcher: "Recommended",
|
|
replacer: ({ tag }) => {
|
|
if (tag === "em")
|
|
return {
|
|
tag: "Badge",
|
|
attrs: { type: "tip" },
|
|
content: "Recommended",
|
|
};
|
|
},
|
|
},
|
|
],
|
|
sub: true,
|
|
sup: true,
|
|
tabs: true,
|
|
vPre: true,
|
|
|
|
// 在启用之前安装 chart.js
|
|
// chart: true,
|
|
|
|
// insert component easily
|
|
|
|
// 在启用之前安装 echarts
|
|
// echarts: true,
|
|
|
|
// 在启用之前安装 flowchart.ts
|
|
// flowchart: true,
|
|
|
|
// gfm requires mathjax-full to provide tex support
|
|
// gfm: true,
|
|
|
|
// 在启用之前安装 katex
|
|
// katex: true,
|
|
|
|
// 在启用之前安装 mathjax-full
|
|
// mathjax: true,
|
|
|
|
// 在启用之前安装 mermaid
|
|
// mermaid: true,
|
|
|
|
// playground: {
|
|
// presets: ["ts", "vue"],
|
|
// },
|
|
|
|
// 在启用之前安装 reveal.js
|
|
// revealJs: {
|
|
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
// },
|
|
|
|
// 在启用之前安装 @vue/repl
|
|
// vuePlayground: true,
|
|
|
|
// install sandpack-vue3 before enabling it
|
|
// sandpack: true,
|
|
},
|
|
},
|
|
});
|