Skip to content

Commit a5e3f27

Browse files
committed
minor improvemants
1 parent 1568837 commit a5e3f27

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/.vuepress/config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export default defineUserConfig({
4848
docsDir: 'src',
4949
docsBranch: 'main',
5050
editLinkText: 'Edit this page on GitHub',
51+
colorMode: 'auto',
52+
colorModeSwitch: true,
5153
themePlugins: {
5254
copyCode: {
5355
locales: {
@@ -63,13 +65,15 @@ export default defineUserConfig({
6365
}),
6466
plugins: [
6567
shikiPlugin({
68+
langs: ['ts', 'js', 'json', 'md', 'bash'],
69+
langAlias: {
70+
editor: 'ts',
71+
},
6672
themes: {
6773
light: 'light-plus',
6874
dark: 'ayu-mirage',
6975
},
70-
langAlias: {
71-
editor: 'typescript',
72-
},
76+
lineNumbers: false,
7377
}),
7478
redirectPlugin({
7579
config: loadRedirects(),

0 commit comments

Comments
 (0)