From 70d1c95254dd1e10b453e7ffb2bf50a3ae3bc990 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 31 Aug 2024 07:31:06 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E6=9B=B4=E6=96=B0=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/common.ts | 5 ++--- docs/.vitepress/theme/fonts.css | 4 ++++ docs/.vitepress/theme/index.ts | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 docs/.vitepress/theme/fonts.css create mode 100644 docs/.vitepress/theme/index.ts diff --git a/docs/.vitepress/config/common.ts b/docs/.vitepress/config/common.ts index ddd209d..9e6dec9 100644 --- a/docs/.vitepress/config/common.ts +++ b/docs/.vitepress/config/common.ts @@ -52,9 +52,8 @@ console.log(generateSidebarConfig()) export const common = defineConfig({ head: [ - [ - 'link', {rel: 'icon', type: 'image/svg+xml', href: '/mbcp-logo.svg'} - ] + ['link', {rel: 'icon', type: 'image/svg+xml', href: '/mbcp-logo.svg'}], + ['link', {rel: 'stylesheet', href: 'https://fonts.font.im/css?family=Cousine:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'}], ], markdown: { math: true diff --git a/docs/.vitepress/theme/fonts.css b/docs/.vitepress/theme/fonts.css new file mode 100644 index 0000000..a0cc335 --- /dev/null +++ b/docs/.vitepress/theme/fonts.css @@ -0,0 +1,4 @@ +:root { + --vp-font-family-base: 'Poppins', sans-serif; + --vp-font-family-mono: 'Cousine', monospace; +} \ No newline at end of file diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts new file mode 100644 index 0000000..254c539 --- /dev/null +++ b/docs/.vitepress/theme/index.ts @@ -0,0 +1,4 @@ +import DefaultTheme from 'vitepress/theme-without-fonts' +import './fonts.css' + +export default DefaultTheme \ No newline at end of file