Skip to content

Promote alpha to master: fix the home-page Javadoc button - #149

Merged
wisdommen merged 3 commits into
masterfrom
alpha
Oct 22, 2026
Merged

wisdommen merged 3 commits into
masterfrom
alpha

Conversation

@wisdommen

Copy link
Copy Markdown
Member

Summary

Promotes the home-page Javadoc button fix (#148) from alpha to master (production, dev.ultikits.com).

On production, the hero button "Javadoc" on / and /zh/ links to https://dev.ultikits.com/javadoc, which returns 404. It was found by the production dead-link acceptance re-run on master a625ebc (#147, item 1).

Changes (merge-base diff: 3 files)

  • docs/src/index.md, docs/src/zh/index.md: the hero Javadoc button links to /api/ with target: _self. The target keeps VitePress's client router from intercepting the link, the same way the nav API Reference link already works.
  • docs/public/_redirects: /javadoc and /zh/javadoc redirect (301) to /api/. The 14 archived homepages still use the old link and rely on this rule.

master-only content (#83, /zh/api/* redirect comment and scripts/verify-api-proxy.sh) is untouched by this merge.

Gates (on #148, head c88918c)

Author-family review, cross-family review (first run and confirmation run, 0 open P1/P2), real-browser UAT on a clean build served with the Pages Functions runtime (dead-link sample and hero-button click both pass), CI green. Details: #148.

After deployment, the dead-link acceptance row is re-run on production to close #147 item 1.

Issue closure

None

🤖 Generated with Claude Code

wisdommen and others added 3 commits October 23, 2026 01:17
The English and Chinese home-page Javadoc buttons pointed to /javadoc, which never existed as a page and returned 404. Use the live /api/ route and redirect both legacy bookmark paths to it.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Set target: _self on both hero Javadoc actions. Without a target attribute,
VitePress's click handler treats /api/ as an internal page, tries to load
api/index and shows its own 404; the request never reaches the /api/ Pages
Function. The nav and sidebar API Reference links already use target: _self
for the same reason.

Also note in _redirects that the 14 frozen archive homepages still link to
/javadoc and rely on this rule; those buttons land on the current version's
Javadoc by design.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
fix(home): point the Javadoc button at /api/ and redirect /javadoc
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ultitools-dev-doc with  Cloudflare Pages  Cloudflare Pages

Latest commit: 62b4873
Status: ✅  Deploy successful!
Preview URL: https://b7012d7d.ultitools-dev-doc.pages.dev
Branch Preview URL: https://alpha.ultitools-dev-doc.pages.dev

View logs

@wisdommen
wisdommen merged commit 8811051 into master Oct 22, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow-up to #146: deferred P3 items, alpha preview version label, and R11 re-run once javadoc.io indexes 6.3.0

1 participant