Repository navigation
Commit c243ad7
authored
fix(docs): serve llms-full.txt in the default locale only (#183)
Fixes #177
source.getPages() returns every locale's page set concatenated when called
without a language, so /llms-full.txt served the full text of all seven
locales interleaved — 4,608,768 bytes over 641 title lines. Pinned to
i18n.defaultLanguage, following the shape PR #179 gave llms.txt.
Measured over HTTP from production builds at base and head: 4,608,768 ->
671,413 bytes, 641 -> 93 title lines. Locale-exclusive titles before:
en 63/63, zh-Hans 53/53, ja 31/31, de 25/25, es 32/32, fr 28/28, ko 31/31.
After: en 63/63 and zero for all six others.
This closes an exposure opened minutes earlier by #179, which removed the
robots block on this endpoint. Translated page text stays reachable per page
through the .mdx rewrite and the locale URLs llms.txt announces.1 parent 8feb90d commit c243ad7
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
6 | | - | |
| 19 | + | |
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
| |||
0 commit comments