Repository navigation
(docs): tie each doc to the code it covers and require it in PRs that change that code (#1353) - #1364
Merged
Merged
Conversation
… change that code (#1353) Docs declare covers: globs in front matter; check-docs requires a PR that changes a covered file to change a doc that covers it, or to carry no-docs with a reason, and reports app files no doc covers.
…isible characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1353.
Each doc now says which code it describes, and a PR that changes that code must update one of those docs.
Change
.ai/contexts/*.mdand every user doc that describes code declarescovers:, a list of repository paths or globs, in YAML front matter: 77 docs in all.scripts/check-docs.jschecks the metadata. It validatescovers:(YAML, known keys, globs that match tracked files).no-docswith a non-emptyno docs: <reason>line. App files covered by no doc keep the old "any doc" rule.scripts/check-doc-refs.jsskips the front matter; line numbers in the body are unchanged..ai/agent-practices.mdgains "the docs touched describe what this PR changes".Docs
docs/changelog.md(docs rule)..ai/contexts/fast-check.md,.ai/contexts/build-release.md,.ai/agent-practices.md, and the front matter itself.Changelog
no-changelog: tooling users do not see.Tests
test/check-docs.test.jsis extended. The suites Codex ran give 85 passing tests.Not run: the CI docs job, which now installs locked dependencies with
--ignore-scriptsforjs-yaml.