From be393657198c84015e1d1fa319ce84bc403be5d2 Mon Sep 17 00:00:00 2001
From: baka-gourd <36119339+baka-gourd@users.noreply.github.com>
Date: Wed, 24 Jul 2024 01:54:05 +0800
Subject: [PATCH] beautify-authors-and-home (#17)
* feat: add author map
* feat: disable history in home
---
components/internal/CustomDocFooter.vue | 4 ++-
docs/.vitepress/theme/index.ts | 39 ++++++++++++++++++++++++-
docs/index.md | 2 +-
docs/zh/index.md | 2 +-
4 files changed, 43 insertions(+), 4 deletions(-)
diff --git a/components/internal/CustomDocFooter.vue b/components/internal/CustomDocFooter.vue
index 5000a33..04715a5 100644
--- a/components/internal/CustomDocFooter.vue
+++ b/components/internal/CustomDocFooter.vue
@@ -38,7 +38,9 @@ onKeyStroke([".", "ArrowRight"], (e) => {
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 73824e1..f3aca1d 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -63,7 +63,44 @@ export default {
}, 0);
};
}
- app.use(NolebaseGitChangelogPlugin);
+ app.use(NolebaseGitChangelogPlugin, {
+ mapAuthors: [
+ {
+ avatar: "https://avatars.githubusercontent.com/u/36119339?v=4",
+ name: "Nullpinter",
+ username: "baka-gourd",
+ mapByNameAliases: ["baka-gourd"],
+ },
+ {
+ avatar: "https://avatars.githubusercontent.com/u/25394029?v=4",
+ name: "Waiting Idly",
+ username: "WaitingIdly",
+ mapByNameAliases: ["WaitingIdly"],
+ },
+ {
+ avatar: "https://avatars.githubusercontent.com/u/3684700?v=4",
+ name: "Rongmario",
+ username: "Rongmario",
+ },
+ {
+ avatar: "https://avatars.githubusercontent.com/u/21279092?v=4",
+ name: "Clefal",
+ username: "TUsama",
+ mapByNameAliases: ["TUsama"],
+ },
+ {
+ avatar: "https://avatars.githubusercontent.com/u/75018198?v=4",
+ username: "ikexing-cn",
+ name: "ikexing",
+ mapByNameAliases: ["ikexing-cn"],
+ },
+ {
+ avatar: "https://avatars.githubusercontent.com/u/45517902?v=4",
+ username: "brachy84",
+ name: "brachy84",
+ },
+ ],
+ });
app.use(NolebaseInlineLinkPreviewPlugin);
app.provide(InjectionKey, {
spotlight: {
diff --git a/docs/index.md b/docs/index.md
index 8ac0a75..9b1737b 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,6 +1,6 @@
---
layout: home
-
+gitChangelog: false
hero:
name: CleanroomMC
text: Mods, features, and related toolchains
diff --git a/docs/zh/index.md b/docs/zh/index.md
index 59ba5be..53274b0 100644
--- a/docs/zh/index.md
+++ b/docs/zh/index.md
@@ -1,6 +1,6 @@
---
layout: home
-
+gitChangelog: false
hero:
name: CleanroomMC
text: 模组、特性及相关工具链