Skip to content

Commit af8eb50

Browse files
committed
path from where the book is uploaded
1 parent b5e4518 commit af8eb50

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/mdbook.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ jobs:
4949
run: |
5050
export PATH=$PATH:.
5151
./mdbook build book/
52-
perl -i -p -e 's{href="index.html"}{href="."}g' book/toc.js
53-
perl -i -p -e 's{(href="[a-zA-Z0-9.][^"]+)\.html"}{$1"}g' book/toc.js
54-
find book/ -name *.html | xargs perl -i -p -e 's{href="index.html"}{href="."}g'
55-
find book/ -name *.html | xargs perl -i -p -e 's{(href="[a-zA-Z0-9.][^"]+)\.html"}{$1"}g'
52+
perl -i -p -e 's{href="index.html"}{href="."}g' book/book/toc.js
53+
perl -i -p -e 's{(href="[a-zA-Z0-9.][^"]+)\.html"}{$1"}g' book/book/toc.js
54+
find book/book/ -name *.html | xargs perl -i -p -e 's{href="index.html"}{href="."}g'
55+
find book/book/ -name *.html | xargs perl -i -p -e 's{(href="[a-zA-Z0-9.][^"]+)\.html"}{$1"}g'
5656
5757
- name: Upload artifact
5858
uses: actions/upload-pages-artifact@v3
5959
with:
60-
path: book/
60+
path: book/book/
6161

6262
# Deployment job
6363
deploy:

0 commit comments

Comments
 (0)