From 82684043bcf399b8d63f9e9577828e9e04955adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= Date: Fri, 14 Mar 2025 00:21:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=95=99=E7=A8=8B?= =?UTF-8?q?=E7=AE=80=E4=BB=8B=E4=B8=AD=E9=93=BE=E6=8E=A5=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=20URL=20=E7=BC=BA=E5=B0=91=20base=20URL=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 3 ++- docs/components/contents.vue | 4 +++- docs/env.mts | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 docs/env.mts diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index e1d9eae..97a7e97 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,4 +1,5 @@ import { defineConfig } from 'vitepress' +import { base } from '../env.mts' import { sidebar } from '../sidebar.mts' import { nav } from '../nav.mts' import { @@ -50,7 +51,7 @@ export default defineConfig({ title: "就这么弄 (🚧 施工中)", description: "简单步骤与实用技巧", - base: '/tutorials/', + base: base, locales: { root: { label: '简体中文', diff --git a/docs/components/contents.vue b/docs/components/contents.vue index 44db046..c1cddd6 100644 --- a/docs/components/contents.vue +++ b/docs/components/contents.vue @@ -29,6 +29,7 @@