Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/deploy-ghpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/';
};
Expand Down