Repository navigation
Collapse CodeWiki's generated docs files in pull requests - #18
Merged
Merged
Conversation
dandydarshan
force-pushed
the
fix/collapse-generated-docs-files
branch
2 times, most recently
from
November 7, 2026 03:19
971a83d to
c2b701e
Compare
In a real PR, docs/metadata.json and docs/update_record.json showed 112 and 577 diff lines next to the pages. Generating now writes docs/.gitattributes (unless one exists) marking CodeWiki's non-page files linguist-generated: metadata, update record, module trees, search index, index.html and the helper script. GitHub collapses them as it does the graph under temp/; the .md pages stay visible for review. Entries are anchored to the docs folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd
dandydarshan
force-pushed
the
fix/collapse-generated-docs-files
branch
from
November 7, 2026 03:22
c2b701e to
12f06bc
Compare
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.
Summary
In a real test PR, GitHub collapsed the graph (
docs/temp/.gitattributesfrom #13) but still showeddocs/metadata.json(112 lines) anddocs/update_record.json(577 lines) in full, next to the pages reviewers actually want to read..mdpages stay visible.docs/.gitattributesis never overwritten.git difflocally is unchanged; only GitHub's PR view collapses these files.Evidence
docs/temp/showed "Some generated files are not rendered by default", so GitHub honourslinguist-generatedfrom a nested.gitattributes. This PR uses the same mechanism one folder up.test_generated_docs_files_collapse_in_pull_requests_but_pages_do_not, usinggit check-attr:Merge Danger
Door: two-way
Blast Radius: PR rendering
This only affects how GitHub renders these files and how they count in language statistics. Content and merges are unchanged.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd