Commit eaf99897 authored by remy's avatar remy

adding fix for URLs in SUMMARY to add .index.html at the end (problem with...

adding fix for URLs in SUMMARY to add .index.html at the end (problem with nginx config since upgrade ... ?)
parent 79e51ec9
#!/bin/bash
# modifying href from https://gitlab.mbb.univ-montp2.fr/docs/doc_user/memos/_book/cloud/
# to https://gitlab.mbb.univ-montp2.fr/docs/doc_user/memos/_book/cloud/index.html
echo
echo "Processing SUMMARY.md/index.html to fix URLs"
echo
# getting list of bad URLs with find . -name "*.html" -exec grep -rE "<a href=\".+/\">" {} \;
find . -name "*.html" -exec sed -ri "s@<a href=\"(.+)/\">@<a href=\"\1/index.html\">@g" {} \;
......@@ -8,6 +8,7 @@ all:
/usr/local/bin/gitbook build;\
fi
./correct_toc.sh _book
./correct_urls_in_summary.sh
# cp -rf ./include _book/gitbook/
# rm -f _book/gitbook/style.css
# cp -f ./include/css/isembench.css _book/gitbook/style.css
......
#!/bin/bash
# modifying href from https://gitlab.mbb.univ-montp2.fr/docs/doc_user/memos/_book/cloud/
# to https://gitlab.mbb.univ-montp2.fr/docs/doc_user/memos/_book/cloud/index.html
echo
echo "Processing SUMMARY.md/index.html to fix URLs"
echo
# getting list of bad URLs with find . -name "*.html" -exec grep -rE "<a href=\".+/\">" {} \;
find . -name "*.html" -exec sed -ri "s@<a href=\"(.+)/\">@<a href=\"\1/index.html\">@g" {} \;
......@@ -8,6 +8,7 @@ all:
/usr/local/bin/gitbook build;\
fi
./correct_toc.sh _book
./correct_urls_in_summary.sh
# cp -rf ./include _book/gitbook/
# rm -f _book/gitbook/style.css
# cp -f ./include/css/isembench.css _book/gitbook/style.css
......
#!/bin/bash
# modifying href from https://gitlab.mbb.univ-montp2.fr/docs/doc_user/memos/_book/cloud/
# to https://gitlab.mbb.univ-montp2.fr/docs/doc_user/memos/_book/cloud/index.html
echo
echo "Processing SUMMARY.md/index.html to fix URLs"
echo
# getting list of bad URLs with find . -name "*.html" -exec grep -rE "<a href=\".+/\">" {} \;
find . -name "*.html" -exec sed -ri "s@<a href=\"(.+)/\">@<a href=\"\1/index.html\">@g" {} \;
......@@ -8,6 +8,7 @@ all:
/usr/local/bin/gitbook build;\
fi
./correct_toc.sh _book
./correct_urls_in_summary.sh
clean:
rm -rf _book
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment