Repository navigation
feat(docs): slug the last eight session notes pages, and redirect their old routes - #411
Closed
IanoNjuguna wants to merge 2 commits into
Closed
IanoNjuguna wants to merge 2 commits into
IanoNjuguna wants to merge 2 commits into
Conversation
Nine of the 23 session-notes pages had no frontmatter slug, so Docusaurus
derived their route from the folder path, which strips the numeric prefix
and keeps the literal "sessions" segment. That meant the archive served two
different URL shapes depending on whether a page happened to carry a slug.
Adds the slug in the shape every other session already uses,
/working-group/<quarter>/sessions/<NN-slug>/session-notes, to:
q1-2026 09-community-builder-story, 11-open-source-docs,
12-cardano-developer-pathway
q4-2025 01-kickoff-orientation, 02-dev-opportunities,
03-dev-environment-setup, 04-essential-links, 06-repo-walkthrough
Leaves q1-2026/10-wallet-integration/Session-1 alone: its Session-2 sibling
already occupies the clean route for that session, so giving Session-1 a slug
needs a route decision for both, which belongs with the folder normalisation
rather than here.
Two consequences handled in the same commit:
- website/docs/getting-started.md linked the kickoff notes twice by absolute
path; both now point at the slug route.
- scripts/generate-sessions.js derives hrefs from the slug when there is one,
so the regenerated src/data/sessions.json moves all eight and picks up
06-repo-walkthrough as a 22nd session.
The build's onBrokenLinks check is what proves this: it throws on any internal
link that no longer resolves, and it passes.
Refs IntersectMBO#375
The slugs above change eight public URLs. Each old route keeps working through @docusaurus/plugin-client-redirects, and the misspelled sesion-notes redirect from IntersectMBO#410 now points straight at the slug route instead of chaining through the folder route, so every inbound link is one hop. Verified in the generated output: all nine old paths emit a redirect stub with content="0; url=<slug route>", and all eight slug routes render. Refs IntersectMBO#375
This was referenced Nov 22, 2026
Contributor
Author
|
Collapsed into #414. This layer and the three around it (#411 slugs, #412 quarter fix, #413 folder case) are one mechanical unit: the folder lowercasing is unreadable without the slugs that go with it, and the generator change is only safe once every page carries a slug. Reviewing them apart cost four approvals for one change. Nothing is lost: #414 carries every commit from this branch, its diff is the union of the four, and its body states the scope of each. |
7 of 11 tasks
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.
Description
First layer of #375, stacked on #410. The session archive served two URL shapes depending on whether a page happened to carry a frontmatter
slug: 14 of the 23 session-notes pages do, and 9 do not. The nine fall back to the folder path, which strips the numeric prefix and keeps the literalsessionssegment:Any tool deriving archive links from the filesystem has to replicate that rule.
scripts/generate-sessions.js, which feeds the landing page carousel, does exactly that, and its first version got a fallback wrong.This adds the slug in the established shape to eight of the nine:
09-community-builder-story/docs/working-group/q1-2026/sessions/09-community-builder-story/session-notes/11-open-source-docs/docs/working-group/q1-2026/sessions/11-open-source-docs/session-notes/12-cardano-developer-pathway/docs/working-group/q1-2026/sessions/12-cardano-developer-pathway/session-notes/01-kickoff-orientation/docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes/02-dev-opportunities/docs/working-group/q4-2025/sessions/02-dev-opportunities/session-notes/03-dev-environment-setup/docs/working-group/q4-2025/sessions/03-dev-environment-setup/session-notes/04-essential-links/docs/working-group/q4-2025/sessions/04-essential-links/session-notes/06-repo-walkthrough/docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes/The ninth,
q1-2026/10-wallet-integration/Session-1, is deliberately left out. ItsSession-2sibling already holds the clean route for that session, so givingSession-1a slug means deciding the shape for both, which belongs with the folder normalisation rather than here.Two follow-on edits ride in the same commit:
getting-started.mdlinked the kickoff notes twice by absolute path, and the regeneratedsessions.jsonmoves all eight hrefs and picks up06-repo-walkthroughas a 22nd session.The second commit adds the eight redirects. The
sesion-notesredirect from #410 now points straight at the slug route instead of chaining through the folder route, so every inbound link is one hop.Refs #375. Stacked on #410, which fixes the
sesion-notesspelling in one of these folders; both touch the same page and the same redirect array.Type of Change
Testing
Checklist
Verification
Built twice in a worktree: once on #410's branch to capture the folder-derived routes, then again with the slugs to prove the move.
New routes, all rendering: the eight slug paths above, each with
session-notes/index.htmlpresent.Old routes, all still emitting a redirect stub with the right target:
The broken-link check is the load-bearing one: it validates links built from the JSON as well as ones written in markdown, so a stale href in
sessions.jsonfails the build rather than 404ing in production.Notes
q1-2025slugs that disagree with their folders, the case-only folder renames (14-CIP-68 NFT-Standard,Session-1,Session-2,Recording), the generator's fallback removal, and theCONTRIBUTING.mdconvention note. Once every page carries a slug, the generator can drop that fallback entirely, which is the point of the whole exercise.10-wallet-integrationas slug-less while missing06-repo-walkthrough. Measured against the tree: 23 session-notes pages, 14 with a slug, 9 without, and how10splits between its two sub-sessions. The issue body is being corrected separately.