deployment-script: Only include chapters in the ToC
parent
9d2b65bbb0
commit
019846a87a
|
@ -2,7 +2,7 @@
|
||||||
cp html_resources/index_template.html index.html
|
cp html_resources/index_template.html index.html
|
||||||
|
|
||||||
function genlinks {
|
function genlinks {
|
||||||
for FILE in $(find . -maxdepth 1 -type f -name "*.html"); do
|
for FILE in $(find . -maxdepth 1 -type f -name "*-*.html"); do
|
||||||
echo -ne " <li><a href=\"$FILE\">\n"
|
echo -ne " <li><a href=\"$FILE\">\n"
|
||||||
grep -oe "<title>.*</title>" $FILE | sed -e 's/<title> / /;s| </title>||'
|
grep -oe "<title>.*</title>" $FILE | sed -e 's/<title> / /;s| </title>||'
|
||||||
echo " </a></li>"
|
echo " </a></li>"
|
||||||
|
|
Loading…
Reference in New Issue