Skip to content

Commit

Permalink
build(site): update dependencies and migrate setting
Browse files Browse the repository at this point in the history
  • Loading branch information
baka-gourd committed Aug 11, 2024
1 parent 172cf3f commit b9b7d37
Show file tree
Hide file tree
Showing 4 changed files with 467 additions and 534 deletions.
37 changes: 37 additions & 0 deletions docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,42 @@ export const shared = defineConfigWithTheme<CleanRoomConfig>({
GitChangelog({
repoURL: () => "https://github.com/CleanroomMC/cleanroom-website",
maxGitLogCount: 20,
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",
},
],
}),
GitChangelogMarkdownSection(),
],
Expand All @@ -54,6 +90,7 @@ export const shared = defineConfigWithTheme<CleanRoomConfig>({
lineNumbers: true,
config(md) {
// 其他 markdown-it 配置...
// @ts-expect-error
md.use(InlineLinkPreviewElementTransform);
},
},
Expand Down
39 changes: 1 addition & 38 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,44 +63,7 @@ export default {
}, 0);
};
}
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(NolebaseGitChangelogPlugin);
app.use(NolebaseInlineLinkPreviewPlugin);
app.provide(InjectionKey, {
spotlight: {
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@
"author": "",
"license": "All right reserved.",
"devDependencies": {
"@nolebase/vitepress-plugin-enhanced-mark": "^2.2.2",
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.2.2",
"@nolebase/vitepress-plugin-git-changelog": "^2.2.2",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.2.2",
"@nolebase/vitepress-plugin-inline-link-preview": "^2.2.2",
"@types/node": "^20.14.11",
"@typescript-eslint/parser": "^7.17.0",
"@nolebase/vitepress-plugin-enhanced-mark": "^2.4.0",
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.4.0",
"@nolebase/vitepress-plugin-git-changelog": "^2.4.0",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.4.0",
"@nolebase/vitepress-plugin-inline-link-preview": "^2.4.0",
"@nolebase/vitepress-plugin-page-properties": "^2.4.0",
"@types/node": "^20.14.15",
"@typescript-eslint/parser": "^7.18.0",
"@vue/tsconfig": "^0.5.1",
"markdown-it-mathjax3": "^4.3.2",
"prettier": "3.2.5",
"vitepress": "1.0.0-rc.44",
"vitepress-sidebar": "^1.24.0",
"vitepress-sidebar": "^1.24.1",
"vue-eslint-parser": "^9.4.3"
},
"dependencies": {
"@formkit/auto-animate": "^0.8.2",
"@vueuse/core": "^10.11.0",
"vue": "^3.4.33"
"@vueuse/core": "^10.11.1",
"vue": "^3.4.37"
}
}
Loading

0 comments on commit b9b7d37

Please sign in to comment.