Skip to content

Commit

Permalink
fix: fix base url for preview command
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Jul 8, 2024
1 parent e199d67 commit ad2c290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
git config --global url."https://github.com/".insteadOf git://github.com/
npm install
npm run build
env:
BASE_URL: pull_${{ github.event.issue.number }}

- name: Upload to OSS
if: ${{ steps.regex-match.outputs.match != '' }}
Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config = {
tagline: 'Open Source Analysis Platform',
favicon: 'img/favicon.ico',
url: 'https://open-digger.cn',
baseUrl: '/',
baseUrl: process.env.BASE_URL || '/',

scripts: [
{
Expand Down Expand Up @@ -75,7 +75,7 @@ const config = {

themes: ['@docusaurus/theme-mermaid'],
markdown: {
mermaid: true,
mermaid: true,
},

themeConfig:
Expand Down

0 comments on commit ad2c290

Please sign in to comment.