action: update git action, patch files.
This commit is contained in:
6
.github/workflows/mkdocs.yaml
vendored
6
.github/workflows/mkdocs.yaml
vendored
@@ -42,6 +42,12 @@ jobs:
|
||||
cd /root
|
||||
mkdocs build
|
||||
mv /root/en/site /root/site/en
|
||||
# patch 404 page, remove absolute path
|
||||
sed 's@="/@="@g' -i /root/site/404.html
|
||||
sed 's@="/@="@g' -i /root/site/en/404.html
|
||||
# patch language change url
|
||||
find /root/site -name "*.htm*" -print0 | xargs -0 sed -i 's/href=" .."/href=".."/g'
|
||||
find /root/site -name "*.htm*" -print0 | xargs -0 sed -i 's@/ .."@/.."@g'
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v3
|
||||
- name: Upload artifact
|
||||
|
||||
Reference in New Issue
Block a user