Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
14 changes: 7 additions & 7 deletions docs/src/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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' }],
},
})
30 changes: 15 additions & 15 deletions docs/src/.vitepress/config/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,52 @@ 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: '多语言',
returnToTopLabel: '回到顶部',
sidebarMenuLabel: '菜单',
darkModeSwitchLabel: '主题',
lightModeSwitchTitle: '切换到浅色模式',
darkModeSwitchTitle: '切换到深色模式'
}
darkModeSwitchTitle: '切换到深色模式',
},
})

function nav(): DefaultTheme.NavItem[] {
return [
{
text: '指南',
link: '/guide/getting-started',
activeMatch: '/guide/'
}
activeMatch: '/guide/',
},
]
}

Expand All @@ -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' },
],
},
]
}
2 changes: 1 addition & 1 deletion docs/src/guide/bind-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 为准
Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/call-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 为准
2 changes: 1 addition & 1 deletion docs/src/guide/struct-maker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 为准
3 changes: 1 addition & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,4 +32,3 @@ features:
title: 适配真的很快!
details: 有事没事就看一眼 雪雪 更新了没。
---

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down