Skip to content
Sarj Repo Standards

generated-sources

Regenerate docs from their declared source.

Examples

Regenerate documentation from its source

Before — rejected · warning
{"changed":["docs/api.md"]}
After — preferred
{"changed":["docs/api.md","openapi.json"]}

Enable this rule

Add the stable ID to enabled_rules in your tracked .repo-standards/repository.toml:

enabled_rules = ["repository/documentation/generated-sources"]

This selects only this rule. To retain the defaults, also include repository/artifacts/untyped-javascript and repository/artifacts/bespoke-iac-verifiers, along with any existing IDs. Omitted or empty selections use the defaults. Setup and staged checks