Repository navigation
Session index generator, repo metadata and types (stack 1 of 6, no visual change) - #380
Merged
Merged
Conversation
Three things that no page renders yet, shipped first so the landing page can import them.
`scripts/generate-sessions.js` reads the archive's frontmatter and writes
`src/data/sessions.json`. It derives each href from the file's own path, accounting for
Docusaurus stripping number prefixes and for `readme`/`index` folders, because the archive is
inconsistent: most sessions carry a `slug:` that includes their number, eight have none and are
served at the number-stripped path, and two folders are both numbered 14. 21 sessions against
26 built routes, none missing.
`scripts/fetch-github-data.js` also calls `/repos/{owner}/{repo}` and writes a `repo` block,
with the same keep-on-failure rule as the rest of that script. `githubData.json` gains that
block so a local build has stars and forks to render.
`@types/react-dom` arrives for the components that follow.
This was referenced Nov 7, 2026
Closed
This was referenced Nov 7, 2026
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.
What this does
Three files that no page renders yet, shipped first so the landing page above it can import them. Merging this changes nothing a visitor sees.
scripts/generate-sessions.jsreads the archive's frontmatter and writessrc/data/sessions.json. It derives each href from the file's own path, accounting for Docusaurus stripping number prefixes and forreadme/indexfolders, because the archive is inconsistent: most sessions carry aslug:that includes their number, eight have none and are served at the number-stripped path, and two folders are both numbered 14. Checked against the built output: 21 sessions, 26session-notesroutes, none missing.scripts/fetch-github-data.jsalso calls/repos/{owner}/{repo}and writes arepoblock intogithubData.json, with the same keep-on-failure rule as the rest of that script. The block is seeded once so a local build has stars and forks to render; the prebuild refreshes it.@types/react-domarrives for the components that follow.Why this is a separate PR
It is the bottom of a five-PR stack, and it is the only layer that changes nothing a visitor sees:
sessions.json, repo metadata, typesVerified
npx tsc --noEmitcleannpx docusaurus buildsucceedssessions.json