diff --git a/.vitepress/config.ts b/.vitepress/config.ts
index 39642ce..30b1070 100644
--- a/.vitepress/config.ts
+++ b/.vitepress/config.ts
@@ -1,3 +1,4 @@
+import { execSync } from 'node:child_process'
import { cwd } from 'node:process'
import { defineConfig } from 'vitepress'
import { DefaultTheme } from 'vitepress/theme'
@@ -39,6 +40,12 @@ import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-i
// 懒加载模糊预览图
import { UnlazyImages } from '@nolebase/markdown-it-unlazy-img'
+let version = ''
+
+const latestVersion = execSync('npm show karin-plugin-kkk version').toString().trim()
+version = latestVersion
+
+
export default
withPwa(defineConfig({
pwa,
@@ -158,6 +165,7 @@ export default
['link', { rel: 'icon', href: '/karin-plugin-kkk/logo.png' }], //部署到vitepress仓库
],
themeConfig: {
+ siteTitle: `karin-plugin-kkk v${version}
`,
logo: {
src: '/logo.png',
},
@@ -194,13 +202,8 @@ export default
},
sidebar: sidebar,
socialLinks: [
- { icon: { svg: '' }, link: 'https://github.com/ikenxuan/karin-plugin-kkk' },
- {
- icon: {
- svg: '',
- },
- link: 'http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=S8y6baEcSkO6TEO5kEdfgmJhz79Oxdw5&authKey=ficWQytHGz3KIv5i0HpGbEeMBpABBXfjEMYRzo3ZwMV%2B0Y5mq8cC0Yxbczfa904H&noverify=0&group_code=795874649',
- },
+ { icon: { svg: '' }, link: 'https://github.com/ikenxuan/karin-plugin-kkk' },
+ { icon: { svg: '' }, link: 'https://www.npmjs.com/package/karin-plugin-kkk' },
],
lastUpdatedText: '最后编辑于',
outlineTitle: '本页大纲',
diff --git a/.vitepress/data/fooertData.ts b/.vitepress/data/fooertData.ts
index b35b381..c8f77c6 100644
--- a/.vitepress/data/fooertData.ts
+++ b/.vitepress/data/fooertData.ts
@@ -1,23 +1,5 @@
import type { FooterData } from '@theojs/lumen'
export const Footer_Data: FooterData = {
- author: { name: 'ikenxuan', link: 'https://github.com/ikenxuan' },
- group: [
- {
- title: '框架',
- icon: 'fa-solid fa-robot',
- links: [
- { name: 'Karin', href: 'https://github.com/Karinjs/Karin' },
- ]
- },
- {
- title: '相关链接',
- icon: 'fab fa-github',
- links: [
- { name: 'ICQQ', href: 'https://github.com/icqqjs/icqq' },
- { name: '插件库', href: 'https://plugin.karin.fun' },
- { name: '解析库', href: 'https://github.com/ikenxuan/amagi' }
- ]
- },
- ]
+ author: { name: 'ikenxuan', link: 'https://github.com/ikenxuan' }
}
\ No newline at end of file
diff --git a/.vitepress/script/nav.ts b/.vitepress/script/nav.ts
index 3bb319f..82f55d5 100644
--- a/.vitepress/script/nav.ts
+++ b/.vitepress/script/nav.ts
@@ -15,7 +15,7 @@ const nav = [
{
text: '功能',
items: [
- { text: '作品解析', link: '/docs/intro/main/main' },
+ { text: '目录', link: '/docs/intro/main/main' },
{ text: '动态推送', link: '/docs/intro/push' },
{ text: 'API Server', link: '/docs/intro/apiserver' },
{ text: '其他功能', link: '/docs/intro/other' },
diff --git a/.vitepress/script/sidebar.ts b/.vitepress/script/sidebar.ts
index 8863ddb..ad3409d 100644
--- a/.vitepress/script/sidebar.ts
+++ b/.vitepress/script/sidebar.ts
@@ -2,37 +2,37 @@ const sidebar = [
{
text: '快速开始',
items: [
- { text: ' 简介', link: '/docs/start/start' },
- { text: ' 安装插件', link: '/docs/start/install' },
- { text: ' 配置文件', link: '/docs/start/start.config' },
+ { text: ' 简介', link: '/docs/start/start' },
+ { text: ' 安装插件', link: '/docs/start/install' },
+ { text: ' 配置文件', link: '/docs/start/start.config' },
],
},
{
text: '功能',
items: [
{
- text: ' 作品解析', link: '/docs/intro/main/main', items: [
- { text: ' 抖音相关', link: '/docs/intro/main/douyin', },
- { text: ' B站相关', link: '/docs/intro/main/bilibili' },
- { text: '快手相关', link: '/docs/intro/main/kuaishou' },
+ text: ' 目录', link: '/docs/intro/main/main', items: [
+ { text: ' 抖音相关', link: '/docs/intro/main/douyin', },
+ { text: ' B站相关', link: '/docs/intro/main/bilibili' },
+ { text: ' 快手相关', link: '/docs/intro/main/kuaishou' },
]
},
- { text: ' 动态推送', link: '/docs/intro/push' },
- { text: ' API Server', link: '/docs/intro/apiserver' },
- { text: '其他功能', link: '/docs/intro/other' },
+ { text: ' 动态推送', link: '/docs/intro/push' },
+ { text: ' API Server', link: '/docs/intro/apiserver' },
+ { text: ' 其他功能', link: '/docs/intro/other' },
],
},
{
text: '其他',
items: [
{
- text: ' 遇到问题了?', link: '/docs/intro/problems', items: [
- { text: ' 常见问题解答', link: '/docs/intro/QA' },
+ text: ' 遇到问题了?', link: '/docs/intro/problems', items: [
+ { text: ' 常见问题解答', link: '/docs/intro/QA' },
]
},
- { text: ' 投喂', link: '/docs/other/afdian' },
- { text: ' 免责声明', link: '/docs/other/disclaimer' },
- { text: ' 版本历史', link: '/docs/other/timeline' },
+ { text: ' 投喂', link: '/docs/other/afdian' },
+ { text: ' 免责声明', link: '/docs/other/disclaimer' },
+ { text: ' 版本历史', link: '/docs/other/timeline' },
],
},
]
diff --git a/.vitepress/theme/components/DocPill.vue b/.vitepress/theme/components/DocPill.vue
new file mode 100644
index 0000000..d36483b
--- /dev/null
+++ b/.vitepress/theme/components/DocPill.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ pill.name }}
+
+
+
+
\ No newline at end of file
diff --git a/.vitepress/theme/components/Layout.vue b/.vitepress/theme/components/Layout.vue
new file mode 100644
index 0000000..7468421
--- /dev/null
+++ b/.vitepress/theme/components/Layout.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.vitepress/theme/components/Ncard.vue b/.vitepress/theme/components/Ncard.vue
index a0947c8..2732b2a 100644
--- a/.vitepress/theme/components/Ncard.vue
+++ b/.vitepress/theme/components/Ncard.vue
@@ -1,32 +1,27 @@
-