Skip to content

feat(docs): slug the last eight session notes pages, and redirect their old routes - #411

Closed
IanoNjuguna wants to merge 2 commits into
IntersectMBO:fix/session-notes-typofrom
IanoNjuguna:feat/session-slugs
Closed

IanoNjuguna wants to merge 2 commits into
IntersectMBO:fix/session-notes-typofrom
IanoNjuguna:feat/session-slugs

Conversation

@IanoNjuguna

@IanoNjuguna IanoNjuguna commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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 literal sessions segment:

with slug     /docs/working-group/q2-2026/sessions/15-dapp-architecture-demo/session-notes/
without slug  /docs/working-group/sessions/q1-2026/open-source-docs/session-notes/

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:

Quarter Folder New route
q1-2026 09-community-builder-story /docs/working-group/q1-2026/sessions/09-community-builder-story/session-notes/
q1-2026 11-open-source-docs /docs/working-group/q1-2026/sessions/11-open-source-docs/session-notes/
q1-2026 12-cardano-developer-pathway /docs/working-group/q1-2026/sessions/12-cardano-developer-pathway/session-notes/
q4-2025 01-kickoff-orientation /docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes/
q4-2025 02-dev-opportunities /docs/working-group/q4-2025/sessions/02-dev-opportunities/session-notes/
q4-2025 03-dev-environment-setup /docs/working-group/q4-2025/sessions/03-dev-environment-setup/session-notes/
q4-2025 04-essential-links /docs/working-group/q4-2025/sessions/04-essential-links/session-notes/
q4-2025 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. Its Session-2 sibling already holds the clean route for that session, so giving Session-1 a 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.md linked the kickoff notes twice by absolute path, and the regenerated sessions.json moves all eight hrefs and picks up 06-repo-walkthrough as a 22nd session.

The second commit adds the eight redirects. The sesion-notes redirect 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-notes spelling in one of these folders; both touch the same page and the same redirect array.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Testing

  • I have tested these changes locally
  • I have checked for broken links
  • Code examples have been tested

Checklist

  • My code follows the style guidelines
  • I have performed a self-review
  • I have made corresponding changes to documentation
  • My changes generate no new warnings

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.

tsc --noEmit -p tsconfig.json     clean
docusaurus build                  SUCCESS with onBrokenLinks: throw

New routes, all rendering: the eight slug paths above, each with session-notes/index.html present.

Old routes, all still emitting a redirect stub with the right target:

sessions/q1-2026/community-builder-story          -> /docs/working-group/q1-2026/sessions/09-community-builder-story/session-notes/
sessions/q1-2026/open-source-docs                 -> /docs/working-group/q1-2026/sessions/11-open-source-docs/session-notes/
sessions/q1-2026/cardano-developer-pathway        -> /docs/working-group/q1-2026/sessions/12-cardano-developer-pathway/session-notes/
sessions/q4-2025/kickoff-orientation              -> /docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes/
sessions/q4-2025/dev-opportunities                -> /docs/working-group/q4-2025/sessions/02-dev-opportunities/session-notes/
sessions/q4-2025/dev-environment-setup            -> /docs/working-group/q4-2025/sessions/03-dev-environment-setup/session-notes/
sessions/q4-2025/essential-links                  -> /docs/working-group/q4-2025/sessions/04-essential-links/session-notes/
sessions/q4-2025/repo-walkthrough                 -> /docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes/
sessions/q4-2025/repo-walkthrough/sesion-notes    -> /docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes/

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.json fails the build rather than 404ing in production.

Notes

  • Still open on Normalise session archive routes: mixed slug and folder-path URLs, duplicate session 14 #375 and not in this layer: the duplicate session 14 (Decide the duplicate session 14, the last open bullet of #375 #416), the two q1-2025 slugs 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 the CONTRIBUTING.md convention note. Once every page carries a slug, the generator can drop that fallback entirely, which is the point of the whole exercise.
  • The issue's original inventory counted 21 sessions with 13 slugs and listed 10-wallet-integration as slug-less while missing 06-repo-walkthrough. Measured against the tree: 23 session-notes pages, 14 with a slug, 9 without, and how 10 splits between its two sub-sessions. The issue body is being corrected separately.

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
@IanoNjuguna

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant