diff --git a/tools/build-templated-pages/src/examples.rs b/tools/build-templated-pages/src/examples.rs index 8c3f41d48e..f973ab68a0 100644 --- a/tools/build-templated-pages/src/examples.rs +++ b/tools/build-templated-pages/src/examples.rs @@ -58,6 +58,9 @@ fn parse_examples(panic_on_missing: bool) -> Vec { if panic_on_missing && metadatas.get(&technical_name).is_none() { panic!("Missing metadata for example {technical_name}"); } + if panic_on_missing && val.get("doc-scrape-examples").is_none() { + panic!("Example {technical_name} is missing doc-scrape-examples"); + } if metadatas .get(&technical_name)