From 441b34ea44471bae74c52699f0cecc172b362090 Mon Sep 17 00:00:00 2001 From: Trezy Date: Wed, 29 Apr 2026 15:06:52 +0000 Subject: [PATCH] docs: update Changelog links and titles --- packages/docs/scripts/generate-changelogs.mjs | 16 ++-------------- packages/docs/sidebars.ts | 48 ++++++++++++++++++++++++------------------------ 2 file(s) changed, 26 insertion(s)(+), 38 deletion(s)(-) diff --git a/packages/docs/scripts/generate-changelogs.mjs b/packages/docs/scripts/generate-changelogs.mjs --- a/packages/docs/scripts/generate-changelogs.mjs +++ b/packages/docs/scripts/generate-changelogs.mjs @@ -7,28 +7,24 @@ const CHANGELOGS = [ { name: "HappyView", output: "docs/reference/changelog.md", - sidebarLabel: "Changelog", match: (tag) => /^v\d/.test(tag), formatVersion: (tag) => tag, }, { name: "@happyview/oauth-client", output: "docs/sdk/changelog-oauth-client.md", - sidebarLabel: "Changelog", match: (tag) => tag.startsWith("@happyview/oauth-client-v"), formatVersion: (tag) => tag.replace("@happyview/oauth-client-", ""), }, { name: "@happyview/oauth-client-browser", output: "docs/sdk/changelog-oauth-client-browser.md", - sidebarLabel: "Changelog", match: (tag) => tag.startsWith("@happyview/oauth-client-browser-v"), formatVersion: (tag) => tag.replace("@happyview/oauth-client-browser-", ""), }, { name: "@happyview/lex-agent", output: "docs/sdk/changelog-lex-agent.md", - sidebarLabel: "Changelog", match: (tag) => tag.startsWith("@happyview/lex-agent-v"), formatVersion: (tag) => tag.replace("@happyview/lex-agent-", ""), }, @@ -82,11 +78,7 @@ if (matching.length === 0) return null; const lines = [ - "---", - `sidebar_label: "${changelog.sidebarLabel}"`, - "---", - "", - `# ${changelog.name} Changelog`, + `# ${changelog.name}`, "", ``, "", @@ -141,11 +133,7 @@ for (const changelog of CHANGELOGS) { let md = buildMarkdown(changelog, releases); if (!md) { md = [ - "---", - `sidebar_label: "${changelog.sidebarLabel}"`, - "---", - "", - `# ${changelog.name} Changelog`, + `# ${changelog.name}`, "", ``, "", diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts --- a/packages/docs/sidebars.ts +++ b/packages/docs/sidebars.ts @@ -276,27 +276,6 @@ type: "doc", id: "sdk/oauth-client-browser", label: "Browser Client", }, - { - type: "category", - label: "Changelogs", - items: [ - { - type: "doc", - id: "sdk/changelog-oauth-client", - label: "OAuth Client", - }, - { - type: "doc", - id: "sdk/changelog-oauth-client-browser", - label: "Browser Client", - }, - { - type: "doc", - id: "sdk/changelog-lex-agent", - label: "Lex Agent", - }, - ], - }, ], }, { @@ -452,9 +431,30 @@ id: "reference/troubleshooting", label: "Troubleshooting", }, { - type: "doc", - id: "reference/changelog", - label: "Changelog", + type: "category", + label: "Changelogs", + items: [ + { + type: "doc", + id: "reference/changelog", + label: "HappyView", + }, + { + type: "doc", + id: "sdk/changelog-oauth-client", + label: "oauth-client", + }, + { + type: "doc", + id: "sdk/changelog-oauth-client-browser", + label: "oauth-client-browser", + }, + { + type: "doc", + id: "sdk/changelog-lex-agent", + label: "lex-agent", + }, + ], }, ], }, -- tangled.sh