From d4d20d92701ec879562ea4054f78e799dc0dab4e Mon Sep 17 00:00:00 2001 From: huankong233 Date: Fri, 29 Aug 2025 09:29:24 +0800 Subject: [PATCH] =?UTF-8?q?[*]=20=E6=9B=B4=E6=96=B0=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yaml | 2 +- README.md | 2 +- docs/src/.vitepress/config/shared.ts | 14 ++++++------- docs/src/.vitepress/config/zh.ts | 30 ++++++++++++++-------------- docs/src/guide/bind-event.md | 2 +- docs/src/guide/call-api.md | 2 +- docs/src/guide/struct-maker.md | 2 +- docs/src/index.md | 3 +-- package.json | 2 +- 9 files changed, 29 insertions(+), 30 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4c8ef11..3b12fcf 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -15,7 +15,7 @@ jobs: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} BUILD_SCRIPT: cd docs && npm install pnpm -g && pnpm install && pnpm run build BUILD_DIR: src/.vitepress/dist - TARGET_REPO: huankong-team/node-napcat-ts + TARGET_REPO: HkTeamX/node-napcat-ts TARGET_BRANCH: docs COMMIT_MESSAGE: 自动打包完成 CNAME: node-napcat-ts.huankong.top diff --git a/README.md b/README.md index 4a35b7c..e1224d0 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,4 @@ ## ⭐ 星星 -[![Stargazers over time](https://starchart.cc/huankong233/node-napcat-ts.svg)](https://starchart.cc/huankong233/node-napcat-ts) +[![Stargazers over time](https://starchart.cc/HkTeamX/node-napcat-ts.svg)](https://starchart.cc/HkTeamX/node-napcat-ts) diff --git a/docs/src/.vitepress/config/shared.ts b/docs/src/.vitepress/config/shared.ts index 5e65a0d..a16fda7 100644 --- a/docs/src/.vitepress/config/shared.ts +++ b/docs/src/.vitepress/config/shared.ts @@ -14,16 +14,16 @@ export const shared = defineConfig({ { postprocess(code) { return code.replace(/\[\!\!code/g, '[!code') - } - } - ] + }, + }, + ], }, sitemap: { hostname: 'https://node-napcat-ts.huankong.top', transformItems(items) { return items.filter((item) => !item.url.includes('migration')) - } + }, }, /* prettier-ignore */ @@ -47,8 +47,8 @@ export const shared = defineConfig({ logo: { src: 'https://img.huankong.top/i/2022/11/29/6385ef8c7a675.ico', width: 24, height: 24 }, //开启本地搜索 search: { - provider: 'local' + provider: 'local', }, - socialLinks: [{ icon: 'github', link: 'https://github.com/huankong233/node-napcat-ts' }] - } + socialLinks: [{ icon: 'github', link: 'https://github.com/HkTeamX/node-napcat-ts' }], + }, }) diff --git a/docs/src/.vitepress/config/zh.ts b/docs/src/.vitepress/config/zh.ts index 277f575..958cfad 100644 --- a/docs/src/.vitepress/config/zh.ts +++ b/docs/src/.vitepress/config/zh.ts @@ -8,34 +8,34 @@ export const zh = defineConfig({ nav: nav(), sidebar: { - '/guide/': { base: '/guide/', items: sidebarGuide() } + '/guide/': { base: '/guide/', items: sidebarGuide() }, }, editLink: { - pattern: 'https://github.com/huankong233/node-napcat-ts/edit/main/docs/:path', - text: '在 GitHub 上编辑此页面' + pattern: 'https://github.com/HkTeamX/node-napcat-ts/edit/main/docs/:path', + text: '在 GitHub 上编辑此页面', }, footer: { message: '基于 MIT 许可发布', - copyright: `版权所有 © 2024-${new Date().getFullYear()} huankong233` + copyright: `版权所有 © 2024-${new Date().getFullYear()} huankong233`, }, docFooter: { prev: '上一页', - next: '下一页' + next: '下一页', }, outline: { - label: '页面导航' + label: '页面导航', }, lastUpdated: { text: '最后更新于', formatOptions: { dateStyle: 'short', - timeStyle: 'medium' - } + timeStyle: 'medium', + }, }, langMenuLabel: '多语言', @@ -43,8 +43,8 @@ export const zh = defineConfig({ sidebarMenuLabel: '菜单', darkModeSwitchLabel: '主题', lightModeSwitchTitle: '切换到浅色模式', - darkModeSwitchTitle: '切换到深色模式' - } + darkModeSwitchTitle: '切换到深色模式', + }, }) function nav(): DefaultTheme.NavItem[] { @@ -52,8 +52,8 @@ function nav(): DefaultTheme.NavItem[] { { text: '指南', link: '/guide/getting-started', - activeMatch: '/guide/' - } + activeMatch: '/guide/', + }, ] } @@ -68,8 +68,8 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] { { text: '如何使用', link: 'how-to-use' }, { text: '绑定事件', link: 'bind-event' }, { text: '调用接口', link: 'call-api' }, - { text: '结构体构造器', link: 'struct-maker' } - ] - } + { text: '结构体构造器', link: 'struct-maker' }, + ], + }, ] } diff --git a/docs/src/guide/bind-event.md b/docs/src/guide/bind-event.md index 55ed548..e7de47b 100644 --- a/docs/src/guide/bind-event.md +++ b/docs/src/guide/bind-event.md @@ -55,7 +55,7 @@ function handler(context: AllHandlers['message']) { ## 事件名大全 ::: tip 注意 -如有缺少或类型错误请提交 [pr](https://github.com/huankong233/node-napcat-ts/compare) +如有缺少或类型错误请提交 [pr](https://github.com/HkTeamX/node-napcat-ts/compare) ::: 以 [NapCatQQ 文档](https://napneko.github.io/develop/event) 为准 diff --git a/docs/src/guide/call-api.md b/docs/src/guide/call-api.md index 67158d3..5a72eba 100644 --- a/docs/src/guide/call-api.md +++ b/docs/src/guide/call-api.md @@ -18,7 +18,7 @@ await napcat.send_msg({ ## 接口大全 ::: tip 注意 -如有缺少或类型错误请提交 [pr](https://github.com/huankong233/node-napcat-ts/compare) +如有缺少或类型错误请提交 [pr](https://github.com/HkTeamX/node-napcat-ts/compare) ::: 以 [NapCatQQ 文档](https://napneko.github.io/develop/api) 为准 diff --git a/docs/src/guide/struct-maker.md b/docs/src/guide/struct-maker.md index 023723c..89531be 100644 --- a/docs/src/guide/struct-maker.md +++ b/docs/src/guide/struct-maker.md @@ -21,7 +21,7 @@ await napcat.send_msg({ ## 结构体大全 ::: tip 注意 -如有缺少或类型错误请提交 [pr](https://github.com/huankong233/node-napcat-ts/compare) +如有缺少或类型错误请提交 [pr](https://github.com/HkTeamX/node-napcat-ts/compare) ::: 以 [NapCatQQ 文档](https://napneko.github.io/develop/msg) 为准 diff --git a/docs/src/index.md b/docs/src/index.md index 92816e8..2f84e6a 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -16,7 +16,7 @@ hero: link: /guide/getting-started - theme: alt text: GitHub - link: https://github.com/huankong233/node-napcat-ts + link: https://github.com/HkTeamX/node-napcat-ts image: src: https://napneko.github.io/assets/newnewlogo.png alt: Logo @@ -32,4 +32,3 @@ features: title: 适配真的很快! details: 有事没事就看一眼 雪雪 更新了没。 --- - diff --git a/package.json b/package.json index 5618690..96cba5b 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/huankong233/node-napcat-ts.git" + "url": "https://github.com/HkTeamX/node-napcat-ts" }, "scripts": { "build": "tsc",