Skip to content

Commit d197d60

Browse files
authored
Zotero 转换器编写指南 (#128)
* stage: zotero 转换器 * 合并更改
1 parent 43e9d0f commit d197d60

5 files changed

Lines changed: 67 additions & 0 deletions

File tree

‎.vitepress/config/sidebar.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ export const sidebar = {
148148
{ text: "CSL 规范", link: "csl-dev-guide/specification" },
149149
{ text: "本地化", link: "csl-dev-guide/translating-locale-files" },
150150
],
151+
"/translator-dev-guide/": [
152+
{ text: "引言", link: "/translator-dev-guide/" },
153+
{ text: "转换器概述", link: "/translator-dev-guide/translators" },
154+
{ text: "编写转换器", link: "/translator-dev-guide/coding" },
155+
{ text: "脚手架", link: "/translator-dev-guide/scaffold" },
156+
],
151157
"/contributing/": [
152158
{ text: "贡献指南", link: "/contributing/" },
153159
{ text: "语法风格", link: "/contributing/markdown" },

‎translator-dev-guide/coding.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# 编写转换器
2+
3+
::: tip todo
4+
5+
see <https://www.zotero.org/support/dev/translators/coding>
6+
7+
:::
8+
9+
## 网页型转换器(Web translators)
10+
11+
### detectWeb
12+
13+
### doWeb
14+
15+
#### 保存单个条目
16+
17+
#### 保存多个条目
18+
19+
## 导入型转换器(Import translators)
20+
21+
## 导出型转换器(Export translators)
22+
23+
## 搜索型转换器(Search translators)
24+
25+
## 其他
26+
27+
### 实用功能
28+
29+
### 调用其他转换器

‎translator-dev-guide/index.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 转换器开发手册
2+
3+
::: tip todo
4+
5+
see <https://www.zotero.org/support/dev/translators>
6+
7+
:::
8+
9+
## 前置知识
10+
11+
HTML、JavaScript、CSS 选择器、正则表达式等。
12+
13+
## 资源
14+
15+
- [官方 Translator 仓库](https://github.com/zotero/translators)
16+
- [中文社区 Translators 仓库](https://github.com/l0o0/translators_CN)
17+
- [官方 Translator 文档](https://www.zotero.org/support/dev/translators)
18+
- [Adam Crymble. How to Write a Zotero Translator: A Practical Beginners Guide for Humanists](https://niche-canada.org/member-projects/zotero-guide/chapter1.html)

‎translator-dev-guide/scaffold.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 脚手架
2+
3+
::: tip todo
4+
5+
see <https://www.zotero.org/support/dev/translators/scaffold>
6+
7+
:::
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Zotero 转换器概述
2+
3+
::: tip todo
4+
5+
see <https://www.zotero.org/support/dev/translators>
6+
7+
:::

0 commit comments

Comments
 (0)