Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo: API 英文文档 Fix https://github.com/siyuan-note/siyuan/issues/4095

Liang Ding78a691c39d88
diff --git a/API.md b/API.md
index e4e4e5ee74..dac9509054 100644
--- a/API.md
+++ b/API.md
@@ -480,12 +480,12 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"doOperations": [
{
"action": "insert",
- "data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
- "id": "20211230115020-g02dfx0",
- "parentID": "",
- "previousID": "20211229114650-vrek5x6",
- "retData": null
- }
+ "data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
+ "id": "20211230115020-g02dfx0",
+ "parentID": "",
+ "previousID": "20211229114650-vrek5x6",
+ "retData": null
+ }
],
"undoOperations": null
}
@@ -609,13 +609,13 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"doOperations": [
{
"action": "update",
- "data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
- "id": "20211230161520-querkps",
- "parentID": "",
- "previousID": "",
- "retData": null
- }
- ],
+ "data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
+ "id": "20211230161520-querkps",
+ "parentID": "",
+ "previousID": "",
+ "retData": null
+ }
+ ],
"undoOperations": null
}
]
@@ -671,7 +671,7 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
{
"id": "20210912214605-uhi5gco",
"attrs": {
- "custom-attr1": "line1\nline2"
+ "custom-attr1": "line1\nline2"
}
}
```
@@ -769,8 +769,8 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"code": 0,
"msg": "",
"data": {
- "hPath": "/Please Start Here",
- "content": "## 🍫 Content Block\n\nIn SiYuan, the only important core concept is..."
+ "hPath": "/Please Start Here",
+ "content": "## 🍫 Content Block\n\nIn SiYuan, the only important core concept is..."
}
}
```
@@ -791,8 +791,8 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"code": 0,
"msg": "",
"data": {
- "details": "Finishing boot...",
- "progress": 100
+ "details": "Finishing boot...",
+ "progress": 100
}
}
```
diff --git a/API_zh_CN.md b/API_zh_CN.md
index 6dceca7dd7..72dfed54f9 100644
--- a/API_zh_CN.md
+++ b/API_zh_CN.md
@@ -480,12 +480,12 @@
"doOperations": [
{
"action": "insert",
- "data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
- "id": "20211230115020-g02dfx0",
- "parentID": "",
- "previousID": "20211229114650-vrek5x6",
- "retData": null
- }
+ "data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
+ "id": "20211230115020-g02dfx0",
+ "parentID": "",
+ "previousID": "20211229114650-vrek5x6",
+ "retData": null
+ }
],
"undoOperations": null
}
@@ -609,13 +609,13 @@
"doOperations": [
{
"action": "update",
- "data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
- "id": "20211230161520-querkps",
- "parentID": "",
- "previousID": "",
- "retData": null
- }
- ],
+ "data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
+ "id": "20211230161520-querkps",
+ "parentID": "",
+ "previousID": "",
+ "retData": null
+ }
+ ],
"undoOperations": null
}
]
@@ -671,7 +671,7 @@
{
"id": "20210912214605-uhi5gco",
"attrs": {
- "custom-attr1": "line1\nline2"
+ "custom-attr1": "line1\nline2"
}
}
```
@@ -769,8 +769,8 @@
"code": 0,
"msg": "",
"data": {
- "hPath": "/0 请从这里开始",
- "content": "## 🍫 内容块\n\n在思源中,唯一重要的核心概念是..."
+ "hPath": "/0 请从这里开始",
+ "content": "## 🍫 内容块\n\n在思源中,唯一重要的核心概念是..."
}
}
```
@@ -791,8 +791,8 @@
"code": 0,
"msg": "",
"data": {
- "details": "Finishing boot...",
- "progress": 100
+ "details": "Finishing boot...",
+ "progress": 100
}
}
```