Skip to content

Commit aa4a991

Browse files
committed
fix: autofill base again again again
1 parent aeac1f5 commit aa4a991

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ 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}/'"
24+
AFTER='base: "${AFTER}"'
2525
else
26-
AFTER='base: '''
26+
AFTER='base: ""'
2727
fi
2828
echo $AFTER
29-
sed -i "s/${BEFORE}/${AFTER}/g" "./docs/.vitepress/config.mts"
29+
sed -i "s/${BEFORE}/${AFTER}/g" ./docs/.vitepress/config.mts
3030
3131
- name: Setup Node.js
3232
uses: actions/setup-node@v2

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: "", // do not change this line
3131
ignoreDeadLinks: true, // TODO remove when all things are done
3232
rewrites: {
3333
'en/:rest*': ':rest*'

0 commit comments

Comments
 (0)