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

@@ -11,7 +11,7 @@
数据存储在 Cloudflare D1 数据库中,通过 Worker 与数据库交互。
[使用文档](https://cwd-docs.zishu.me)
[使用文档](https://cwd.js.org)
**评论端**
![](https://github.com/user-attachments/assets/6ac091d8-e349-4d40-9d68-485817f63236)

View File

@@ -17,7 +17,7 @@
<div class="layout-title">CWD 评论后台</div>
<div class="layout-actions-wrapper">
<div class="layout-actions">
<a class="layout-button" href="https://cwd-docs.zishu.me" target="_blank">
<a class="layout-button" href="https://cwd.js.org" target="_blank">
使用文档
</a>
<a class="layout-button" href="https://github.com/anghunk/cwd" target="_blank">
@@ -163,7 +163,7 @@ function goSettings() {
}
function openDocs() {
window.open("https://cwd-docs.zishu.me", "_blank");
window.open("https://cwd.js.org", "_blank");
closeActions();
}

View File

@@ -17,7 +17,7 @@ onMounted(async () => {
if (!window.CWDComments) {
await new Promise((resolve, reject) => {
const script = document.createElement("script");
script.src = "https://cwd.zishu.me/cwd.js";
script.src = "https://cwd.js.org/cwd.js";
script.async = true;
script.onload = () => resolve();
script.onerror = (e) => reject(e);

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` 文件。