pub fn capture_examples(rel_path: &str, doc: &Doc) -> Vec<(String, String)>Expand description
Example-file contents for the capture blocks of one markdown doc, in capture order: (example_name, content).
A feature=NAME tag gates the real fn main behind that feature, with a
no-op fallback when it’s off — an example file (unlike a #[test]) can’t
simply be omitted, so this is what keeps cargo build --examples (and
clippy/test over --all-targets) green under any feature combination.
docs capture must be run with that same feature enabled to record real
output; otherwise it captures the empty fallback.