mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Reviewer finding on #3448: entries in `docs/contract-api.md` ended mid-sentence (`size_ok` at "a `min` that is", `label_decimals`, and the `WindowSpec`, `pressed_part` and `icon_ink_on` summaries). The generator lists the first line of each doc comment only, so each of those doc comments now opens with a complete sentence and keeps the rest below it: `size_ok` says on its second line that a `min` that is not a number counts as one unit, `label_decimals` keeps its cases in the paragraph under the summary, and `WindowSpec`'s first line carries the whole "what it is for, who draws its frame, where it stands and whether it has a taskbar entry" sentence. Regenerated with the branch's own generator; a second run leaves the file byte for byte as it was. Every entry this branch adds or changes now ends in a full stop. The rest of the file keeps the entries the base leaves truncated (1273 of 4820 entry lines still end mid-sentence, none of them touched here): sweeping those, or teaching the generator to join a doc's first sentence, is a separate change. The regeneration also picks up two entries the branch's merges added without regenerating (`Action::restore`, and `floated`'s doc).