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({