Skip to content

Commit

Permalink
beautify-authors-and-home (#17)
Browse files Browse the repository at this point in the history
* feat: add author map

* feat: disable history in home
  • Loading branch information
baka-gourd authored Jul 23, 2024
1 parent 79b0dbc commit be39365
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
4 changes: 3 additions & 1 deletion components/internal/CustomDocFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ onKeyStroke([".", "ArrowRight"], (e) => {
<slot name="doc-footer-before" />

<div class="edit-info">
<FooterGitTimestamps />
<!-- <FooterGitTimestamps /> -->
<!-- reserved slot -->
<div></div>
<CodeLinks />
</div>

Expand Down
39 changes: 38 additions & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: home

gitChangelog: false
hero:
name: CleanroomMC
text: Mods, features, and related toolchains
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: home

gitChangelog: false
hero:
name: CleanroomMC
text: 模组、特性及相关工具链
Expand Down

0 comments on commit be39365

Please sign in to comment.