ToC: Fix a grammar error and an issue where chapters could be shuffled

Yes, I just assumed that `find` returns a nicely sorted list of files.
Now, I’m running them through `sort` to ensure the list is actually sorted.
master
BodgeMaster 2023-10-09 18:38:24 +02:00
parent 9a545b22ad
commit c1fb12f378
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
cp html_resources/index_template.html index.html
function genlinks {
for FILE in $(find . -maxdepth 1 -type f -name "*-*.html"); do
for FILE in $(find . -maxdepth 1 -type f -name "*-*.html" | sort); do
echo -ne " <li><a href=\"$FILE\">\n"
grep -oe "<title>.*</title>" $FILE | sed -e 's/<title> / /;s| </title>||'
echo " </a></li>"

View File

@ -17,7 +17,7 @@
<p>
Below, in the table of contents, you find links to all the chapters.
There is also a <a href="./notes/">collection of notes</a> that, while not
particularly well maintained, might be interesting (in case you missed
particularly well-maintained, might be interesting (in case you missed
the link: <a href="./notes/">here</a>).
<p>
Table of Contents: