docs: 更新文档链接至新域名 cwd.js.org

This commit is contained in:
anghunk
2026-01-22 09:02:43 +08:00
parent 6555907156
commit 1899449cc6
6 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
```html
<div id="comments"></div>
<script src="https://cwd.zishu.me/cwd.js"></script>
<script src="https://cwd.js.org/cwd.js"></script>
<script>
const comments = new CWDComments({
el: '#comments',
@@ -62,7 +62,7 @@ comments.updateConfig({ theme: 'dark' });
```html
<div id="comments"></div>
<script src="https://cwd.zishu.me/cwd.js"></script>
<script src="https://cwd.js.org/cwd.js"></script>
<script>
const comments = new CWDComments({
el: '#comments',
@@ -76,7 +76,7 @@ comments.updateConfig({ theme: 'dark' });
```astro
<div id="comments"></div>
<script src="https://cwd.zishu.me/cwd.js" is:inline></script>
<script src="https://cwd.js.org/cwd.js" is:inline></script>
<script is:inline>
document.addEventListener('DOMContentLoaded', () => {
const comments = new window.CWDComments({
@@ -107,7 +107,7 @@ comments.updateConfig({ theme: 'dark' });
onMounted(async () => {
if (!window.CWDComments) {
await loadScript('https://cwd.zishu.me/cwd.js');
await loadScript('https://cwd.js.org/cwd.js');
}
instance = new window.CWDComments({

View File

@@ -54,5 +54,5 @@ npm install
## 配置
- [后端配置](https://cwd-docs.zishu.me/guide/backend-config.html)
- [前端配置](https://cwd-docs.zishu.me/guide/frontend-config.html)
- [后端配置](https://cwd.js.org/guide/backend-config.html)
- [前端配置](https://cwd.js.org/guide/frontend-config.html)

View File

@@ -33,6 +33,6 @@ npm run build
### 评论端
如果使用官方评论端 js `https://cwd.zishu.me/cwd.js`,不需要更新。
如果使用官方评论端 js `https://cwd.js.org/cwd.js`,不需要更新。
如果你想自己托管,请下载仓库 `/cwd-admin/public` 中最新的 `cwd.js` 文件。