Commit Graph
6 Commits
Author SHA1 Message Date
zihluwang 7a63074a65 chore: remove blog, open-source and news sections
- Delete the blogs, opensource-projects and notifications trees
- Drop their nav entries and i18n keys
- Point the nav at the new open-source site instead
- Drop the opensource-projects sitemap priority
2026-09-29 12:21:53 +08:00
zihluwang 164c319ac1 feat(i18n): default the cn build to Chinese
The .cn site exists for Chinese readers, so the unprefixed routes should
serve Chinese there. Rspress omits the prefix for the default locale, so
this also moves the routes:

              .com                      .cn
  English     /                         /en-gb/
  Chinese     /zh-hans/                 /

- Make the default locale a per-target value rather than a constant, and
  move the localePrefix helper inside createConfig so a prefix can no
  longer be hardcoded elsewhere.
- Build the sitemap priority map from localePrefix. The keys are full
  route paths, so the previous hardcoded "/zh-hans/..." entries would
  have silently stopped matching on .cn.
- Widen the nav Home activeMatch to cover either prefixed home, since the
  two targets put a different locale behind the prefix.

Note: README.md also carries the licence wording changed in the next
commit — a single file's hunks cannot be split non-interactively.
2026-09-25 15:38:03 +08:00
zihluwang 792246dc12 feat(nav): restructure top navigation and sidebars
The old nav used bare lowercase slugs and leaned on filesystem order for
every sidebar.

- Replace the three existing nav entries with six labelled ones, keyed
  through i18n.json so both locales resolve to their own text from
  identical _nav.json files.
- Add _meta.json for blogs and opensource-projects, grouping entries by
  topic instead of leaving them alphabetical.
- Rename the Blogs and Notifications pages so their titles match the nav
  labels (Insights and News).
- Point the notification page's account-settings link at GitHub, as the
  Gitea instance it referenced is retired.
2026-09-25 14:48:52 +08:00
zihluwang ad6a11b1b4 docs: add docs for calendar toolbox 2026-05-23 08:42:52 +08:00
zihluwang 453f20c902 refactor: re-organise file structure 2026-05-23 07:55:18 +08:00
siujamo 2c17c927fc feat: implement pages 2026-05-19 21:45:20 -05:00