Expand description
Sync fenced code blocks in website markdown from anchored regions of source files.
The published docs thus contain exactly the tested example code.
Functionsยง
- extract
- Extract the lines between
// docs:begin <anchor>and// docs:end <anchor>insource. - sync_
markdown - Rewrite every
<!-- snippet: <relpath>#<anchor> --> ... <!-- /snippet -->block inmarkdownwith the current code fromcrates_dir/<relpath>.