diff --git a/README.md b/README.md index 25a96e4..c7805d9 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,8 @@ export default { ## 调试说明 1. 修改文件后在仓库根目录下进行构建 - - `pnpm i` - - `pnpm build` + - `pnpm i` + - `pnpm build` 2. 切换到 example 路径下预览 - - `cd example` - - `pnpm dev` \ No newline at end of file + - `cd example` + - `pnpm dev` diff --git a/example/docs/.vitepress/config.ts b/example/docs/.vitepress/config.ts index 04dbc63..e5d7903 100644 --- a/example/docs/.vitepress/config.ts +++ b/example/docs/.vitepress/config.ts @@ -1,6 +1,5 @@ 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' diff --git a/example/docs/.vitepress/theme/style.css b/example/docs/.vitepress/theme/style.css index 6a4d1aa..59a4411 100644 --- a/example/docs/.vitepress/theme/style.css +++ b/example/docs/.vitepress/theme/style.css @@ -43,7 +43,7 @@ * in custom container, badges, etc. * -------------------------------------------------------------------------- */ - :root { +:root { --vp-c-default-1: var(--vp-c-gray-1); --vp-c-default-2: var(--vp-c-gray-2); --vp-c-default-3: var(--vp-c-gray-3); @@ -99,28 +99,14 @@ :root { --vp-home-hero-name-color: transparent; - --vp-home-hero-name-background: -webkit-linear-gradient( - 120deg, - #eaacb8 30%, - #47caff - ); - - --vp-home-hero-image-background-image: linear-gradient( - -45deg, - #e6a3b0 30%, - #ffffff 50%, - #47caff 70% - ); + --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #eaacb8 30%, #47caff); + + --vp-home-hero-image-background-image: linear-gradient(-45deg, #e6a3b0 30%, #ffffff 50%, #47caff 70%); --vp-home-hero-image-filter: blur(44px); } .dark:root { - --vp-home-hero-image-background-image: linear-gradient( - -45deg, - #eaacb8 30%, - #47caff 50%, - #eaacb8 75% - ); + --vp-home-hero-image-background-image: linear-gradient(-45deg, #eaacb8 30%, #47caff 50%, #eaacb8 75%); } @media (min-width: 640px) { @@ -161,4 +147,4 @@ /* 文档两端对齐 */ .vp-doc { text-align: justify; -} \ No newline at end of file +} diff --git a/package.json b/package.json index a318adc..43a4ef3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@project-trans/vitepress-theme-project-trans", "type": "module", "version": "0.6.0", - "packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c", + "packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c", "description": "A VitePress theme made with ❤️ by project-trans", "license": "MIT", "repository": { diff --git a/src/components.ts b/src/components.ts index 925a302..a15b88d 100644 --- a/src/components.ts +++ b/src/components.ts @@ -8,9 +8,9 @@ import PageInfo from './components/PageInfo.vue' import ReadingTime from './components/ReadingTime.vue' export { + AppearanceToggle, AppFooter, AppSBox, - AppearanceToggle, ArticlesMenu, CopyrightInfo, HomeContent, diff --git a/src/components/AppFooter.vue b/src/components/AppFooter.vue index f874602..bd02a7e 100644 --- a/src/components/AppFooter.vue +++ b/src/components/AppFooter.vue @@ -1,16 +1,16 @@