Repository navigation
Commit 1ebd7b7
authored
fix(docs): order llms-full.txt by the navigation tree (#201)
Fixes #196
source.getPages(LANG) hands back pages in whatever order the loader finished
reading them — stable within one build, not across builds. Two consecutive
builds of an untouched tree emitted this file with the whole configure/ group
and the whole deploy/ group swapped: the same 79 pages, different bytes, nothing
in the repository moved.
The repair is not "sort it". Unlike sitemap.xml, where entry order carries
nothing to a crawler, the order pages appear in here is read — this file is one
long document. Alphabetical would be reproducible and worse than the accident it
replaced, scattering build/, deploy/ and operate/ through a flat A-to-Z list.
source.getPageTree(LANG) is meta.json order, which is the site navigation, which
is the order a reader already knows — and it is what llms.txt already walks, so
the index and the full text now agree on sequence instead of contradicting each
other. Reproducibility follows from fixing the meaning rather than the reverse.
Membership decided by the tree rather than the file system now, matching the
sidebar and llms.txt: a page no meta.json lists is absent from all three
together rather than from two of them quietly. An unresolvable node throws
rather than being filtered, so a page can never drop out silently.
Verified: two pre-fix builds differ (a6b849f1 vs 80f7471b), two post-fix builds
are identical (e84953ee). Membership unchanged — 79 page blocks, 93 #-lines, 798
headings, 646 link targets, 685243 bytes, and the sorted-line-multiset digest
35c58ede on all four builds, which only a whole-block permutation leaves fixed.
The 79-page set confirmed three independent ways before the change was trusted.1 parent 453cdba commit 1ebd7b7
1 file changed
Lines changed: 60 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
74 | 125 | | |
75 | 126 | | |
76 | 127 | | |
77 | 128 | | |
78 | 129 | | |
79 | 130 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
85 | 134 | | |
86 | 135 | | |
87 | 136 | | |
| |||
0 commit comments