Skip to content

chore(docs+website): docs link cleanup and Docusaurus deprecation fix#180

Merged
montfort merged 2 commits into
mainfrom
chore/docs-link-cleanup-and-deprecation-fix
May 20, 2026
Merged

chore(docs+website): docs link cleanup and Docusaurus deprecation fix#180
montfort merged 2 commits into
mainfrom
chore/docs-link-cleanup-and-deprecation-fix

Conversation

@montfort
Copy link
Copy Markdown
Contributor

Summary

Two small, independent hygiene changes that were already in the working tree before the branding/favicon PR landed. Splitting them off as their own PR so they don't get buried inside an unrelated branding squash.

  • chore(docs): — across 21 docs (EN + ES + zh-CN mirrors): drop the redundant **Languages:** line (the Docusaurus locale switcher already exposes this in the navbar), and replace relative .md links that broke when served from Docusaurus with either absolute GitHub URLs (for paths outside the docs root, like ../../CONTRIBUTING.md) or Docusaurus route links (/docs/contributors/TRANSLATION-GUIDE).
  • chore(website): — migrate onBrokenMarkdownLinks from the top-level config to markdown.hooks.onBrokenMarkdownLinks per Docusaurus 3.x. Same behavior, but suppresses the deprecation warning at boot.

Commits in this PR

  • 7022343 chore(docs): clean redundant Language banners and modernize link targets
  • ef9b174 chore(website): migrate onBrokenMarkdownLinks to markdown.hooks

Relationship to PR #179

Both PRs are independent and branch from main. They can merge in either order — there is zero file overlap except for website/docusaurus.config.ts, where the hunks are at different line ranges (this PR: lines 22–32; PR #179: lines 8–11 and ~149). Git resolves both cleanly.

Test plan

  • cd website && npm run build — should no longer print the onBrokenMarkdownLinks deprecation warning.
  • Browse rendered docs on the build (npm run serve) and confirm: no inline **Languages:** line at the top of pages; navbar locale dropdown is the only language affordance.
  • Click through the modernized links (e.g. CONTRIBUTING.md from ADOPTION-GUIDE, TRANSLATION-GUIDE from intro.md) and confirm they resolve (GitHub for the former, Docusaurus route for the latter).

🤖 Generated with Claude Code

montfort and others added 2 commits May 19, 2026 23:58
Two repeated patterns across 21 doc files (EN + ES + zh-CN mirrors):

- Drop the "**Languages:**" / "**Idiomas:**" / "**语言**" line from each
  page. The Docusaurus site already exposes the locale via the navbar
  switcher, so the inline link triplet was both redundant and visually
  noisy when rendered.
- Replace relative .md links that broke once the docs were served from
  Docusaurus: paths like ../../CONTRIBUTING.md (outside the docs root)
  become absolute GitHub URLs, and intra-docs links like
  ./contributors/TRANSLATION-GUIDE.md become Docusaurus route links
  (/docs/contributors/TRANSLATION-GUIDE) that stay stable across
  reorganizations.

Both changes are pure rendering-quality fixes; no content shifts and
no behavioral impact outside the rendered site.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Docusaurus 3.x moved the broken-Markdown-link policy from the
top-level config into markdown.hooks.onBrokenMarkdownLinks. The
top-level form still works but logs a deprecation warning on every
boot. Same behavior, no warning.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@montfort montfort merged commit 622fb5a into main May 20, 2026
1 check 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.

1 participant