Skip to content

Commit 6f05a4d

Browse files
authored
维护:修改页面增补作者格式 (#240)
* 维护:修改页面增补作者格式 * fix lint * tweaks * tweaks * tweaks
1 parent 71bf9f9 commit 6f05a4d

22 files changed

Lines changed: 85 additions & 91 deletions

.vitepress/contributors.ts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,41 @@ export interface WikiContributor {
1212
*
1313
* 主要针对多个账号属于同一个人的情况
1414
*/
15-
nameAliases?: string[];
15+
mapByNameAliases?: string[];
1616
/**
1717
* 邮箱别名
1818
*
1919
* 主要针对多个账号属于同一个人的情况
2020
*/
21-
emailAliases?: string[];
21+
mapByEmailAliases?: string[];
22+
/**
23+
* 主页
24+
*
25+
* 可以连接到个人主页,如果不填,默认使用 GitHub 主页
26+
*/
27+
links?: string[];
2228
}
2329

2430
export const wikiContributors: WikiContributor[] = [
31+
{
32+
name: "Northword",
33+
username: "northword",
34+
mapByNameAliases: ["northword"],
35+
mapByEmailAliases: ["44738481+northword@users.noreply.github.com"],
36+
},
2537
{
2638
name: "Chikit-L",
2739
username: "Chikit-L",
40+
mapByNameAliases: ["Chikit_L", "Chikit"],
2841
},
2942
{
3043
name: "l0o0",
3144
username: "l0o0",
3245
},
3346
{
34-
name: "Comte0825",
47+
name: "阿狸",
3548
username: "Comte0825",
49+
mapByNameAliases: ["Comte0825", "Ali"],
3650
},
3751
{
3852
name: "Maple-YZ",
@@ -43,8 +57,9 @@ export const wikiContributors: WikiContributor[] = [
4357
username: "jiaojiaodubai",
4458
},
4559
{
46-
name: "wakewon",
60+
name: "可口可乐",
4761
username: "wakewon",
62+
mapByNameAliases: ["Victor", "wakewon"],
4863
},
4964
{
5065
name: "syt2",
@@ -53,5 +68,11 @@ export const wikiContributors: WikiContributor[] = [
5368
{
5469
name: "windingwind",
5570
username: "windingwind",
71+
mapByNameAliases: ["winding"],
72+
},
73+
{
74+
name: "不秃燃的小老弟",
75+
username: "MoYuXianR",
76+
mapByNameAliases: ["MoYuXianR"],
5677
},
5778
];

contributing/markdown.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ Frontmatter 必须在 Markdown 文件的顶部,并且被包裹在一对三短
3232
```md
3333
---
3434
title: 页面的标题
35-
author:
36-
- name: 作者1
37-
url: https://github.com/windingwind
38-
- name: 作者2
39-
url: https://northword.cn
40-
- name: 作者3
35+
authors:
36+
- 作者1
37+
- 作者2
38+
- 作者3
4139
date: 2023-07-20 23:46:54
4240
---
4341

@@ -48,20 +46,11 @@ date: 2023-07-20 23:46:54
4846

4947
下面是一些常用的 Frontmatter 键:
5048

51-
|| 类型 | 必填 | 默认值 | 描述 |
52-
| ---------- | ------ | ---- | -------------- | ---------------------------------------------------------------------------------------------------------------- |
53-
| title | string || 第一个一级标题 | 页面的标题。如果你不在 Frontmatter 中设置 title ,那么页面中第一个一级标题(即 # title)的内容会被当作标题使用。 |
54-
| shortTitle | string || 标题 | 当前页面的短标题,会在导航栏、侧边栏和路径导航中作为首选。 |
55-
| author | - || - | 见下述 |
56-
| data | string || 文件的创建日期 | 文档的创建日期 |
57-
58-
::: info `author` 详解
59-
60-
`author` 由一组 `author.name``author.url` / `author.email` 组成,其中 `url``email` 都是可选的。
61-
62-
尤其需要注意的是缩进,name 前空二格,加一个短横线 `-`,空一格。`url``email``name` 保持对齐,不需要加 `-`
63-
64-
:::
49+
|| 类型 | 必填 | 默认值 | 描述 |
50+
| ------ | -------- | ---- | -------------- | ---------------------------------------------------------------------------------------------------------------- |
51+
| title | string || 第一个一级标题 | 页面的标题。如果你不在 Frontmatter 中设置 title ,那么页面中第一个一级标题(即 # title)的内容会被当作标题使用。 |
52+
| author | string[] || - | 当前文档的作者增补,默认情况下会从 Git 记录获取作者。 |
53+
| data | string || 文件的创建日期 | 文档的创建日期 |
6554

6655
::::
6756

csl-dev-guide/glossary.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: 术语对照表
3-
author:
4-
- name: jiaojiaodubai
5-
url: https://github.com/jiaojiaodubai
3+
authors:
4+
- jiaojiaodubai
65
date: 2024-02-16 00:51:03
76
---
87

plugin-dev-guide/development/debug.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
2-
author:
3-
- name: windingwind
4-
url: https://github.com/windingwind/
5-
- name: ShareStuff
6-
- name: northword
7-
url: https://github.com/northword/
2+
authors:
3+
- windingwind
4+
- ShareStuff
5+
- northword
86
---
97

108
# 调试代码

plugin-dev-guide/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: 插件开发指南
33
date: 2023-04-20 10:06:59
44
updated: 2023-07-20 16:51:54
5-
author:
6-
- name: windingwind
7-
url: https://github.com/windingwind/
5+
authors:
6+
- windingwind
87
---
98

109
# 插件开发指南

plugin-dev-guide/reference/bootstrap.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
author:
3-
- name: windingwind
4-
url: https://github.com/windingwind/
5-
- name: northword
6-
url: https://github.com/northword/
2+
authors:
3+
- windingwind
4+
- northword
75
---
86

97
# 引导脚本

plugin-dev-guide/reference/manifest.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
author:
3-
- name: northword
4-
url: https://github.com/northword/
2+
authors:
3+
- northword
54
---
65

76
# 插件清单

plugin-dev-guide/reference/notify.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
author:
3-
- name: windingwind
4-
url: https://github.com/windingwind/
2+
authors:
3+
- windingwind
54
---
65

76
# Zotero 事件机制

plugin-dev-guide/reference/preference.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
2-
author:
3-
- name: windingwind
4-
url: https://github.com/windingwind/
5-
- name: ShareStuff
6-
- name: northword
7-
url: https://github.com/northword/
2+
authors:
3+
- windingwind
4+
- ShareStuff
5+
- northword
86
---
97

108
# Zotero 首选项

user-guide/backup.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: 备份
33
icon: database
4-
author:
5-
- name: Chikit-L
6-
url: https://github.com/Chikit-L
7-
- name: Northword
8-
url: https://northword.dev
4+
authors:
5+
- Chikit-L
6+
- Northword
97
date: 2023-06-28 21:19:25
108
updated: 2023-10-04 18:38:54
119
---

0 commit comments

Comments
 (0)