From 19d79d356d1ade0e59e657b5181e8b7907b6c24e Mon Sep 17 00:00:00 2001 From: snowy Date: Thu, 28 Mar 2024 10:42:44 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20vuepress=E6=9E=84=E5=BB=BA=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yml | 1 - docs/.vuepress/config.ts | 2 +- docs/tsconfig.json | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index c02a7833..6ebdfcea 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -31,7 +31,6 @@ jobs: pnpm install pnpm run docs:build > .vuepress/dist/.nojekyll - - name: 部署文档 uses: JamesIves/github-pages-deploy-action@v4 diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index f1677e1d..2b8b1d13 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,5 +1,6 @@ import {defineUserConfig} from "vuepress"; import theme from "./theme.js"; +import viteBundler from "@vuepress/bundler-vite"; export default defineUserConfig({ base: "/", @@ -15,7 +16,6 @@ export default defineUserConfig({ ], theme, - // 和 PWA 一起启用 // shouldPrefetch: false, }); diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 6b3c1f01..10dce145 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -5,8 +5,8 @@ "target": "ES2022" }, "include": [ - "docs/.vuepress/**/*.ts", - "docs/.vuepress/**/*.vue" + ".vuepress/**/*.ts", + ".vuepress/**/*.vue" ], "exclude": [ "node_modules"