File tree Expand file tree Collapse file tree 4 files changed +58
-2
lines changed
Expand file tree Collapse file tree 4 files changed +58
-2
lines changed Original file line number Diff line number Diff line change 1- // https://vitepress.dev/reference/site-config
2- export default ( {
1+ import { defineConfig } from 'vitepress'
2+ import {
3+ GitChangelog ,
4+ GitChangelogMarkdownSection ,
5+ } from '@nolebase/vitepress-plugin-git-changelog/vite'
6+
7+ export default defineConfig ( {
8+ vite : {
9+ plugins : [
10+ GitChangelog ( {
11+ repoURL : ( ) => 'https://github.com/MuRainBot/MuRainBot2Doc' ,
12+ } ) ,
13+ GitChangelogMarkdownSection ( ) ,
14+ ] ,
15+ } ,
16+ lang : 'zh-CN' ,
317 title : "MuRainBot2 Doc" ,
418 description : "MuRainBot2's Doc" ,
519 themeConfig : {
@@ -51,6 +65,15 @@ export default ({
5165 search : {
5266 provider : 'local'
5367 } ,
68+
69+ editLink : {
70+ pattern : 'https://github.com/MuRainBot/MuRainBot2Doc/edit/master/docs/:path' ,
71+ text : '帮助我们改进此文档'
72+ } ,
73+
74+ lastUpdated : {
75+ text : '最后更新于'
76+ }
5477 } ,
5578 cleanUrls : true
5679} )
Original file line number Diff line number Diff line change 1+ import DefaultTheme from 'vitepress/theme'
2+ import type { Theme as ThemeConfig } from 'vitepress'
3+ import {
4+ NolebaseGitChangelogPlugin
5+ } from '@nolebase/vitepress-plugin-git-changelog/client'
6+
7+ import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
8+
9+ export const Theme : ThemeConfig = {
10+ extends : DefaultTheme ,
11+ enhanceApp ( { app } ) {
12+ app . use ( NolebaseGitChangelogPlugin ) ;
13+ } ,
14+
15+ }
16+
17+ export default Theme
Original file line number Diff line number Diff line change 11{
2+ "type" : " module" ,
23 "scripts" : {
34 "docs:dev" : " vitepress dev docs" ,
45 "docs:build" : " vitepress build docs" ,
56 "docs:preview" : " vitepress preview docs"
67 },
78 "devDependencies" : {
9+ "@nolebase/vitepress-plugin-git-changelog" : " ^2.17.0" ,
810 "vitepress" : " ^1.5.0"
911 },
1012 "dependencies" : {
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "module" : " ESNext" ,
4+ "moduleResolution" : " Bundler" ,
5+ },
6+ "include" : [
7+ " **/.vitepress/**/*.ts" ,
8+ " **/.vitepress/**/*.mts" ,
9+ " **/.vitepress/**/*.vue"
10+ ],
11+ "exclude" : [
12+ " node_modules"
13+ ]
14+ }
You can’t perform that action at this time.
0 commit comments