-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
30 lines (29 loc) · 969 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig } from 'vite';
import { GitChangelog, GitChangelogMarkdownSection } from '@nolebase/vitepress-plugin-git-changelog/vite';
import { PageProperties, PagePropertiesMarkdownSection } from '@nolebase/vitepress-plugin-page-properties/vite'
export default defineConfig({
plugins: [
GitChangelog({
repoURL: () => 'https://github.com/shalotts/shalodoc',
maxGitLogCount: 1000
}),
GitChangelogMarkdownSection({
getChangelogTitle: (): string => {
return 'Changelog'
},
getContributorsTitle: (): string => {
return 'Contributors'
},
excludes: [],
exclude: (_, { helpers }): boolean => {
return helpers.idEquals('toc.md') || helpers.idEquals('index.md');
},
}),
PageProperties(),
PagePropertiesMarkdownSection({
exclude: (_, { helpers }): boolean => {
return helpers.idEquals('toc.md') || helpers.idEquals('index.md');
},
})
]
})