From e5c956a2c571ce330718c39efa9b4d239ca9f009 Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Thu, 19 Jun 2025 13:50:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:githubpage=E6=9E=84=E5=BB=BA=E6=97=B6Ba?= =?UTF-8?q?sePath=E8=B7=AF=E5=BE=84=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-ghpage.yml | 3 ++- docs/.vuepress/config.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-ghpage.yml b/.github/workflows/deploy-ghpage.yml index ce7d12b2ba..7f3708ec41 100644 --- a/.github/workflows/deploy-ghpage.yml +++ b/.github/workflows/deploy-ghpage.yml @@ -8,7 +8,8 @@ on: pull_request: paths: - '.github/workflows/deploy-ghpage.yml' - +env: + REPO_NAME: ${{ github.event.repository.name }} jobs: deploy-gh-pages: runs-on: ubuntu-latest diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index fbfe8e6476..a4fd3793c0 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -8,7 +8,8 @@ const __dirname = getDirname(import.meta.url); const getBasePath = () => { const platform = process.env.DEPLOY_PLATFORM; if (platform === 'github') { - return '/docs/'; + const repo_name = process.env.REPO_NAME || 'docs'; + return `/${repo_name}/`; } return '/'; }; From 234ff7488ece1bb87f61efb9a3fbf07f4f977fde Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Thu, 19 Jun 2025 13:50:17 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:githubpage=E6=9E=84=E5=BB=BA=E6=97=B6Ba?= =?UTF-8?q?sePath=E8=B7=AF=E5=BE=84=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-ghpage.yml | 3 ++- docs/.vuepress/config.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-ghpage.yml b/.github/workflows/deploy-ghpage.yml index ce7d12b2ba..7f3708ec41 100644 --- a/.github/workflows/deploy-ghpage.yml +++ b/.github/workflows/deploy-ghpage.yml @@ -8,7 +8,8 @@ on: pull_request: paths: - '.github/workflows/deploy-ghpage.yml' - +env: + REPO_NAME: ${{ github.event.repository.name }} jobs: deploy-gh-pages: runs-on: ubuntu-latest diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index fbfe8e6476..a4fd3793c0 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -8,7 +8,8 @@ const __dirname = getDirname(import.meta.url); const getBasePath = () => { const platform = process.env.DEPLOY_PLATFORM; if (platform === 'github') { - return '/docs/'; + const repo_name = process.env.REPO_NAME || 'docs'; + return `/${repo_name}/`; } return '/'; }; From da4ac0e82279cb696bc0ce388d410ec07def1a5b Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:18:06 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85`DEPLOY=5FPLATFOR?= =?UTF-8?q?M`=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-ghpage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-ghpage.yml b/.github/workflows/deploy-ghpage.yml index 7f3708ec41..1a6047e677 100644 --- a/.github/workflows/deploy-ghpage.yml +++ b/.github/workflows/deploy-ghpage.yml @@ -10,6 +10,7 @@ on: - '.github/workflows/deploy-ghpage.yml' env: REPO_NAME: ${{ github.event.repository.name }} + DEPLOY_PLATFORM: "github" jobs: deploy-gh-pages: runs-on: ubuntu-latest