Skip to content

Commit

Permalink
维护:修改页面增补作者格式 (#240)
Browse files Browse the repository at this point in the history
* 维护:修改页面增补作者格式

* fix lint

* tweaks

* tweaks

* tweaks
  • Loading branch information
northword authored Jul 27, 2024
1 parent 71bf9f9 commit 6f05a4d
Show file tree
Hide file tree
Showing 22 changed files with 85 additions and 91 deletions.
29 changes: 25 additions & 4 deletions .vitepress/contributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,41 @@ export interface WikiContributor {
*
* 主要针对多个账号属于同一个人的情况
*/
nameAliases?: string[];
mapByNameAliases?: string[];
/**
* 邮箱别名
*
* 主要针对多个账号属于同一个人的情况
*/
emailAliases?: string[];
mapByEmailAliases?: string[];
/**
* 主页
*
* 可以连接到个人主页,如果不填,默认使用 GitHub 主页
*/
links?: string[];
}

export const wikiContributors: WikiContributor[] = [
{
name: "Northword",
username: "northword",
mapByNameAliases: ["northword"],
mapByEmailAliases: ["44738481+northword@users.noreply.github.com"],
},
{
name: "Chikit-L",
username: "Chikit-L",
mapByNameAliases: ["Chikit_L", "Chikit"],
},
{
name: "l0o0",
username: "l0o0",
},
{
name: "Comte0825",
name: "阿狸",
username: "Comte0825",
mapByNameAliases: ["Comte0825", "Ali"],
},
{
name: "Maple-YZ",
Expand All @@ -43,8 +57,9 @@ export const wikiContributors: WikiContributor[] = [
username: "jiaojiaodubai",
},
{
name: "wakewon",
name: "可口可乐",
username: "wakewon",
mapByNameAliases: ["Victor", "wakewon"],
},
{
name: "syt2",
Expand All @@ -53,5 +68,11 @@ export const wikiContributors: WikiContributor[] = [
{
name: "windingwind",
username: "windingwind",
mapByNameAliases: ["winding"],
},
{
name: "不秃燃的小老弟",
username: "MoYuXianR",
mapByNameAliases: ["MoYuXianR"],
},
];
29 changes: 9 additions & 20 deletions contributing/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

Expand All @@ -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 || 文件的创建日期 | 文档的创建日期 |

::::

Expand Down
5 changes: 2 additions & 3 deletions csl-dev-guide/glossary.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: 术语对照表
author:
- name: jiaojiaodubai
url: https://github.com/jiaojiaodubai
authors:
- jiaojiaodubai
date: 2024-02-16 00:51:03
---

Expand Down
10 changes: 4 additions & 6 deletions plugin-dev-guide/development/debug.md
Original file line number Diff line number Diff line change
@@ -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
---

# 调试代码
Expand Down
5 changes: 2 additions & 3 deletions plugin-dev-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

# 插件开发指南
Expand Down
8 changes: 3 additions & 5 deletions plugin-dev-guide/reference/bootstrap.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
author:
- name: windingwind
url: https://github.com/windingwind/
- name: northword
url: https://github.com/northword/
authors:
- windingwind
- northword
---

# 引导脚本
Expand Down
5 changes: 2 additions & 3 deletions plugin-dev-guide/reference/manifest.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
author:
- name: northword
url: https://github.com/northword/
authors:
- northword
---

# 插件清单
Expand Down
5 changes: 2 additions & 3 deletions plugin-dev-guide/reference/notify.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
author:
- name: windingwind
url: https://github.com/windingwind/
authors:
- windingwind
---

# Zotero 事件机制
Expand Down
10 changes: 4 additions & 6 deletions plugin-dev-guide/reference/preference.md
Original file line number Diff line number Diff line change
@@ -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 首选项
Expand Down
8 changes: 3 additions & 5 deletions user-guide/backup.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down
4 changes: 2 additions & 2 deletions user-guide/faqs/caj2pdf.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down
13 changes: 6 additions & 7 deletions user-guide/faqs/word-addon.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions user-guide/faqs/zotero-7-beta-versions.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: Zotero 7 Beta 历史版本下载
date: 2024-07-21 15:26:17
author:
- name: Chikit_L
---

# Zotero 7 Beta 历史版本下载
Expand Down
4 changes: 2 additions & 2 deletions user-guide/feed.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Feed
icon: rss
author:
- name: 阿狸
authors:
- 阿狸
---

# Feed RSS
Expand Down
6 changes: 3 additions & 3 deletions user-guide/group.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down
4 changes: 2 additions & 2 deletions user-guide/import-from-other-software.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
author:
- name: 阿狸
authors:
- 阿狸
icon: copy
---

Expand Down
2 changes: 1 addition & 1 deletion user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

:::

Expand Down
5 changes: 2 additions & 3 deletions user-guide/misc/link-citation-to-bibliography.md
Original file line number Diff line number Diff line change
@@ -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 中把引注链接到参考文献表
---
Expand Down
6 changes: 3 additions & 3 deletions user-guide/misc/wps-plugin-vba.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down
3 changes: 2 additions & 1 deletion user-guide/plugins/style.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
author: Chikit
authors:
- Chikit
date: 2024-03-13 21:39:17
---

Expand Down
3 changes: 2 additions & 1 deletion user-guide/plugins/zotero-gpt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
author: Chikit
authors:
- Chikit
date: 2024-04-15 20:31:17
---

Expand Down
10 changes: 4 additions & 6 deletions user-guide/why-use-zotero.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down

0 comments on commit 6f05a4d

Please sign in to comment.