Repository navigation
Generate the repository directory from the GitHub API - #6
Merged
Merged
Conversation
Replace the hand-edited index.html and the prebuilt Bootstrap 3 bundle with a generated site. Build - scripts/fetch.mjs queries every public KhronosGroup repository (GraphQL) plus 14 day traffic (REST) into data/repos.json. - scripts/lib/score.mjs applies exclusions, health tiers, grouping and rankings. Covered by node --test. - Vite renders index.html and src/templates/page.njk with Nunjucks and compiles Tailwind CSS v4. Light and dark follow prefers-color-scheme. - npm run build runs fetch and bundle. Without GH_TOKEN the build uses the committed data/sample.json. - .github/workflows/build.yml builds on push, daily and on dispatch, stores daily snapshots on the data branch, and deploys to Pages. Pull requests build from the sample and upload a preview artifact. Decisions - Private, archived, Registry (name match), fork and .github repositories are not listed. The headline figure counts all public repositories. - Stale repositories are listed (hide_stale: false). Health tiers only set the card marker. - Raw traffic numbers are not published and are left out of the sample fixture. Traffic only orders the Trending list. - The khronos.org mega navigation is replaced by a short navigation. - Unused logos, legacy font formats, jQuery, fancybox and Font Awesome are removed. Licensing - REUSE 3.3 compliant. Apache-2.0 OR MIT, copyright The Khronos Group, Inc. Logos are CC-BY-ND-4.0. Open Sans is Apache-2.0, Google Corporation. CONTRIBUTING.md keeps CC-BY-4.0. - Headers are in the files. REUSE.toml covers JSON, PNG, WOFF2 and CNAME only. Pages must be switched to the "GitHub Actions" source when this merges. The legacy branch build would publish the unrendered template.
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.
Replaces the hand-edited
index.htmland the prebuilt Bootstrap 3 bundle with a site generated from the GitHub API.What changes
npm run buildfetches the data and buildsdist/with Vite and Tailwind CSS. Light and dark themes follow the system setting..github/workflows/build.ymlbuilds on push tomain, daily, and on manual dispatch, then deploys to GitHub Pages. Pull requests build fromdata/sample.jsonand upload asite-previewartifact.README.mddocuments the commands, the listing rules, the configuration files and the deployment.Deployment notes
APP_CLIENT_ID,APP_PRIVATE_KEY). Without it the workflow uses its own token and the Trending list stays empty until star snapshots accumulate.