Skip to content

Commit

Permalink
Fix source-code map alphabeticiser
Browse files Browse the repository at this point in the history
Because stripes repoName did not contain
a dash, the ToC sorting into alpha groups
was broken for all stripes repos.
  • Loading branch information
dcrossleyau committed Oct 2, 2024
1 parent 121f7b2 commit 9f3b2ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source-code/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 9f3b2ce

Please sign in to comment.