From 2efeb63da3f40a69759bcae0a5a6df8a8fa4ae9e Mon Sep 17 00:00:00 2001 From: IanoNjuguna Date: Sun, 22 Nov 2026 13:01:50 +0300 Subject: [PATCH 1/5] feat(docs): give the last eight session notes pages a slug 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//sessions//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 #375 --- website/docs/getting-started.md | 4 ++-- .../session-notes/readme.md | 1 + .../session-notes/readme.md | 1 + .../session-notes/readme.mdx | 1 + .../session-notes/readme.md | 1 + .../session-notes/readme.md | 1 + .../session-notes/readme.md | 1 + .../session-notes/readme.md | 4 ++++ .../session-notes/readme.md | 4 ++++ website/src/data/sessions.json | 24 ++++++++++++------- 10 files changed, 31 insertions(+), 11 deletions(-) diff --git a/website/docs/getting-started.md b/website/docs/getting-started.md index da725ebf..13f2e85e 100644 --- a/website/docs/getting-started.md +++ b/website/docs/getting-started.md @@ -16,7 +16,7 @@ This repository serves as the comprehensive guide for developers and contributor **[Complete Intersect Membership Guide →](./intersect-membership-guide.md)** ### 2. **New to Cardano?** -Start with our comprehensive ecosystem overview: [**Directive: Kickoff & Orientation**](/docs/working-group/sessions/q4-2025/01-kickoff-orientation/session-notes/readme.md) +Start with our comprehensive ecosystem overview: [**Directive: Kickoff & Orientation**](/docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes/) This guide provides a complete map of the Cardano ecosystem, including core repositories, documentation resources, developer tools, and community support channels. @@ -123,7 +123,7 @@ By the end of Q1 2026, we aim to: **Step 1**: [Join Intersect - Get Your Voice in Cardano](./intersect-membership-guide.md) -**Step 2**: [Directive: Kickoff & Orientation](/docs/working-group/sessions/q4-2025/01-kickoff-orientation/session-notes/readme.md) +**Step 2**: [Directive: Kickoff & Orientation](/docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes/) **Step 3**: [Beginner Guides](/docs/how-to-guide/beginner/) diff --git a/website/docs/working-group/sessions/q1-2026/09-community-builder-story/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/09-community-builder-story/session-notes/readme.md index ffaf18fc..f6598d3f 100644 --- a/website/docs/working-group/sessions/q1-2026/09-community-builder-story/session-notes/readme.md +++ b/website/docs/working-group/sessions/q1-2026/09-community-builder-story/session-notes/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q1-2026/sessions/09-community-builder-story/session-notes title: Session 09 Overview sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q1-2026/11-open-source-docs/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/11-open-source-docs/session-notes/readme.md index 0788e211..cf6c09f6 100644 --- a/website/docs/working-group/sessions/q1-2026/11-open-source-docs/session-notes/readme.md +++ b/website/docs/working-group/sessions/q1-2026/11-open-source-docs/session-notes/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q1-2026/sessions/11-open-source-docs/session-notes title: "Open Source Documentation" sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q1-2026/12-cardano-developer-pathway/session-notes/readme.mdx b/website/docs/working-group/sessions/q1-2026/12-cardano-developer-pathway/session-notes/readme.mdx index 63260f0b..3251c6f0 100644 --- a/website/docs/working-group/sessions/q1-2026/12-cardano-developer-pathway/session-notes/readme.mdx +++ b/website/docs/working-group/sessions/q1-2026/12-cardano-developer-pathway/session-notes/readme.mdx @@ -1,4 +1,5 @@ --- +slug: /working-group/q1-2026/sessions/12-cardano-developer-pathway/session-notes title: "Cardano Developer Pathway" sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q4-2025/01-kickoff-orientation/session-notes/readme.md b/website/docs/working-group/sessions/q4-2025/01-kickoff-orientation/session-notes/readme.md index 401c9b36..cc09571b 100644 --- a/website/docs/working-group/sessions/q4-2025/01-kickoff-orientation/session-notes/readme.md +++ b/website/docs/working-group/sessions/q4-2025/01-kickoff-orientation/session-notes/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q4-2025/sessions/01-kickoff-orientation/session-notes title: Session 01 Kickoff & Orientation sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q4-2025/02-dev-opportunities/session-notes/readme.md b/website/docs/working-group/sessions/q4-2025/02-dev-opportunities/session-notes/readme.md index e5cca160..ed2f0ac4 100644 --- a/website/docs/working-group/sessions/q4-2025/02-dev-opportunities/session-notes/readme.md +++ b/website/docs/working-group/sessions/q4-2025/02-dev-opportunities/session-notes/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q4-2025/sessions/02-dev-opportunities/session-notes title: Session 02 Overview sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q4-2025/03-dev-environment-setup/session-notes/readme.md b/website/docs/working-group/sessions/q4-2025/03-dev-environment-setup/session-notes/readme.md index f5fb185a..a02f27c0 100644 --- a/website/docs/working-group/sessions/q4-2025/03-dev-environment-setup/session-notes/readme.md +++ b/website/docs/working-group/sessions/q4-2025/03-dev-environment-setup/session-notes/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q4-2025/sessions/03-dev-environment-setup/session-notes title: Session 03 Overview sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q4-2025/04-essential-links/session-notes/readme.md b/website/docs/working-group/sessions/q4-2025/04-essential-links/session-notes/readme.md index 98d4ab87..e2e425a9 100644 --- a/website/docs/working-group/sessions/q4-2025/04-essential-links/session-notes/readme.md +++ b/website/docs/working-group/sessions/q4-2025/04-essential-links/session-notes/readme.md @@ -1,3 +1,7 @@ +--- +slug: /working-group/q4-2025/sessions/04-essential-links/session-notes +--- + # Essential Links in Cardano ## Introduction diff --git a/website/docs/working-group/sessions/q4-2025/06-repo-walkthrough/session-notes/readme.md b/website/docs/working-group/sessions/q4-2025/06-repo-walkthrough/session-notes/readme.md index f6dd61c8..6ff421de 100644 --- a/website/docs/working-group/sessions/q4-2025/06-repo-walkthrough/session-notes/readme.md +++ b/website/docs/working-group/sessions/q4-2025/06-repo-walkthrough/session-notes/readme.md @@ -1,3 +1,7 @@ +--- +slug: /working-group/q4-2025/sessions/06-repo-walkthrough/session-notes +--- + # Repository Walkthrough & Demo ## Introduction diff --git a/website/src/data/sessions.json b/website/src/data/sessions.json index 127cd99a..52393449 100644 --- a/website/src/data/sessions.json +++ b/website/src/data/sessions.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-11-06", - "total": 21, + "generatedAt": "2026-11-22", + "total": 22, "sessions": [ { "number": "22", @@ -72,13 +72,13 @@ "number": "12", "title": "Cardano Developer Pathway", "quarter": "Q1 2026", - "href": "/docs/working-group/sessions/q1-2026/cardano-developer-pathway/session-notes/" + "href": "/docs/working-group/q1-2026/sessions/12-cardano-developer-pathway/session-notes" }, { "number": "11", "title": "Open Source Documentation", "quarter": "Q1 2026", - "href": "/docs/working-group/sessions/q1-2026/open-source-docs/session-notes/" + "href": "/docs/working-group/q1-2026/sessions/11-open-source-docs/session-notes" }, { "number": "10", @@ -90,7 +90,7 @@ "number": "9", "title": "Community Builder Story - Konma & HaskLedger", "quarter": "Q1 2026", - "href": "/docs/working-group/sessions/q1-2026/community-builder-story/session-notes/" + "href": "/docs/working-group/q1-2026/sessions/09-community-builder-story/session-notes" }, { "number": "8", @@ -104,29 +104,35 @@ "quarter": "Q1 2026", "href": "/docs/working-group/q1-2025/sessions/07-contributing-intersect/session-notes" }, + { + "number": "6", + "title": "Repository Walkthrough & Demo", + "quarter": "Q4 2025", + "href": "/docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes" + }, { "number": "4", "title": "Essential Links in Cardano", "quarter": "Q4 2025", - "href": "/docs/working-group/sessions/q4-2025/essential-links/session-notes/" + "href": "/docs/working-group/q4-2025/sessions/04-essential-links/session-notes" }, { "number": "3", "title": "Cardano Dev Environment", "quarter": "Q4 2025", - "href": "/docs/working-group/sessions/q4-2025/dev-environment-setup/session-notes/" + "href": "/docs/working-group/q4-2025/sessions/03-dev-environment-setup/session-notes" }, { "number": "2", "title": "Opportunities in Cardano (2025)", "quarter": "Q4 2025", - "href": "/docs/working-group/sessions/q4-2025/dev-opportunities/session-notes/" + "href": "/docs/working-group/q4-2025/sessions/02-dev-opportunities/session-notes" }, { "number": "1", "title": "Kickoff & Orientation", "quarter": "Q4 2025", - "href": "/docs/working-group/sessions/q4-2025/kickoff-orientation/session-notes/" + "href": "/docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes" } ] } From e5e85e790035916effc5aa5944756074b5bcf3d3 Mon Sep 17 00:00:00 2001 From: IanoNjuguna Date: Sun, 22 Nov 2026 13:01:50 +0300 Subject: [PATCH 2/5] fix(website): redirect the eight folder-derived session routes The slugs above change eight public URLs. Each old route keeps working through @docusaurus/plugin-client-redirects, and the misspelled 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. Verified in the generated output: all nine old paths emit a redirect stub with content="0; url=", and all eight slug routes render. Refs #375 --- website/docusaurus.config.ts | 41 ++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index be7fa583..d377cbd9 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -100,11 +100,48 @@ const config: Config = { from: "/docs/tutorials/readme", to: "/docs/tutorials/local-cardano-payment-detector/", }, + { + // These eight pages carried no slug, so their URLs came from the folder + // path (numeric prefixes stripped, the literal "sessions" kept). They now + // carry a slug in the shape every other session uses, and these keep the + // old routes alive. + from: "/docs/working-group/sessions/q1-2026/community-builder-story/session-notes/", + to: "/docs/working-group/q1-2026/sessions/09-community-builder-story/session-notes/", + }, + { + from: "/docs/working-group/sessions/q1-2026/open-source-docs/session-notes/", + to: "/docs/working-group/q1-2026/sessions/11-open-source-docs/session-notes/", + }, + { + from: "/docs/working-group/sessions/q1-2026/cardano-developer-pathway/session-notes/", + to: "/docs/working-group/q1-2026/sessions/12-cardano-developer-pathway/session-notes/", + }, + { + from: "/docs/working-group/sessions/q4-2025/kickoff-orientation/session-notes/", + to: "/docs/working-group/q4-2025/sessions/01-kickoff-orientation/session-notes/", + }, + { + from: "/docs/working-group/sessions/q4-2025/dev-opportunities/session-notes/", + to: "/docs/working-group/q4-2025/sessions/02-dev-opportunities/session-notes/", + }, + { + from: "/docs/working-group/sessions/q4-2025/dev-environment-setup/session-notes/", + to: "/docs/working-group/q4-2025/sessions/03-dev-environment-setup/session-notes/", + }, + { + from: "/docs/working-group/sessions/q4-2025/essential-links/session-notes/", + to: "/docs/working-group/q4-2025/sessions/04-essential-links/session-notes/", + }, + { + from: "/docs/working-group/sessions/q4-2025/repo-walkthrough/session-notes/", + to: "/docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes/", + }, { // The folder was misspelled sesion-notes until 2026-11; the route comes - // from the directory name, so the old URL is kept alive here. + // from the directory name, so the old URL is kept alive here. It points + // at the slug route directly, so this stays one hop. from: "/docs/working-group/sessions/q4-2025/repo-walkthrough/sesion-notes/", - to: "/docs/working-group/sessions/q4-2025/repo-walkthrough/session-notes/", + to: "/docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes/", }, ], createRedirects(existingPath: string) { From ac838ce86f0caf8a7a141e52afe4eabe89c75c7e Mon Sep 17 00:00:00 2001 From: IanoNjuguna Date: Sun, 22 Nov 2026 13:15:22 +0300 Subject: [PATCH 3/5] fix(docs): make the q1-2026 session slugs say q1-2026 Six pages under q1-2026/07-contributing-intersect and q1-2026/08-open-clinic-1 carried slugs under /working-group/q1-2025/, so their URLs claimed a quarter three of their own folders never lived in. Nothing was broken for a reader, but it is the kind of thing that makes a route map lie: 07 and 08 sit inside 2026 and their neighbours' slugs say 2026. Rewrites the six slugs to match the folder, and adds the six old routes to the redirect array so inbound links and search results keep working. Regenerated src/data/sessions.json: the generator reads the slug, so two carousel hrefs move off q1-2025 with no edit to the script. Verified in the build output: all six q1-2025 paths emit a redirect stub pointing at the q1-2026 route, all three spot-checked new routes render, and sessions.json no longer contains the string q1-2025. Refs #375 --- .../recordings/readme.md | 2 +- .../session-notes/readme.md | 2 +- .../session-1/recordings/readme.md | 2 +- .../session-1/session-notes/readme.md | 2 +- .../session-1/session-resources/readme.md | 2 +- .../session-2/recordings/readme.md | 2 +- website/docusaurus.config.ts | 26 +++++++++++++++++++ website/src/data/sessions.json | 4 +-- 8 files changed, 34 insertions(+), 8 deletions(-) diff --git a/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/recordings/readme.md b/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/recordings/readme.md index 52c2c4f8..f5d01ee5 100644 --- a/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/recordings/readme.md +++ b/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/recordings/readme.md @@ -1,7 +1,7 @@ --- title: "Session 07: Contributing to Intersect - Recordings" sidebar_label: Recordings -slug: /working-group/q1-2025/sessions/07-contributing-intersect/recordings +slug: /working-group/q1-2026/sessions/07-contributing-intersect/recordings --- # Session 07: Contributing to Intersect - Recordings diff --git a/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/session-notes/readme.md index fc73b760..2b1d886b 100644 --- a/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/session-notes/readme.md +++ b/website/docs/working-group/sessions/q1-2026/07-contributing-intersect/session-notes/readme.md @@ -2,7 +2,7 @@ title: "Session 07: Contributing to Intersect" sidebar_label: Session Notes sidebar_position: 1 -slug: /working-group/q1-2025/sessions/07-contributing-intersect/session-notes +slug: /working-group/q1-2026/sessions/07-contributing-intersect/session-notes --- # Contributing to Intersect: A Call to Action diff --git a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/recordings/readme.md b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/recordings/readme.md index d0f58387..97d78b6e 100644 --- a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/recordings/readme.md +++ b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/recordings/readme.md @@ -1,7 +1,7 @@ --- title: "Session 08: Open Clinic #1 - Recordings" sidebar_label: Recordings -slug: /working-group/q1-2025/sessions/08-open-clinic-1/recordings +slug: /working-group/q1-2026/sessions/08-open-clinic-1/recordings --- # Session 08: Open Clinic #1 - Recordings diff --git a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-notes/readme.md index bad2a346..1f3feeb3 100644 --- a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-notes/readme.md +++ b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-notes/readme.md @@ -2,7 +2,7 @@ title: "Session 08: Native Tokens Guide" sidebar_label: Session Notes sidebar_position: 1 -slug: /working-group/q1-2025/sessions/08-open-clinic-1/session-notes +slug: /working-group/q1-2026/sessions/08-open-clinic-1/session-notes --- # Cardano Native Tokens diff --git a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-resources/readme.md b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-resources/readme.md index 2bc9fbb4..3bc0c12b 100644 --- a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-resources/readme.md +++ b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-1/session-resources/readme.md @@ -1,7 +1,7 @@ --- title: "Session 08: Native Tokens Resources" sidebar_label: Session Resources -slug: /working-group/q1-2025/sessions/08-open-clinic-1/session-resources +slug: /working-group/q1-2026/sessions/08-open-clinic-1/session-resources --- # Native Tokens Resources diff --git a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-2/recordings/readme.md b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-2/recordings/readme.md index 07fb9619..fa535d81 100644 --- a/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-2/recordings/readme.md +++ b/website/docs/working-group/sessions/q1-2026/08-open-clinic-1/session-2/recordings/readme.md @@ -1,7 +1,7 @@ --- title: "Session 08: Open Clinic #1 - Recordings 2" sidebar_label: Recordings -slug: /working-group/q1-2025/sessions/08-open-clinic-1/session-2/recordings +slug: /working-group/q1-2026/sessions/08-open-clinic-1/session-2/recordings --- # Session 08: Open Clinic #1 - Recordings diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index d377cbd9..c7601dec 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -136,6 +136,32 @@ const config: Config = { from: "/docs/working-group/sessions/q4-2025/repo-walkthrough/session-notes/", to: "/docs/working-group/q4-2025/sessions/06-repo-walkthrough/session-notes/", }, + { + // These six pages carried slugs that said q1-2025 while their folders say + // q1-2026. The slugs now match the folder; the old routes stay alive. + from: "/docs/working-group/q1-2025/sessions/07-contributing-intersect/recordings/", + to: "/docs/working-group/q1-2026/sessions/07-contributing-intersect/recordings/", + }, + { + from: "/docs/working-group/q1-2025/sessions/07-contributing-intersect/session-notes/", + to: "/docs/working-group/q1-2026/sessions/07-contributing-intersect/session-notes/", + }, + { + from: "/docs/working-group/q1-2025/sessions/08-open-clinic-1/recordings/", + to: "/docs/working-group/q1-2026/sessions/08-open-clinic-1/recordings/", + }, + { + from: "/docs/working-group/q1-2025/sessions/08-open-clinic-1/session-notes/", + to: "/docs/working-group/q1-2026/sessions/08-open-clinic-1/session-notes/", + }, + { + from: "/docs/working-group/q1-2025/sessions/08-open-clinic-1/session-resources/", + to: "/docs/working-group/q1-2026/sessions/08-open-clinic-1/session-resources/", + }, + { + from: "/docs/working-group/q1-2025/sessions/08-open-clinic-1/session-2/recordings/", + to: "/docs/working-group/q1-2026/sessions/08-open-clinic-1/session-2/recordings/", + }, { // The folder was misspelled sesion-notes until 2026-11; the route comes // from the directory name, so the old URL is kept alive here. It points diff --git a/website/src/data/sessions.json b/website/src/data/sessions.json index 52393449..53694433 100644 --- a/website/src/data/sessions.json +++ b/website/src/data/sessions.json @@ -96,13 +96,13 @@ "number": "8", "title": "Native Tokens Guide", "quarter": "Q1 2026", - "href": "/docs/working-group/q1-2025/sessions/08-open-clinic-1/session-notes" + "href": "/docs/working-group/q1-2026/sessions/08-open-clinic-1/session-notes" }, { "number": "7", "title": "Contributing to Intersect", "quarter": "Q1 2026", - "href": "/docs/working-group/q1-2025/sessions/07-contributing-intersect/session-notes" + "href": "/docs/working-group/q1-2026/sessions/07-contributing-intersect/session-notes" }, { "number": "6", From bb740ab02da040aa89e8db35b33ba16e67865a79 Mon Sep 17 00:00:00 2001 From: IanoNjuguna Date: Sun, 22 Nov 2026 13:22:06 +0300 Subject: [PATCH 4/5] fix(docs): lowercase the four session folders that broke the convention Four folders under q1-2026 were the only ones in the archive with capitals: "14-CIP-68 NFT-Standard" (also the only one with a space), its sibling "Recording", "13-smart-contracts-languages/Recording", and the two wallet integration parts, "Session-1" and "Session-2". Every other session uses lowercase-hyphenated names. Two of the renames change no URL: 14-cip-68-nft-standard's pages and the two Recording pages all carry slugs that already spell them lowercase. The wallet integration pair does change URLs, because Session-1's pages had no slug and were served from the folder path, and Session-2's recordings slug carried a capital S. Fixes: - session-1/session-notes and session-1/recordings gain slugs under /working-group/q1-2026/sessions/10-wallet-integration/session-1/... - session-2/recordings loses the capital in its slug - three redirects keep the old routes alive Session-2 keeps the clean route for that session rather than handing it to Session-1 for symmetry with 08-open-clinic-1. Moving it would break a live URL to fix an inconsistency nobody sees, and the obvious alternative, giving Session-1 the clean route, would need a redirect at a path a real page then occupies. After this, no session-notes page in the archive is slug-less, which is what the generator change in the next layer depends on. Verified in the build output: six routes render, three old routes emit redirect stubs with the right targets, and grep -L '^slug:' over every session-notes page returns nothing. Refs #375 --- .../{Session-1 => session-1}/_category_.json | 0 .../{Session-1 => session-1}/recordings/readme.md | 1 + .../session-notes/readme.md | 1 + .../{Session-2 => session-2}/_category_.json | 0 .../{Session-2 => session-2}/recordings/readme.md | 2 +- .../session-notes/readme.md | 0 .../session-resources/readme.md | 0 .../{Recording => recordings}/readme.md | 0 .../recordings}/readme.md | 0 .../session-notes/readme.md | 0 website/docusaurus.config.ts | 15 +++++++++++++++ website/src/data/sessions.json | 2 +- 12 files changed, 19 insertions(+), 2 deletions(-) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-1 => session-1}/_category_.json (100%) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-1 => session-1}/recordings/readme.md (86%) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-1 => session-1}/session-notes/readme.md (97%) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-2 => session-2}/_category_.json (100%) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-2 => session-2}/recordings/readme.md (89%) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-2 => session-2}/session-notes/readme.md (100%) rename website/docs/working-group/sessions/q1-2026/10-wallet-integration/{Session-2 => session-2}/session-resources/readme.md (100%) rename website/docs/working-group/sessions/q1-2026/13-smart-contracts-languages/{Recording => recordings}/readme.md (100%) rename website/docs/working-group/sessions/q1-2026/{14-CIP-68 NFT-Standard/Recording => 14-cip-68-nft-standard/recordings}/readme.md (100%) rename website/docs/working-group/sessions/q1-2026/{14-CIP-68 NFT-Standard => 14-cip-68-nft-standard}/session-notes/readme.md (100%) diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/_category_.json b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/_category_.json similarity index 100% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/_category_.json rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/_category_.json diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/recordings/readme.md b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/recordings/readme.md similarity index 86% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/recordings/readme.md rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/recordings/readme.md index 8ee1e293..959fad9b 100644 --- a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/recordings/readme.md +++ b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/recordings/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q1-2026/sessions/10-wallet-integration/session-1/recordings title: Session 10 Recording sidebar_label: Recordings --- diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/session-notes/readme.md similarity index 97% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/session-notes/readme.md rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/session-notes/readme.md index 537ff16a..3c587ab0 100644 --- a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-1/session-notes/readme.md +++ b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-1/session-notes/readme.md @@ -1,4 +1,5 @@ --- +slug: /working-group/q1-2026/sessions/10-wallet-integration/session-1/session-notes title: Session 10 Overview sidebar_label: Session Notes sidebar_position: 1 diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/_category_.json b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/_category_.json similarity index 100% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/_category_.json rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/_category_.json diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/recordings/readme.md b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/recordings/readme.md similarity index 89% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/recordings/readme.md rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/recordings/readme.md index 19073b9d..8d5498e2 100644 --- a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/recordings/readme.md +++ b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/recordings/readme.md @@ -1,7 +1,7 @@ --- title: "Session 2 - Recordings" sidebar_label: Recordings -slug: /working-group/q1-2026/sessions/10-wallet-integration/Session-2/recordings +slug: /working-group/q1-2026/sessions/10-wallet-integration/session-2/recordings --- # Session 2 - Recordings diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/session-notes/readme.md similarity index 100% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/session-notes/readme.md rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/session-notes/readme.md diff --git a/website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/session-resources/readme.md b/website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/session-resources/readme.md similarity index 100% rename from website/docs/working-group/sessions/q1-2026/10-wallet-integration/Session-2/session-resources/readme.md rename to website/docs/working-group/sessions/q1-2026/10-wallet-integration/session-2/session-resources/readme.md diff --git a/website/docs/working-group/sessions/q1-2026/13-smart-contracts-languages/Recording/readme.md b/website/docs/working-group/sessions/q1-2026/13-smart-contracts-languages/recordings/readme.md similarity index 100% rename from website/docs/working-group/sessions/q1-2026/13-smart-contracts-languages/Recording/readme.md rename to website/docs/working-group/sessions/q1-2026/13-smart-contracts-languages/recordings/readme.md diff --git a/website/docs/working-group/sessions/q1-2026/14-CIP-68 NFT-Standard/Recording/readme.md b/website/docs/working-group/sessions/q1-2026/14-cip-68-nft-standard/recordings/readme.md similarity index 100% rename from website/docs/working-group/sessions/q1-2026/14-CIP-68 NFT-Standard/Recording/readme.md rename to website/docs/working-group/sessions/q1-2026/14-cip-68-nft-standard/recordings/readme.md diff --git a/website/docs/working-group/sessions/q1-2026/14-CIP-68 NFT-Standard/session-notes/readme.md b/website/docs/working-group/sessions/q1-2026/14-cip-68-nft-standard/session-notes/readme.md similarity index 100% rename from website/docs/working-group/sessions/q1-2026/14-CIP-68 NFT-Standard/session-notes/readme.md rename to website/docs/working-group/sessions/q1-2026/14-cip-68-nft-standard/session-notes/readme.md diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index c7601dec..4554f7f3 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -162,6 +162,21 @@ const config: Config = { from: "/docs/working-group/q1-2025/sessions/08-open-clinic-1/session-2/recordings/", to: "/docs/working-group/q1-2026/sessions/08-open-clinic-1/session-2/recordings/", }, + { + // Two folder-derived routes under the wallet-integration session: its + // Session-1 pages had no slug, so their URLs came from the folder, which + // these renames changed. One capitalised slug is corrected below too. + from: "/docs/working-group/sessions/q1-2026/wallet-integration/Session-1/session-notes/", + to: "/docs/working-group/q1-2026/sessions/10-wallet-integration/session-1/session-notes/", + }, + { + from: "/docs/working-group/sessions/q1-2026/wallet-integration/Session-1/recordings/", + to: "/docs/working-group/q1-2026/sessions/10-wallet-integration/session-1/recordings/", + }, + { + from: "/docs/working-group/q1-2026/sessions/10-wallet-integration/Session-2/recordings/", + to: "/docs/working-group/q1-2026/sessions/10-wallet-integration/session-2/recordings/", + }, { // The folder was misspelled sesion-notes until 2026-11; the route comes // from the directory name, so the old URL is kept alive here. It points diff --git a/website/src/data/sessions.json b/website/src/data/sessions.json index 53694433..16052082 100644 --- a/website/src/data/sessions.json +++ b/website/src/data/sessions.json @@ -84,7 +84,7 @@ "number": "10", "title": "Wallet Integration & Developer Experience", "quarter": "Q1 2026", - "href": "/docs/working-group/sessions/q1-2026/wallet-integration/Session-1/session-notes/" + "href": "/docs/working-group/q1-2026/sessions/10-wallet-integration/session-1/session-notes" }, { "number": "9", From 6e2b1f9ed822b90d397159dada6fd8ebb77179f7 Mon Sep 17 00:00:00 2001 From: IanoNjuguna Date: Sun, 22 Nov 2026 13:27:18 +0300 Subject: [PATCH 5/5] refactor(sessions): take the route from the slug, and fail when it is missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The generator derived a route from the file path whenever a notes page had no frontmatter slug, replicating Docusaurus's number-prefix parsing by hand. That is the bug class this issue exists for: the first version got one fallback wrong, and only the build's broken-link check caught it. Every session-notes page now carries a slug (#411, #412, #413), so the fallback is deleted rather than fixed. A page that forgets one throws by name with the required shape and a pointer to CONTRIBUTING.md, which fails the prebuild instead of shipping a URL that the next rename breaks. CONTRIBUTING.md gains a "Session notes pages" section: the slug is required, its shape, the lowercase-hyphenated folder rule, how a multi-part session nests, and that a moved page adds its old route to the redirect array in the same change. Verified: node --check scripts/generate-sessions.js clean slug deleted from one notes page -> exit 1, "[sessions] …/04-essential-links/session-notes/readme.md has no frontmatter slug. Every session-notes page needs one, in the shape /working-group//sessions//session-notes." slug restored -> wrote 22 sessions docusaurus build SUCCESS, onBrokenLinks: throw Fixes #375 --- CONTRIBUTING.md | 18 ++++++++++++++++++ scripts/generate-sessions.js | 27 +++++++++++++-------------- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 789d5850..2a8d5cc0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -179,6 +179,24 @@ Issues and PRs are triaged on a regular cadence — see [TRIAGE.md](TRIAGE.md) f - Check links are working before submission - Use relative links for internal content +### Session notes pages + +A working group session lives at `website/docs/working-group/sessions///session-notes/readme.md`, and its frontmatter carries the canonical title and the route: + +```yaml +--- +title: Session 22 AI-Ready Cardano Repositories +sidebar_label: Session Notes +sidebar_position: 1 +slug: /working-group/q4-2026/sessions/22-ai-ready-cardano-repos/session-notes +--- +``` + +- **`slug` is required.** The session index on the landing page is generated from these pages, and it reads the slug and nothing else, so a page without one fails the build with a message naming the file. +- **Shape:** `/working-group//sessions//session-notes`. The folder name and the slug agree; the numeric prefix keeps the order and is dropped from the URL only by the slug itself. +- **Folders are lowercase and hyphenated.** `14-cip-68-nft-standard`, not `14-CIP-68 NFT-Standard`; `session-2`, not `Session-2`; `recordings`, not `Recording`. A folder that runs over more than one sitting nests the extra parts (`session-1/`, `session-2/`) and gives each its slug. +- **A moved page keeps its old URL.** Add the old route to `redirects` in `website/docusaurus.config.ts` in the same change, next to the existing entries. + ## Community Guidelines ### Be Respectful diff --git a/scripts/generate-sessions.js b/scripts/generate-sessions.js index c70070c2..1ac6114d 100644 --- a/scripts/generate-sessions.js +++ b/scripts/generate-sessions.js @@ -103,20 +103,19 @@ for (const quarterDir of listDirs(DOCS)) { (!isWeak(fromHeading) && fromHeading) || humanise(sessionDir); - // A frontmatter slug is the canonical route. Without one, the route is the - // doc's own path under docs/ after Docusaurus's default number-prefix parsing: - // "22-ai-ready-cardano-repos" is served at "ai-ready-cardano-repos", and a - // readme/index file is the folder itself. Getting this wrong is silent, so the - // build's broken-link check is what catches it. - const base = path.basename(file).replace(/\.mdx?$/, ''); - const dir = path - .relative(DOCS_ROOT, path.dirname(file)) - .split(path.sep) - .map((segment) => segment.replace(/^\d+[-_.]/, '')) - .join('/'); - const href = fields.slug - ? `/docs${fields.slug.startsWith('/') ? '' : '/'}${fields.slug}` - : `/docs/${dir}/${base === 'readme' || base === 'index' ? '' : base + '/'}`; + // A session's route is its frontmatter slug, and nothing else. Nothing is + // derived from the file path any more: every session-notes page carries one, + // and a new session that forgets it fails this build by name instead of + // silently shipping a folder-derived URL that the next rename breaks. + if (!fields.slug) { + const shown = path.relative(path.join(__dirname, '..'), file); + throw new Error( + `[sessions] ${shown} has no frontmatter slug. Every session-notes page needs one, ` + + 'in the shape /working-group//sessions//session-notes. ' + + 'See "Session notes pages" in CONTRIBUTING.md.' + ); + } + const href = `/docs${fields.slug.startsWith('/') ? '' : '/'}${fields.slug}`; sessions.push({ number,