From 7e975d90d4bd84e6e96b8a829a09978283dea602 Mon Sep 17 00:00:00 2001 From: Rafael Vuijk Date: Sun, 25 Oct 2026 21:04:14 +0000 Subject: [PATCH] Wiki page titles keep their first word The generator took a page's title from everything after the first hyphen in its file name. That removed the number when the wiki's pages were named like `01.-Expressions`. The pages lost their numbers in February 2023, and since then it has removed the first word of every name with a hyphen in it: the wiki showed "in F#", "operations", "notebooks" and "expression from string" as headings and in its list of pages. The title is now the whole name with hyphens as spaces, which is how llms.txt already writes it. Against a build of master, the four headings and the four entries in the list change and nothing else on the wiki does. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura --- src/NaiveStaticGenerator/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NaiveStaticGenerator/Program.cs b/src/NaiveStaticGenerator/Program.cs index 33704e76f..dcada43dc 100644 --- a/src/NaiveStaticGenerator/Program.cs +++ b/src/NaiveStaticGenerator/Program.cs @@ -62,8 +62,8 @@ void GenerateWikiToPages() if (nameOnly.StartsWith("_")) continue; - var rawTitle = nameOnly[(nameOnly.IndexOf('-') + 1)..]; - var title = rawTitle.Replace('-', ' '); + // A page's name as the wiki shows it: `Basic-operations` is "Basic operations" + var title = nameOnly.Replace('-', ' '); var altName = destPath[..^2] + "html"; links.Add((url: nameOnly.Replace("#", "%23") + ".html", name: title));