Skip to content

docs: fix broken anchor, enforce anchor checking, document macOS build gotcha - #3272

Merged
jwhartley merged 2 commits into
masterfrom
docs/broken-anchor-lint
Aug 17, 2026
Merged

docs: fix broken anchor, enforce anchor checking, document macOS build gotcha#3272
jwhartley merged 2 commits into
masterfrom
docs/broken-anchor-lint

Conversation

@jwhartley

@jwhartley jwhartley commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What

  1. Fixes the one broken anchor found site-wide: firstwritewins-and-lastwritewins.md linked ./#reduction-guarantees (itself) instead of the reduction-strategies overview page, where that heading lives. (Resolved via merge with master, which had since fixed the same link independently using an absolute path — that version is what's in the final diff.)
  2. Flips onBrokenAnchors from warn to throw in docusaurus.config.js, now that the only offender is fixed, so future broken anchors fail the build instead of shipping silently.
  3. Documents a pre-existing hubspot-real-time redirect/page collision in site/README.md: the redirect's from path differs from the real HubSpot-real-time page only by case, so npm run build fails on macOS's case-insensitive filesystem with "the redirect plugin is not supposed to override existing files." Confirmed this does not affect production (Linux CI is case-sensitive), so it's a local-dev note, not a code change.

Why

Found while investigating stale-anchor feedback on #3094 — a heading rename there broke an anchor link silently since onBrokenAnchors only warns. Verified locally that flipping it to throw catches that class of bug without any other backlog (confirmed via full npm run build before and after).

Testing

  • npm run build locally: only failure is the pre-existing hubspot-real-time macOS collision (unrelated, documented, not present in CI).
  • Confirmed via grep this is the only reduction-guarantees broken anchor pattern in the docs tree.

…d gotcha

The firstWriteWins/lastWriteWins page linked ./#reduction-guarantees (itself)
instead of ../#reduction-guarantees (the reduction-strategies overview page,
where that heading actually lives). With the only broken anchor site-wide now
fixed, flip onBrokenAnchors from warn to throw so future broken anchors fail
CI instead of shipping silently.

Also documents the pre-existing hubspot-real-time redirect collision: it only
reproduces on macOS's case-insensitive filesystem and doesn't affect the
Linux-based production build, so it's a local-dev note rather than a bug fix.
@jwhartley
jwhartley requested a review from aeluce July 28, 2026 06:52
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to https://docs.estuary.dev/pr-preview/pr-3272/

@aeluce aeluce left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree that we should eventually fail builds with broken anchors. Would it make sense to start this practice with the separate docs repo? I believe we've held off previously so failing docs checks wouldn't hold up feature releases (though theoretically if we've squashed all the anchor issues for now… 🤞).

@jwhartley
jwhartley merged commit cd51dcc into master Aug 17, 2026
8 checks passed
@jwhartley
jwhartley deleted the docs/broken-anchor-lint branch August 17, 2026 09:43
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.

2 participants