- 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
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.
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.