Skip to content

Commit feb145e

Browse files
authored
Merge pull request #1353 from ModelEngine-Group/wmc/refactor_0902
2 parents 480dfae + 6eed661 commit feb145e

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
push:
88
branches: [develop]
99
# Only trigger when files in the doc directory change
10-
paths:
10+
paths:
1111
- 'doc/**'
1212

1313
# Allow manual running of this workflow from the Actions tab
@@ -51,18 +51,8 @@ jobs:
5151
- name: Install dependencies
5252
run: npm ci
5353

54-
- name: Temporarily modify base path for GitHub Pages
55-
run: |
56-
echo "base: '/nexent/'" > docs/.vitepress/config.temp.mts
57-
cat docs/.vitepress/config.mts >> docs/.vitepress/config.temp.mts
58-
mv docs/.vitepress/config.mts docs/.vitepress/config.original.mts
59-
mv docs/.vitepress/config.temp.mts docs/.vitepress/config.mts
60-
61-
- name: Build with VitePress
62-
run: npm run docs:build
63-
64-
- name: Restore original config
65-
run: mv docs/.vitepress/config.original.mts docs/.vitepress/config.mts
54+
- name: Build with VitePress (with base /nexent/)
55+
run: npm exec vitepress build docs --base /nexent/
6656

6757
- name: Upload artifact
6858
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)