From 4682d4295d9ad704ae080aee489187dadbe97df4 Mon Sep 17 00:00:00 2001 From: Northword Date: Fri, 26 Jul 2024 17:26:52 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E7=BB=B4=E6=8A=A4=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=A1=B5=E9=9D=A2=E5=A2=9E=E8=A1=A5=E4=BD=9C=E8=80=85?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/contributors.ts | 18 ++++++++++-- contributing/markdown.md | 29 ++++++------------- csl-dev-guide/glossary.md | 5 ++-- plugin-dev-guide/development/debug.md | 10 +++---- plugin-dev-guide/index.md | 5 ++-- plugin-dev-guide/reference/bootstrap.md | 8 ++--- plugin-dev-guide/reference/manifest.md | 5 ++-- plugin-dev-guide/reference/notify.md | 5 ++-- plugin-dev-guide/reference/preference.md | 10 +++---- user-guide/backup.md | 8 ++--- user-guide/faqs/caj2pdf.md | 4 +-- user-guide/faqs/word-addon.md | 13 ++++----- user-guide/faqs/zotero-7-beta-versions.md | 2 -- user-guide/feed.md | 4 +-- user-guide/group.md | 6 ++-- user-guide/import-from-other-software.md | 4 +-- user-guide/index.md | 2 +- .../misc/link-citation-to-bibliography.md | 5 ++-- user-guide/misc/wps-plugin-vba.md | 6 ++-- user-guide/plugins/style.md | 2 +- user-guide/plugins/zotero-gpt.md | 2 +- user-guide/why-use-zotero.md | 10 +++---- 22 files changed, 74 insertions(+), 89 deletions(-) diff --git a/.vitepress/contributors.ts b/.vitepress/contributors.ts index 9e67d3f7..7939ef10 100644 --- a/.vitepress/contributors.ts +++ b/.vitepress/contributors.ts @@ -12,19 +12,33 @@ export interface WikiContributor { * * 主要针对多个账号属于同一个人的情况 */ - nameAliases?: string[]; + mapByNameAliases?: string[]; /** * 邮箱别名 * * 主要针对多个账号属于同一个人的情况 */ - emailAliases?: string[]; + mapByEmailAliases?: string[]; + /** + * 主页 + * + * 可以连接到个人主页,如果不填,默认使用 GitHub 主页 + */ + links?: string[]; } export const wikiContributors: WikiContributor[] = [ + { + name: 'Northword', + username: 'northword', + mapByEmailAliases: [ + '44738481+northword@users.noreply.github.com', + ], + }, { name: "Chikit-L", username: "Chikit-L", + mapByNameAliases: ["Chikit_L"] }, { name: "l0o0", diff --git a/contributing/markdown.md b/contributing/markdown.md index ff122b2b..f8a7e0a6 100644 --- a/contributing/markdown.md +++ b/contributing/markdown.md @@ -32,12 +32,10 @@ Frontmatter 必须在 Markdown 文件的顶部,并且被包裹在一对三短 ```md --- title: 页面的标题 -author: - - name: 作者1 - url: https://github.com/windingwind - - name: 作者2 - url: https://northword.cn - - name: 作者3 +authors: + - 作者1 + - 作者2 + - 作者3 date: 2023-07-20 23:46:54 --- @@ -48,20 +46,11 @@ date: 2023-07-20 23:46:54 下面是一些常用的 Frontmatter 键: -| 键 | 类型 | 必填 | 默认值 | 描述 | -| ---------- | ------ | ---- | -------------- | ---------------------------------------------------------------------------------------------------------------- | -| title | string | 否 | 第一个一级标题 | 页面的标题。如果你不在 Frontmatter 中设置 title ,那么页面中第一个一级标题(即 # title)的内容会被当作标题使用。 | -| shortTitle | string | 否 | 标题 | 当前页面的短标题,会在导航栏、侧边栏和路径导航中作为首选。 | -| author | - | 否 | - | 见下述 | -| data | string | 否 | 文件的创建日期 | 文档的创建日期 | - -::: info `author` 详解 - -`author` 由一组 `author.name` 和 `author.url` / `author.email` 组成,其中 `url` 和 `email` 都是可选的。 - -尤其需要注意的是缩进,name 前空二格,加一个短横线 `-`,空一格。`url` 或 `email` 与 `name` 保持对齐,不需要加 `-`。 - -::: +| 键 | 类型 | 必填 | 默认值 | 描述 | +| ------ | -------- | ---- | -------------- | ---------------------------------------------------------------------------------------------------------------- | +| title | string | 否 | 第一个一级标题 | 页面的标题。如果你不在 Frontmatter 中设置 title ,那么页面中第一个一级标题(即 # title)的内容会被当作标题使用。 | +| author | string[] | 否 | - | 当前文档的作者增补,默认情况下会从 Git 记录获取作者。 | +| data | string | 否 | 文件的创建日期 | 文档的创建日期 | :::: diff --git a/csl-dev-guide/glossary.md b/csl-dev-guide/glossary.md index f9ce75de..37ccd415 100644 --- a/csl-dev-guide/glossary.md +++ b/csl-dev-guide/glossary.md @@ -1,8 +1,7 @@ --- title: 术语对照表 -author: - - name: jiaojiaodubai - url: https://github.com/jiaojiaodubai +authors: + - jiaojiaodubai date: 2024-02-16 00:51:03 --- diff --git a/plugin-dev-guide/development/debug.md b/plugin-dev-guide/development/debug.md index 8f15c493..cf2560d6 100644 --- a/plugin-dev-guide/development/debug.md +++ b/plugin-dev-guide/development/debug.md @@ -1,10 +1,8 @@ --- -author: - - name: windingwind - url: https://github.com/windingwind/ - - name: ShareStuff - - name: northword - url: https://github.com/northword/ +authors: + - windingwind + - ShareStuff + - northword --- # 调试代码 diff --git a/plugin-dev-guide/index.md b/plugin-dev-guide/index.md index 4a0fddf4..77b11d40 100644 --- a/plugin-dev-guide/index.md +++ b/plugin-dev-guide/index.md @@ -2,9 +2,8 @@ title: 插件开发指南 date: 2023-04-20 10:06:59 updated: 2023-07-20 16:51:54 -author: - - name: windingwind - url: https://github.com/windingwind/ +authors: + - windingwind --- # 插件开发指南 diff --git a/plugin-dev-guide/reference/bootstrap.md b/plugin-dev-guide/reference/bootstrap.md index d8e1422a..f4002bf3 100644 --- a/plugin-dev-guide/reference/bootstrap.md +++ b/plugin-dev-guide/reference/bootstrap.md @@ -1,9 +1,7 @@ --- -author: - - name: windingwind - url: https://github.com/windingwind/ - - name: northword - url: https://github.com/northword/ +authors: + - windingwind + - northword --- # 引导脚本 diff --git a/plugin-dev-guide/reference/manifest.md b/plugin-dev-guide/reference/manifest.md index a6d56b93..623fada7 100644 --- a/plugin-dev-guide/reference/manifest.md +++ b/plugin-dev-guide/reference/manifest.md @@ -1,7 +1,6 @@ --- -author: - - name: northword - url: https://github.com/northword/ +authors: + - northword --- # 插件清单 diff --git a/plugin-dev-guide/reference/notify.md b/plugin-dev-guide/reference/notify.md index 0b6de9a9..90be9e3a 100644 --- a/plugin-dev-guide/reference/notify.md +++ b/plugin-dev-guide/reference/notify.md @@ -1,7 +1,6 @@ --- -author: - - name: windingwind - url: https://github.com/windingwind/ +authors: + - windingwind --- # Zotero 事件机制 diff --git a/plugin-dev-guide/reference/preference.md b/plugin-dev-guide/reference/preference.md index d68605ed..51601e05 100644 --- a/plugin-dev-guide/reference/preference.md +++ b/plugin-dev-guide/reference/preference.md @@ -1,10 +1,8 @@ --- -author: - - name: windingwind - url: https://github.com/windingwind/ - - name: ShareStuff - - name: northword - url: https://github.com/northword/ +authors: + - windingwind + - ShareStuff + - northword --- # Zotero 首选项 diff --git a/user-guide/backup.md b/user-guide/backup.md index a31a1794..9ce2fc7b 100644 --- a/user-guide/backup.md +++ b/user-guide/backup.md @@ -1,11 +1,9 @@ --- title: 备份 icon: database -author: - - name: Chikit-L - url: https://github.com/Chikit-L - - name: Northword - url: https://northword.dev +authors: + - Chikit-L + - Northword date: 2023-06-28 21:19:25 updated: 2023-10-04 18:38:54 --- diff --git a/user-guide/faqs/caj2pdf.md b/user-guide/faqs/caj2pdf.md index cbaba3fd..51360802 100644 --- a/user-guide/faqs/caj2pdf.md +++ b/user-guide/faqs/caj2pdf.md @@ -1,7 +1,7 @@ --- title: CAJ 文件转为 PDF 文件 -author: - - name: Chikit_L +authors: + - Chikit_L date: 2024-7-21 15:24:09 updated: 2024-7-21 15:24:09 --- diff --git a/user-guide/faqs/word-addon.md b/user-guide/faqs/word-addon.md index 6c4febeb..029b0bf7 100644 --- a/user-guide/faqs/word-addon.md +++ b/user-guide/faqs/word-addon.md @@ -1,11 +1,10 @@ --- -author: - - name: Northword - - name: winding - - name: ShareStuff - - name: Chikit_L - - name: 可口可乐 - url: https://github.com/wakewon +authors: + - Northword + - winding + - ShareStuff + - Chikit_L + - 可口可乐 date: 2023-10-04 11:38:09 updated: 2024-01-31 20:01:21 order: 2 diff --git a/user-guide/faqs/zotero-7-beta-versions.md b/user-guide/faqs/zotero-7-beta-versions.md index b8351d32..272d22d3 100644 --- a/user-guide/faqs/zotero-7-beta-versions.md +++ b/user-guide/faqs/zotero-7-beta-versions.md @@ -1,8 +1,6 @@ --- title: Zotero 7 Beta 历史版本下载 date: 2024-07-21 15:26:17 -author: - - name: Chikit_L --- # Zotero 7 Beta 历史版本下载 diff --git a/user-guide/feed.md b/user-guide/feed.md index 672e3374..4c0a6c11 100644 --- a/user-guide/feed.md +++ b/user-guide/feed.md @@ -1,8 +1,8 @@ --- title: Feed icon: rss -author: - - name: 阿狸 +authors: + - 阿狸 --- # Feed RSS diff --git a/user-guide/group.md b/user-guide/group.md index 7aea6fb5..240e730d 100644 --- a/user-guide/group.md +++ b/user-guide/group.md @@ -1,9 +1,9 @@ --- title: 群组 icon: user-group -author: - - name: Ali - - name: Northword +authors: + - Ali + - Northword date: 2023-06-28 21:19:17 updated: 2023-12-06 18:51:54 --- diff --git a/user-guide/import-from-other-software.md b/user-guide/import-from-other-software.md index 4b40b099..0ad1f38b 100644 --- a/user-guide/import-from-other-software.md +++ b/user-guide/import-from-other-software.md @@ -1,6 +1,6 @@ --- -author: - - name: 阿狸 +authors: + - 阿狸 icon: copy --- diff --git a/user-guide/index.md b/user-guide/index.md index 638f15d6..8aeeeb61 100644 --- a/user-guide/index.md +++ b/user-guide/index.md @@ -14,7 +14,7 @@ updated: 2023-07-20 16:51:54 本文档由 [Zotero Chinese](https://github.com/zotero-chinese) 团队维护。有任何问题,欢迎在文档下方留言! -本文档地址:[zotero-chinese.com](https://zotero-chinese.com/) +本文档地址:[Zotero-chinese.com](https://zotero-chinese.com/) ::: diff --git a/user-guide/misc/link-citation-to-bibliography.md b/user-guide/misc/link-citation-to-bibliography.md index d019f37c..4d05595d 100644 --- a/user-guide/misc/link-citation-to-bibliography.md +++ b/user-guide/misc/link-citation-to-bibliography.md @@ -1,8 +1,7 @@ --- date: 2022-07-29 20:23:17 -author: - - name: Northword - url: https://northword.dev +authors: + - Northword updated: 2023-10-04 11:59:36 title: 在 Word 中把引注链接到参考文献表 --- diff --git a/user-guide/misc/wps-plugin-vba.md b/user-guide/misc/wps-plugin-vba.md index c8e93a34..4ac9871c 100644 --- a/user-guide/misc/wps-plugin-vba.md +++ b/user-guide/misc/wps-plugin-vba.md @@ -1,8 +1,8 @@ --- title: 通过 VBA 在 WPS 中使用 Word 插件 -author: - - name: winding - - name: 不秃燃的小老弟 +authors: + - winding + - 不秃燃的小老弟 date: 2022-11-08 11:38:09 updated: 2023-10-04 12:06:44 --- diff --git a/user-guide/plugins/style.md b/user-guide/plugins/style.md index b0b89685..9c54667a 100644 --- a/user-guide/plugins/style.md +++ b/user-guide/plugins/style.md @@ -1,5 +1,5 @@ --- -author: Chikit +authors: Chikit date: 2024-03-13 21:39:17 --- diff --git a/user-guide/plugins/zotero-gpt.md b/user-guide/plugins/zotero-gpt.md index 53ab1ab2..61f89e3a 100644 --- a/user-guide/plugins/zotero-gpt.md +++ b/user-guide/plugins/zotero-gpt.md @@ -1,5 +1,5 @@ --- -author: Chikit +authors: Chikit date: 2024-04-15 20:31:17 --- diff --git a/user-guide/why-use-zotero.md b/user-guide/why-use-zotero.md index e42a0c71..34dc5c8c 100644 --- a/user-guide/why-use-zotero.md +++ b/user-guide/why-use-zotero.md @@ -2,12 +2,10 @@ title: 为什么使用 Zotero # order: 1 icon: heart -author: - - name: winding - url: https://github.com/windingwind - - name: northword - url: https://northword.cn - - name: 汪汪 +authors: + - winding + - northword + - 汪汪 date: 2023-04-19 22:27:07 updated: 2023-07-20 16:51:54 --- From 9dc999a48d225d85e839aed15f33b9671846ec5f Mon Sep 17 00:00:00 2001 From: Northword Date: Fri, 26 Jul 2024 17:33:41 +0800 Subject: [PATCH 2/5] fix lint --- .vitepress/contributors.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.vitepress/contributors.ts b/.vitepress/contributors.ts index 7939ef10..3736f7f2 100644 --- a/.vitepress/contributors.ts +++ b/.vitepress/contributors.ts @@ -29,16 +29,14 @@ export interface WikiContributor { export const wikiContributors: WikiContributor[] = [ { - name: 'Northword', - username: 'northword', - mapByEmailAliases: [ - '44738481+northword@users.noreply.github.com', - ], + name: "Northword", + username: "northword", + mapByEmailAliases: ["44738481+northword@users.noreply.github.com"], }, { name: "Chikit-L", username: "Chikit-L", - mapByNameAliases: ["Chikit_L"] + mapByNameAliases: ["Chikit_L"], }, { name: "l0o0", From 3a9902c0e5c0bbecb8c313411a10c14a840f89df Mon Sep 17 00:00:00 2001 From: Northword Date: Fri, 26 Jul 2024 17:45:10 +0800 Subject: [PATCH 3/5] tweaks --- .vitepress/contributors.ts | 3 +++ user-guide/index.md | 2 +- user-guide/plugins/style.md | 3 ++- user-guide/plugins/zotero-gpt.md | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.vitepress/contributors.ts b/.vitepress/contributors.ts index 3736f7f2..930abb50 100644 --- a/.vitepress/contributors.ts +++ b/.vitepress/contributors.ts @@ -31,6 +31,7 @@ export const wikiContributors: WikiContributor[] = [ { name: "Northword", username: "northword", + mapByNameAliases: ["northword"], mapByEmailAliases: ["44738481+northword@users.noreply.github.com"], }, { @@ -57,6 +58,7 @@ export const wikiContributors: WikiContributor[] = [ { name: "wakewon", username: "wakewon", + mapByNameAliases: ["Victor"], }, { name: "syt2", @@ -65,5 +67,6 @@ export const wikiContributors: WikiContributor[] = [ { name: "windingwind", username: "windingwind", + mapByNameAliases: ["winding"], }, ]; diff --git a/user-guide/index.md b/user-guide/index.md index 8aeeeb61..fdd21f5a 100644 --- a/user-guide/index.md +++ b/user-guide/index.md @@ -14,7 +14,7 @@ updated: 2023-07-20 16:51:54 本文档由 [Zotero Chinese](https://github.com/zotero-chinese) 团队维护。有任何问题,欢迎在文档下方留言! -本文档地址:[Zotero-chinese.com](https://zotero-chinese.com/) +本文档地址:[`zotero-chinese.com`](https://zotero-chinese.com/) ::: diff --git a/user-guide/plugins/style.md b/user-guide/plugins/style.md index 9c54667a..e46eed25 100644 --- a/user-guide/plugins/style.md +++ b/user-guide/plugins/style.md @@ -1,5 +1,6 @@ --- -authors: Chikit +authors: + - Chikit date: 2024-03-13 21:39:17 --- diff --git a/user-guide/plugins/zotero-gpt.md b/user-guide/plugins/zotero-gpt.md index 61f89e3a..91a3ad51 100644 --- a/user-guide/plugins/zotero-gpt.md +++ b/user-guide/plugins/zotero-gpt.md @@ -1,5 +1,6 @@ --- -authors: Chikit +authors: + - Chikit date: 2024-04-15 20:31:17 --- From d6462aebd6cf6089127122b0ea569ecc0d3f187d Mon Sep 17 00:00:00 2001 From: Northword Date: Fri, 26 Jul 2024 17:47:29 +0800 Subject: [PATCH 4/5] tweaks --- .vitepress/contributors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vitepress/contributors.ts b/.vitepress/contributors.ts index 930abb50..468874c4 100644 --- a/.vitepress/contributors.ts +++ b/.vitepress/contributors.ts @@ -37,7 +37,7 @@ export const wikiContributors: WikiContributor[] = [ { name: "Chikit-L", username: "Chikit-L", - mapByNameAliases: ["Chikit_L"], + mapByNameAliases: ["Chikit_L", "Chikit"], }, { name: "l0o0", From 59b85a08ba166293a88544909244e7e8f439a9da Mon Sep 17 00:00:00 2001 From: Northword Date: Fri, 26 Jul 2024 17:53:56 +0800 Subject: [PATCH 5/5] tweaks --- .vitepress/contributors.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.vitepress/contributors.ts b/.vitepress/contributors.ts index 468874c4..b36cf033 100644 --- a/.vitepress/contributors.ts +++ b/.vitepress/contributors.ts @@ -44,8 +44,9 @@ export const wikiContributors: WikiContributor[] = [ username: "l0o0", }, { - name: "Comte0825", + name: "阿狸", username: "Comte0825", + mapByNameAliases: ["Comte0825", "Ali"], }, { name: "Maple-YZ", @@ -56,9 +57,9 @@ export const wikiContributors: WikiContributor[] = [ username: "jiaojiaodubai", }, { - name: "wakewon", + name: "可口可乐", username: "wakewon", - mapByNameAliases: ["Victor"], + mapByNameAliases: ["Victor", "wakewon"], }, { name: "syt2", @@ -69,4 +70,9 @@ export const wikiContributors: WikiContributor[] = [ username: "windingwind", mapByNameAliases: ["winding"], }, + { + name: "不秃燃的小老弟", + username: "MoYuXianR", + mapByNameAliases: ["MoYuXianR"], + }, ];