Skip to content

Commit

Permalink
docs: 修改新版vitepress配置
Browse files Browse the repository at this point in the history
  • Loading branch information
agileago committed Aug 29, 2023
1 parent 3babf28 commit 87078c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist-ssr
.vscode
types
coverage
docs/.vitepress/cache
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts → docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
'/guide/': [
{
text: '介绍',
collapsible: true,
collapsed: true,
items: [
{ text: '使用指南', link: '/guide/' },
{ text: '组件', link: '/guide/component' },
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import DefaultTheme from 'vitepress/theme'
import './theme.scss'

export default DefaultTheme
5 changes: 3 additions & 2 deletions docs/.vitepress/theme/theme.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$color: #16a8a7;

:root {
--c-brand: #{$color};
--c-brand-light: #{lighten($color, 5%)};
--vp-c-brand-1: #{$color};
--vp-c-brand-2: #{lighten($color, 5%)};
--vp-c-brand-3: #{lighten($color, 10%)};
}

0 comments on commit 87078c4

Please sign in to comment.