Skip to content

Commit

Permalink
feat: support vitesse theme for markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Oct 28, 2024
1 parent 2f73b41 commit c90908a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export default defineConfig({
},
},
},
markdown: {
theme: {
light: 'vitesse-light',
dark: 'vitesse-dark',
},
},
themeConfig: {
logo: { src: '/logo.svg', style: { height: '28px' } },
nav: [{ text: 'Home', link: '/' }],
Expand Down
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ hero:
- theme: brand
text: Get Started
link: /getting-started
- theme: alt
text: View On Github
link: https://github.com/varletjs/rattail


features:
- title: General
Expand Down
3 changes: 3 additions & 0 deletions docs/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ hero:
- theme: brand
text: 快速开始
link: /zh/getting-started
- theme: alt
text: 查看源码
link: https://github.com/varletjs/rattail

features:
- title: 通用
Expand Down

0 comments on commit c90908a

Please sign in to comment.