Skip to content

Commit

Permalink
refactor(fontSwitcher): ♻️ use Vue to implement FontSwitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Dec 18, 2024
1 parent 162302a commit 2b1f7dd
Show file tree
Hide file tree
Showing 10 changed files with 343 additions and 109 deletions.
3 changes: 2 additions & 1 deletion example/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { SidebarOptions } from '@project-trans/vitepress-theme-project-trans/theme'
import type { ThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'
import type { DefaultTheme } from 'vitepress'
import genConfig from '@project-trans/vitepress-theme-project-trans/config'
import { withThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'

const nav: NavConfig = [
const nav: DefaultTheme.NavItem[] = [
{
text: '大学指南',
link: '/campus/',
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"@iconify-json/carbon": "^1.2.1",
"@iconify-json/icon-park-outline": "^1.2.0",
"@iconify-json/octicon": "^1.2.0",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vueuse/core": "^12.0.0",
"unocss": "^0.65.1",
"vite": "^5.3.1",
"vitepress": "^1.5.0",
Expand Down
Loading

0 comments on commit 2b1f7dd

Please sign in to comment.