Skip to content

Commit f1f681f

Browse files
committed
fix: autofill base again again again again again
1 parent 166ec98 commit f1f681f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ jobs:
1717
- name: Set Base Url
1818
run: |
1919
BRANCH=$(echo ${GITHUB_REF} | sed -e 's/refs\/heads\///')
20-
BEFORE='base: ""'
20+
BEFORE='---base---'
2121
if [[ $BRANCH == ver/* ]]; then
2222
BRANCH_NAME=$(echo $BRANCH | sed 's|origin/||')
2323
AFTER=$(echo $BRANCH_NAME | sed 's|build/ver/||')
24-
AFTER="base: '${AFTER}'"
2524
else
26-
AFTER='base: ""'
25+
AFTER=''
2726
fi
2827
echo $AFTER
2928
sed -i "s/${BEFORE}/${AFTER}/g" ./docs/.vitepress/config.mts

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const vitepressOptions: UserConfig = {
2727
description: "Docs of CommandAPI",
2828
cleanUrls: true,
2929
metaChunk: true,
30-
base: "", // do not change this line
30+
base: "---base---",
3131
ignoreDeadLinks: true, // TODO remove when all things are done
3232
rewrites: {
3333
'en/:rest*': ':rest*'

0 commit comments

Comments
 (0)