docs: 更新文档路径说明并添加GitHub星标组件

- 在frontend-config.md中补充组件源码目录说明
- 统一文档中组件路径的表示方式(@docs/widget → /docs/widget)
- 从导航栏社交链接中移除GitHub图标
- 新增GitHubStar组件,在导航栏显示项目星标数
- 添加对应样式支持星标组件显示效果
This commit is contained in:
anghunk
2026-01-30 10:23:50 +08:00
parent 80e234be7c
commit b6f21b309e
6 changed files with 119 additions and 6 deletions

View File

@@ -29,10 +29,7 @@ export default defineConfig({
pattern: 'https://github.com/anghunk/cwd/blob/main/docs/:path',
text: '在 GitHub 上编辑此页面',
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/anghunk/cwd' },
{ icon: 'discord', link: 'https://discord.gg/VahC3r7t' },
],
socialLinks: [{ icon: 'discord', link: 'https://discord.gg/VahC3r7t' }],
lastUpdated: true,
lastUpdatedText: '最后更新于',
footer: {