docs: gate write-good.Passive on CI
Both blockers are done — #4548 (353 hits in hand-written docs) and #4549 (46 hits in generated CLI reference docs, hivectl/swarmctl/hive-forge's own clap help text) — and the previous commit suppresses the reviewed false-positive remainder. vale --minAlertLevel=error docs now returns 0 errors, matching CI's existing prose-lint-errors job. Closes #4546.
This commit is contained in:
parent
04e27c4fb6
commit
2346bef3b1
3 changed files with 11 additions and 9 deletions
|
|
@ -90,7 +90,12 @@ fn main() -> Result<()> {
|
|||
query::run(&cfg, &logsql, limit, format, &mut stdout.lock())
|
||||
}
|
||||
Verb::MarkdownDocs => {
|
||||
print!("{}", clap_markdown::help_markdown::<Cli>());
|
||||
// `show_footer(false)`: drop clap-markdown's own fixed
|
||||
// "generated automatically by..." footer, same as
|
||||
// hivectl/swarmctl/hive-forge — it's not our prose, and
|
||||
// write-good.Passive has nothing to check it against.
|
||||
let options = clap_markdown::MarkdownOptions::new().show_footer(false);
|
||||
print!("{}", clap_markdown::help_markdown_custom::<Cli>(&options));
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue