Merge pull request #4847 from sylvestre/boc

doc: show a warning when no tldr example
This commit is contained in:
Daniel Hofstetter 2023-05-09 08:07:53 +02:00 committed by GitHub
commit 49fd7c5697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,6 +216,10 @@ impl<'a, 'b> MDWriter<'a, 'b> {
} else if let Some(f) = get_zip_content(zip, &format!("pages/linux/{}.md", self.name)) {
f
} else {
println!(
"Warning: Could not find tldr examples for page '{}'",
self.name
);
return Ok(());
};