Skip to content

Commit

Permalink
add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
class-liu-fullstack committed Feb 26, 2025
1 parent 3a035b8 commit 42a8e85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
[![node engine](https://img.shields.io/node/v/zhin/latest.svg)](https://nodejs.org)
[![install size](https://pkg-size.dev/badge/install/6801977)](https://pkg-size.dev/zhin)
[![bundle size](https://pkg-size.dev/badge/bundle/1909710)](https://pkg-size.dev/zhin)
[![discord:zhin](https://img.shields.io/discord/1344226569039773696
)](https://discord.gg/CMge4ZeK4n)
[![group:129043431](https://img.shields.io/badge/group-129043431-blue)](https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=vGiaVXLVoNAlDKHTej7GOzQV1Q6U5jiK&authKey=J%2FtBMx99f%2FkPs%2FF3P3Z7bQyISLMB5%2FuTRSI9oVRKCPo5J4Gq4dtOK4XzQLUaAV4r&noverify=0&group_code=129043431)

[Docs](https://docs.zhin.dev) (开发者必看)
Expand Down
11 changes: 10 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ export default defineConfigWithTheme({
lastUpdated: true,
ignoreDeadLinks: true,
themeConfig: {
socialLinks: [
{ icon: 'github', link: 'https://girhub.com/zhinjs/zhin' },
{ icon: 'discord', link: 'https://discord.gg/CMge4ZeK4n' },
{
icon: {
svg: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"></path</svg>`,
},
link: 'https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=vGiaVXLVoNAlDKHTej7GOzQV1Q6U5jiK&authKey=J%2FtBMx99f%2FkPs%2FF3P3Z7bQyISLMB5%2FuTRSI9oVRKCPo5J4Gq4dtOK4XzQLUaAV4r&noverify=0&group_code=129043431',
},
],
search: {
provider: 'algolia',
options: {
Expand Down Expand Up @@ -145,7 +155,6 @@ export default defineConfigWithTheme({
pattern: 'https://github.com/zhinjs/zhin/edit/main/docs/src/:path',
text: '修正文档',
},
socialLinks: [{ icon: 'github', link: 'https://github.com/zhinjs/zhin' }],
lastUpdatedText: '上次更新时间',
docFooter: {
prev: '上一节',
Expand Down

0 comments on commit 42a8e85

Please sign in to comment.