Documentation
¶
Overview ¶
Command docsgenfiltercheck fails when the docs-gen paths filter in the CI workflow drifts from the files make gen writes.
CI skips the gen job for pull requests whose changed files all match the docs filter and none match the docs-gen filter. That is only safe while docs-gen matches every generated file that docs matches. The generated files are the arguments plus every tracked Markdown file the docs filter matches whose body opens with docgenenv.GeneratedContentBanner, which covers pages GEN_FILES doesn't list, such as the nested CLI and REST API reference pages. The check fails when a generated file matches docs but not docs-gen, and when a docs-gen pattern matches no tracked file, so stale entries don't accumulate.
Usage:
docsgenfiltercheck [-workflow path] generated-file ...