diff --git a/docs/.vuepress/navbar.ts b/docs/.vuepress/navbar.ts
index 0a0a9d28..b1ed99b9 100644
--- a/docs/.vuepress/navbar.ts
+++ b/docs/.vuepress/navbar.ts
@@ -1,7 +1,15 @@
-import { navbar } from "vuepress-theme-hope";
+import {navbar} from "vuepress-theme-hope";
export default navbar([
- "/",
- "/deployment/",
- "/usage/",
+ "/",
+ {
+ text: "项目部署",
+ link: "/deployment/",
+ prefix: "deployment/",
+ },
+ {
+ text: "使用手册",
+ link: "/usage/",
+ prefix: "usage/",
+ }
]);
diff --git a/docs/.vuepress/sidebar.ts b/docs/.vuepress/sidebar.ts
index d50fd551..6e9bb8e2 100644
--- a/docs/.vuepress/sidebar.ts
+++ b/docs/.vuepress/sidebar.ts
@@ -7,14 +7,12 @@ export default sidebar({
text: "项目部署",
icon: "laptop-code",
prefix: "deployment/",
- link: "deployment/",
children: "structure",
},
{
text: "使用手册",
- icon: "laptop-code",
+ icon: "book",
prefix: "usage/",
- link: "usage/",
children: "structure",
},
],
diff --git a/docs/.vuepress/theme.js b/docs/.vuepress/theme.js
index 32e982e3..fc646e9e 100644
--- a/docs/.vuepress/theme.js
+++ b/docs/.vuepress/theme.js
@@ -1,187 +1,187 @@
-import {hopeTheme} from "vuepress-theme-hope";
+import { hopeTheme } from "vuepress-theme-hope";
import navbar from "./navbar.js";
import sidebar from "./sidebar.js";
export default hopeTheme({
- hostname: "https://vuepress-theme-hope-docs-demo.netlify.app",
+ hostname: "https://vuepress-theme-hope-docs-demo.netlify.app",
- author: {
- name: "SnowyKami",
- url: "https://snowykami.me",
+ author: {
+ name: "远野千束",
+ url: "https://snowykami.me",
+ },
+
+ iconAssets: "fontawesome-with-brands",
+
+ logo: "https://cdn.liteyuki.icu/static/img/logo.png",
+
+ repo: "https://github.com/snowykami/LiteyukiBot",
+
+ docsDir: "src",
+
+ // 导航栏
+ navbar,
+
+ // 侧边栏
+ sidebar,
+
+ // 页脚
+ footer: "默认页脚",
+ displayFooter: true,
+
+ // 加密配置
+ encrypt: {
+ config: {
+ "/demo/encrypt.html": ["1234"],
+ },
+ },
+
+ // 多语言配置
+ metaLocales: {
+ editLink: "在 GitHub 上编辑此页",
+ },
+
+ // 如果想要实时查看任何改变,启用它。注: 这对更新性能有很大负面影响
+ // hotReload: true,
+
+ // 在这里配置主题提供的插件
+ plugins: {
+ // 你应该自行生成自己的评论服务
+ comment: {
+ provider: "Giscus",
+ repo: "vuepress-theme-hope/giscus-discussions",
+ repoId: "R_kgDOG_Pt2A",
+ category: "Announcements",
+ categoryId: "DIC_kwDOG_Pt2M4COD69",
},
- iconAssets: "fontawesome-with-brands",
-
- logo: "https://cdn.liteyuki.icu/static/img/logo.png",
-
- repo: "https://github.com/snowykami/LiteyukiBot",
-
- docsDir: "src",
-
- // 导航栏
- navbar,
-
- // 侧边栏
- sidebar,
-
- // 页脚
- footer: "LiteyukiBot",
- displayFooter: true,
-
- // 加密配置
- encrypt: {
- config: {
- "/demo/encrypt.html": ["1234"],
- },
+ components: {
+ components: ["Badge", "VPCard"],
},
- // 多语言配置
- metaLocales: {
- editLink: "在 GitHub 上编辑此页",
+ // 此处开启了很多功能用于演示,你应仅保留用到的功能。
+ 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,
},
- // 如果想要实时查看任何改变,启用它。注: 这对更新性能有很大负面影响
- // hotReload: true,
-
- // 在这里配置主题提供的插件
- plugins: {
- // 你应该自行生成自己的评论服务
- comment: {
- provider: "Giscus",
- repo: "vuepress-theme-hope/giscus-discussions",
- repoId: "R_kgDOG_Pt2A",
- category: "Announcements",
- categoryId: "DIC_kwDOG_Pt2M4COD69",
- },
-
- 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,
- },
-
- // 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
- // pwa: {
- // favicon: "/favicon.ico",
- // cacheHTML: true,
- // cachePic: true,
- // appendBase: true,
- // apple: {
- // icon: "/assets/icon/apple-icon-152.png",
- // statusBarColor: "black",
- // },
- // msTile: {
- // image: "/assets/icon/ms-icon-144.png",
- // color: "#ffffff",
- // },
- // manifest: {
- // icons: [
- // {
- // src: "/assets/icon/chrome-mask-512.png",
- // sizes: "512x512",
- // purpose: "maskable",
- // type: "image/png",
- // },
- // {
- // src: "/assets/icon/chrome-mask-192.png",
- // sizes: "192x192",
- // purpose: "maskable",
- // type: "image/png",
- // },
- // {
- // src: "/assets/icon/chrome-512.png",
- // sizes: "512x512",
- // type: "image/png",
- // },
- // {
- // src: "/assets/icon/chrome-192.png",
- // sizes: "192x192",
- // type: "image/png",
- // },
- // ],
- // shortcuts: [
- // {
- // name: "Demo",
- // short_name: "Demo",
- // url: "/demo/",
- // icons: [
- // {
- // src: "/assets/icon/guide-maskable.png",
- // sizes: "192x192",
- // purpose: "maskable",
- // type: "image/png",
- // },
- // ],
- // },
- // ],
- // },
- // },
- },
+ // 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
+ // pwa: {
+ // favicon: "/favicon.ico",
+ // cacheHTML: true,
+ // cachePic: true,
+ // appendBase: true,
+ // apple: {
+ // icon: "/assets/icon/apple-icon-152.png",
+ // statusBarColor: "black",
+ // },
+ // msTile: {
+ // image: "/assets/icon/ms-icon-144.png",
+ // color: "#ffffff",
+ // },
+ // manifest: {
+ // icons: [
+ // {
+ // src: "/assets/icon/chrome-mask-512.png",
+ // sizes: "512x512",
+ // purpose: "maskable",
+ // type: "image/png",
+ // },
+ // {
+ // src: "/assets/icon/chrome-mask-192.png",
+ // sizes: "192x192",
+ // purpose: "maskable",
+ // type: "image/png",
+ // },
+ // {
+ // src: "/assets/icon/chrome-512.png",
+ // sizes: "512x512",
+ // type: "image/png",
+ // },
+ // {
+ // src: "/assets/icon/chrome-192.png",
+ // sizes: "192x192",
+ // type: "image/png",
+ // },
+ // ],
+ // shortcuts: [
+ // {
+ // name: "Demo",
+ // short_name: "Demo",
+ // url: "/demo/",
+ // icons: [
+ // {
+ // src: "/assets/icon/guide-maskable.png",
+ // sizes: "192x192",
+ // purpose: "maskable",
+ // type: "image/png",
+ // },
+ // ],
+ // },
+ // ],
+ // },
+ // },
+ },
});
diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts
deleted file mode 100644
index 2b9fdc1c..00000000
--- a/docs/.vuepress/theme.ts
+++ /dev/null
@@ -1,187 +0,0 @@
-import { hopeTheme } from "vuepress-theme-hope";
-import navbar from "./navbar.js";
-import sidebar from "./sidebar.js";
-
-export default hopeTheme({
- hostname: "https://vuepress-theme-hope-docs-demo.netlify.app",
-
- author: {
- name: "Mr.Hope",
- url: "https://mister-hope.com",
- },
-
- iconAssets: "fontawesome-with-brands",
-
- logo: "https://theme-hope-assets.vuejs.press/logo.svg",
-
- repo: "vuepress-theme-hope/vuepress-theme-hope",
-
- docsDir: "src",
-
- // 导航栏
- navbar,
-
- // 侧边栏
- sidebar,
-
- // 页脚
- footer: "默认页脚",
- displayFooter: true,
-
- // 加密配置
- encrypt: {
- config: {
- "/demo/encrypt.html": ["1234"],
- },
- },
-
- // 多语言配置
- metaLocales: {
- editLink: "在 GitHub 上编辑此页",
- },
-
- // 如果想要实时查看任何改变,启用它。注: 这对更新性能有很大负面影响
- // hotReload: true,
-
- // 在这里配置主题提供的插件
- plugins: {
- // 你应该自行生成自己的评论服务
- comment: {
- provider: "Giscus",
- repo: "vuepress-theme-hope/giscus-discussions",
- repoId: "R_kgDOG_Pt2A",
- category: "Announcements",
- categoryId: "DIC_kwDOG_Pt2M4COD69",
- },
-
- 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,
- },
-
- // 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
- // pwa: {
- // favicon: "/favicon.ico",
- // cacheHTML: true,
- // cachePic: true,
- // appendBase: true,
- // apple: {
- // icon: "/assets/icon/apple-icon-152.png",
- // statusBarColor: "black",
- // },
- // msTile: {
- // image: "/assets/icon/ms-icon-144.png",
- // color: "#ffffff",
- // },
- // manifest: {
- // icons: [
- // {
- // src: "/assets/icon/chrome-mask-512.png",
- // sizes: "512x512",
- // purpose: "maskable",
- // type: "image/png",
- // },
- // {
- // src: "/assets/icon/chrome-mask-192.png",
- // sizes: "192x192",
- // purpose: "maskable",
- // type: "image/png",
- // },
- // {
- // src: "/assets/icon/chrome-512.png",
- // sizes: "512x512",
- // type: "image/png",
- // },
- // {
- // src: "/assets/icon/chrome-192.png",
- // sizes: "192x192",
- // type: "image/png",
- // },
- // ],
- // shortcuts: [
- // {
- // name: "Demo",
- // short_name: "Demo",
- // url: "/demo/",
- // icons: [
- // {
- // src: "/assets/icon/guide-maskable.png",
- // sizes: "192x192",
- // purpose: "maskable",
- // type: "image/png",
- // },
- // ],
- // },
- // ],
- // },
- // },
- },
-});
diff --git a/docs/demo/README.md b/docs/demo/README.md
deleted file mode 100644
index 8d83ff52..00000000
--- a/docs/demo/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: 主要功能与配置演示
-index: false
-icon: laptop-code
-category:
- - 使用指南
----
-
-