From 9f3b2cec8c8260a97c39e313227d79ad4166a79e Mon Sep 17 00:00:00 2001 From: David Crossley Date: Wed, 2 Oct 2024 10:42:21 +1000 Subject: [PATCH] Fix source-code map alphabeticiser Because stripes repoName did not contain a dash, the ToC sorting into alpha groups was broken for all stripes repos. --- source-code/map.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source-code/map.md b/source-code/map.md index 3e000b7d..dd49b24b 100644 --- a/source-code/map.md +++ b/source-code/map.md @@ -86,6 +86,9 @@ See [usage notes](#usage-notes) below. {%- assign sectionChar = headingIds[subSectionNum] | slice:-1,1 | upcase -%} {%- assign repoNameAlpha = repoName | remove_first:groupStem -%} {%- assign repoNameChar = repoNameAlpha | slice:0 | upcase -%} + {%- if repoName == "stripes" -%} + {%- assign repoNameChar = "A" -%} + {%- endif -%} {%- assign charNum = 0 -%} {%- for char in alpha -%} {%- if char == sectionChar -%}