Commit 1ff414a
committed
Fix dead nav links and add migrations index page
The VitePress nav menu had been carrying four dead targets and two
semantically wrong ones since the sidebar was populated. The `Guide`
entry (and its Chinese mirror `指南`) pointed at the site root `/`,
which renders the home page's hero+features layout rather than a
guide. The `Migrations` and `Changelog` entries (and their Chinese
mirrors) pointed at `/migrations/` and `/changelog`, which both
returned HTTP 404 — neither path had an underlying page. The nav
was the only place the four 404 URLs lived; nothing else linked at
them, which is why the strict dead-link checker and the prior
site-wide verification swept past them. They surfaced through a
manual menu-by-menu inspection of the deployed nav.
The `Guide` entry now points at `/guides/getting-started`, matching
the first entry in the Guides sidebar group. The home-page hero
"Get started" CTA continues to point at `/quickstart` separately,
so the 60-second and 15-minute entry paths stay distinct (hero =
quickstart; nav menu = guides region entry). The Chinese mirror is
updated symmetrically to `/zh/guides/getting-started`.
The `Migrations` entry retains its `/migrations/` target but the
URL now resolves through a new overview page,
`docs/migrations/index.md`. The page lists the six per-release
migration guides (v0.1→v1.0 through v1.4→v1.5) with one-line
descriptions of what each covers, a recommended reading order for
multi-version upgrades, an explanation of why this section is
English-only, and cross-links to the CHANGELOG, Getting started,
and API reference. It carries the `EN_ONLY_PREFIXES` hreflang-skip
classification from the prior commit (zh-CN hreflang omitted on
this and the six migration files alike), so search engines see a
single English-only section.
The Chinese `迁移指南` entry now cross-links to the same
`/migrations/` overview because migration guides are English-only by
policy — there is no `/zh/migrations/` namespace. The Chinese
sidebar already cross-links the per-release migration pages to
their English URLs the same way; the nav entry just makes that
explicit at the top-level navigation surface.
The `Changelog` entry (and its Chinese mirror) now points at the
canonical CHANGELOG file on GitHub at
`https://github.com/zhh2001/jp4/blob/main/CHANGELOG.md`. The
absolute-URL approach matches the same pattern already used inside
the migration guides for their CHANGELOG cross-references — the
CHANGELOG is a single canonical source and GitHub renders it
correctly, with no maintenance burden from mirroring it as a
VitePress page that would have to track every release.
Post-fix verification: VitePress builds in 6.5 seconds with zero
dead-link warnings; the sitemap grows from 62 to 63 entries (the new
migrations index lands as a sitemap URL); the live nav menu now
resolves all eight of its links (four EN + four CN); doc-lint
reports zero failures with the same 19 file-level skips as before;
the new index page carries unique title/description/keywords
frontmatter and renders through the per-page keywords meta the
prior commit wired up.
No Java source or test touched; the Maven build, test suite, and
published artefact surface are unchanged. SemVer-irrelevant.1 parent 45f3c82 commit 1ff414a
2 files changed
Lines changed: 43 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | | - | |
289 | | - | |
| 288 | + | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments