docs(config): 重构配置文档结构并简化前端使用说明

- 删除 widget/CONFIG.md,将配置参数统一到 docs/guide/frontend-config.md
- 简化 widget/README.md,移除详细代码示例并指向完整文档链接
- 更新前端配置说明,优化注释并移除冗余参数
This commit is contained in:
anghunk
2026-01-14 13:31:16 +08:00
parent d3ca6a0bfa
commit 94653bfac8
3 changed files with 4 additions and 102 deletions

View File

@@ -2,17 +2,4 @@
## 使用方法
```html
<!-- 评论组件容器 -->
<div id="comments"></div>
<script src="dist/cwd-comments.js"></script>
<script>
new CWDComments({
el: '#comments', // 容器 ID
apiBaseUrl: 'https://message.zishu.me', // 部署的后端地址
postSlug: '/message', // 当前页面路径,可使用博客程序支持的 url 模板路径
}).mount();
</script>
```
文档:[https://cwd-comments.zishu.me/guide/frontend-config.html](https://cwd-comments.zishu.me/guide/frontend-config.html)