{"category_id":"repository","default_severity":"warning","description":"Each documentation.generated entry names a tracked output path (file or directory), the tracked source path that its command regenerates it from, and the command. Warn when the source or output is not tracked, or when the Git comparison changes the output while nothing under the source changes. Changes under any declared output do not count as source changes. Also warn for each tracked Markdown file that Git attributes mark linguist-generated outside every declared output.","examples":[{"after":"{\"changed\":[\"docs/api.md\",\"openapi.json\"]}","before":"{\"changed\":[\"docs/api.md\"]}","expected_severity":"warning","id":"sarj-documentation-generated-sources","language":"json","title":"Regenerate documentation from its source"}],"fix":"Change the declared source and rerun the declared command, committing both. Update or remove the entry when the generator moves or the page becomes hand-maintained. Declare linguist-generated Markdown or drop the attribute. No autofix.","kind":"rule","references":[],"rule_id":"repository/documentation/generated-sources","rule_version":2,"slug":"generated-sources","source":{"path":"src/repo_standards/policy_sarj/policy.py","symbol":"repository/documentation/generated-sources"},"title":"Change generated documentation only through its declared generator","topic_id":"documentation","why":"A hand edit to generated documentation drifts from its owner and is lost at the next regeneration; a declaration whose generator is gone leaves readers trusting a page nothing maintains."}
