Repository navigation
Leave the landing page out of GitHub's language statistics - #4
Merged
Merged
Conversation
web/ is the project's website; counting it made the repository look 38% JavaScript, CSS and HTML. Mark it as documentation so the language bar shows the engine (Go) and the trainer (Python), and mark the generated engine build and page data so their diffs are collapsed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JyK2tUFLPsLyWjy2h2erVw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
Adds a
.gitattributesso GitHub's language bar describes the engine and the trainer, not the landing page.All of the repository's JavaScript, CSS and HTML lives in
web/, which made the repo show as Go 47%, JavaScript 20%, Python 12%, CSS 11%, HTML 7%. Withweb/**marked as documentation, the bar should read about Go 77%, Python 20%, plus a little Shell and Makefile.The generated engine build (
web/engine/) and page data (web/data/) are also markedlinguist-generated, so their diffs are collapsed in PRs.GitHub recalculates the language stats in the background after merge, which can take a few minutes.
Test plan
git check-attrconfirmsweb/**files are documentation,web/engine/**andweb/data/**are generated, andcmd/,internal/andtraining/are unaffectedGenerated by Claude Code