diff --git a/.gitignore b/.gitignore index f47ff2a..8addb9e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /index.html *.swp +/chapters.json diff --git a/01-Wake_Up-Jack_intro.html b/01-Wake_Up-Jack_intro.html index a1ef278..c90919c 100644 --- a/01-Wake_Up-Jack_intro.html +++ b/01-Wake_Up-Jack_intro.html @@ -1,4 +1,4 @@ -
Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/02-Unlikely_Encounter-Annie-intro.html b/02-Unlikely_Encounter-Annie-intro.html index c2838ce..e3edd39 100644 --- a/02-Unlikely_Encounter-Annie-intro.html +++ b/02-Unlikely_Encounter-Annie-intro.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/03-A_Simple_Errand-Annie_library.html b/03-A_Simple_Errand-Annie_library.html index ab6d47f..7bdde1c 100644 --- a/03-A_Simple_Errand-Annie_library.html +++ b/03-A_Simple_Errand-Annie_library.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/04-Return_Null.html b/04-Return_Null.html index f542549..b9bb611 100644 --- a/04-Return_Null.html +++ b/04-Return_Null.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/05-Internet_Saboteur.html b/05-Internet_Saboteur.html index aeb5f41..5c77a19 100644 --- a/05-Internet_Saboteur.html +++ b/05-Internet_Saboteur.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/07-Library_At_Night.html b/07-Library_At_Night.html index fe07018..22f40cf 100644 --- a/07-Library_At_Night.html +++ b/07-Library_At_Night.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/deployment-script.sh b/deployment-script.sh index 836dfb9..e4563e5 100755 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -11,8 +11,21 @@ function genlinks { done } +function genjson { + echo -n '{"pages":[' + { for FILE in $(find . -maxdepth 1 -type f -name "??-*.html" | sort); do + echo "$FILE" >&2 + echo -n "\"$FILE\"," + done } | sed -e 's/.$//' + echo "]}" +} + +echo "Generating landing page..." >&2 sed -ne '/ /q;p' html_resources/index_template.html > index.html # for some fucking reason, there is no way to tell wc to only print the number so we do cat abuse to get rid of the filename LINE_NUMBER=$(("$(cat index.html | wc -l)"+2)) genlinks >> index.html tail -n+$LINE_NUMBER html_resources/index_template.html >> index.html + +echo "Generating chapters JSON..." >&2 +genjson > chapters.json diff --git a/ea-RTFM.html b/ea-RTFM.html index 5b96d9c..b7459a1 100644 --- a/ea-RTFM.html +++ b/ea-RTFM.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/fa-open_up.html b/fa-open_up.html index 77d43e3..166cdad 100644 --- a/fa-open_up.html +++ b/fa-open_up.html @@ -1,4 +1,4 @@ -@@ -62,4 +62,4 @@ overgrown with large bushes. He pushes the leaves aside and
-Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/ga-Who_Died_Today-Emily_intro.html b/ga-Who_Died_Today-Emily_intro.html index 6cf41ee..f0abd5d 100644 --- a/ga-Who_Died_Today-Emily_intro.html +++ b/ga-Who_Died_Today-Emily_intro.html @@ -1,4 +1,4 @@ -Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
+Copyright © 2023-2026 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/html_resources/chapters.json b/html_resources/chapters.json new file mode 100644 index 0000000..158452f --- /dev/null +++ b/html_resources/chapters.json @@ -0,0 +1 @@ +{"pages":["./prev.html","./layout.html","./next.html"]} diff --git a/html_resources/index_template.html b/html_resources/index_template.html index 2cc568b..f784624 100644 --- a/html_resources/index_template.html +++ b/html_resources/index_template.html @@ -43,4 +43,4 @@Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.