From c1fb12f3780b71a272804691719695c83dfbf6f9 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Mon, 9 Oct 2023 18:38:24 +0200 Subject: [PATCH] ToC: Fix a grammar error and an issue where chapters could be shuffled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- deployment-script.sh | 2 +- html_resources/index_template.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment-script.sh b/deployment-script.sh index 4fd7772..042ae97 100755 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -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 "
  • \n" grep -oe ".*" $FILE | sed -e 's/ / /;s| ||' echo "
  • " diff --git a/html_resources/index_template.html b/html_resources/index_template.html index 68d747c..b7d265e 100644 --- a/html_resources/index_template.html +++ b/html_resources/index_template.html @@ -17,7 +17,7 @@

    Below, in the table of contents, you find links to all the chapters. There is also a collection of notes 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: here).

    Table of Contents: