Add Release History page (en + zh) from package CHANGELOGs#64
Merged
Conversation
Build-time src/_data/releases.js parses every publishable package CHANGELOG into a version-by-version history (newest first), with publish dates from pub.dev and a Chinese translation overlay (English fallback). New /releases/ and /zh/releases/ pages, wired into main nav + footer in both languages. Element-scoped CSS, dark-mode aware via existing tokens.
MelbourneDeveloper
added a commit
that referenced
this pull request
Jun 9, 2026
## TLDR Adds a Release History page (English + Chinese) listing every published dart_node version with dates and per-package changelog notes. ## What Was Added? - `website/src/_data/releases.js` — build-time data file that parses every publishable package's `CHANGELOG.md` into a version-by-version history (newest first). Publish dates are sourced from pub.dev (baked in, since the Pages build checks out shallow with no git tags). A Chinese translation overlay localizes the notes, falling back to English for any unmapped line. - `website/src/releases.njk` and `website/src/zh/releases.njk` — the `/releases/` and `/zh/releases/` pages. - "Releases" / "版本历史" added to the main nav and footer in both `navigation.json` and `navigation_zh.json`. - Element-scoped CSS for the release list (dark-mode aware via existing design tokens). ## What Was Changed or Deleted? Nothing removed. Two nav data files gain one entry each; the stylesheet gains one scoped block. ## How Do The Automated Tests Prove It Works? Full website Playwright suite passes (108/108). Both new pages build and appear in `sitemap.xml` (2 entries). Manually verified rendered output: 8 release versions with correct dates (e.g. `0.13.0-beta` → June 7, 2026 / 2026年6月7日), `dart_node_sql_js` listed under 0.13.0-beta, inline `` `fs` `` rendered as `<code>`, and the zh page fully translated (版本历史, 10 个包, 维护版本;无功能性更改). Playwright desktop + mobile screenshots show zero console errors. ## Spec / Doc Changes None. ## Breaking Changes - [x] None
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.
TLDR
Adds a Release History page (English + Chinese) listing every published dart_node version with dates and per-package changelog notes.
What Was Added?
website/src/_data/releases.js— build-time data file that parses every publishable package'sCHANGELOG.mdinto a version-by-version history (newest first). Publish dates are sourced from pub.dev (baked in, since the Pages build checks out shallow with no git tags). A Chinese translation overlay localizes the notes, falling back to English for any unmapped line.website/src/releases.njkandwebsite/src/zh/releases.njk— the/releases/and/zh/releases/pages.navigation.jsonandnavigation_zh.json.What Was Changed or Deleted?
Nothing removed. Two nav data files gain one entry each; the stylesheet gains one scoped block.
How Do The Automated Tests Prove It Works?
Full website Playwright suite passes (108/108). Both new pages build and appear in
sitemap.xml(2 entries). Manually verified rendered output: 8 release versions with correct dates (e.g.0.13.0-beta→ June 7, 2026 / 2026年6月7日),dart_node_sql_jslisted under 0.13.0-beta, inline`fs`rendered as<code>, and the zh page fully translated (版本历史, 10 个包, 维护版本;无功能性更改). Playwright desktop + mobile screenshots show zero console errors.Spec / Doc Changes
None.
Breaking Changes