docs(book): std encoding #670
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/646-std-encoding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
New Std page
book/std/encoding.md(kind: page,status: stable,package: std/encoding,order: 50), written likestd/json.md. It opens with the module's two halves and then covers, each with a real program and its output:EncodingError: what was wrong and at which characterrendered,EncodedValue.of, amatchover it)ValueDecoderwith the path of what did not fit (address.zip: ...),lenientextend Seconds with Encode)structureOfand atrb errorblock for amatchoverStructurethat forgets casesFormat:Json.encodeAll/decodeAlland theJson.itemsstagebook/std/index.mdgets the generated entry (torb docs index book). No other book page is touched; the other Std slices of #592 are not started.Old page: kept, unpublished
docs/standard-library/encoding.mdis kept indocs/. The skilltorbscript-standard-librarycarries the wholestandard-library/folder (<!-- carry: standard-library/ ... -->indocs/skills/torbscript-standard-library/SKILL.md) and listsstd/encodingin its page index, so it is still built from this page; deleting it would remove the package from the skill, and other pages of that skill link to it (json,yaml,toml,digest,regex,how-to/read-and-write-json). It is not published on the site (the site is built frombook/only). Nothing is deleted, so no links change anddocs skill --checkis unchanged.Verified
With the nightly
torb(nightly-20261029), no local build:trb run/trb errorblock of the page run in its ownmain.trbby a small script (torb run/torb check) and compared with itsoutputblock: 11 blocks, 0 mismatchestorb docs check book --no-native: the nightly predates the book rules ofdocs check, so it reports its old rules on every existing book page (kind: page,// prints,output) and cannot be the gate here. The checks it does share (the canon: command-form calls, parentheses atprintwith an operator) report nothing forencoding.md. The book gate itself runs in CI.torb docs index book --check: 8 indexes, all up to datetorb docs site book --check: 47 pages, no broken linktorb docs skill docs skills --check: 7 skills, all up to datestd/streamis named in code, not linked)Closes #646
Checklist for
b1c5225:book/std/encoding.md+ generated index line); no other book page touched.docs/standard-library/encoding.mdkept and unpublished with a reason (skilltorbscript-standard-librarycarriesstandard-library/), as the issue allows; PR body names it.Non-blocking: none.