Answer architecture round 3: the generated header names go generate, one sorted-keys helper everywhere, one site constructor, and an inline folder reference refused before anything loads

This commit is contained in:
2026-10-03 17:46:28 +02:00
committed by Lillem4n
parent 3bb8628e39
commit cc8797744b
10 changed files with 32 additions and 42 deletions
+1 -6
View File
@@ -180,12 +180,7 @@ func paths(n node) []string {
func tablePaths(t *table) []string {
out := append([]string{""}, t.header...)
sort.Strings(out[1:])
children := make([]string, 0, len(t.children))
for name := range t.children {
children = append(children, name)
}
sort.Strings(children)
for _, name := range children {
for _, name := range sortedNames(t.children) {
for _, p := range paths(t.children[name]) {
out = append(out, join(name, p))
}