Skip to content

Commit ec753bd

Browse files
committed
cd to make relative include links work
1 parent a5871c1 commit ec753bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

books.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ for book in csv logging why-rust regex json yaml sqlite
66
do
77
echo Book $book
88

9-
./mdbook build books/$book
9+
cd books/$book
10+
./mdbook build
11+
cd ../..
1012
perl -i -p -e 's{href="index.html"}{href="."}g' books/${book}/book/toc.js
1113
perl -i -p -e 's{(href="[a-zA-Z0-9.][^"]+)\.html"}{$1"}g' books/${book}/book/toc.js
1214
find books/${book}/book/ -name *.html | xargs perl -i -p -e 's{href="index.html"}{href="."}g'

0 commit comments

Comments
 (0)