Skip to content

fix: repair broken doc links and make them fail the build - #117

Merged
idanlodzki merged 1 commit into
mainfrom
fix/broken-doc-links
Aug 2, 2026
Merged

fix: repair broken doc links and make them fail the build#117
idanlodzki merged 1 commit into
mainfrom
fix/broken-doc-links

Conversation

@idanlodzki

Copy link
Copy Markdown
Contributor

The broken links

Two links point at docs/dashboards/overview, which doesn't exist — it was deleted in f24aa81 ("adding alerts"), along with saving-views.md and service-menu.md. The references were never updated, so both have been dead since:

File Line Link text
docs/providers-services/overview.md 74 "Monitor Everything"
docs/providers-services/services/add-services.md 36 "Monitor Services"

Both are in Getting Started / Next Steps sections — the paths a new user is most likely to follow.

Retargeted to dashboards/saved-dashboards, the only page left in that section and the one sidebars.js lists.

Why nobody noticed

onBrokenLinks was set to 'warn'. Docusaurus printed the problem and exited 0 — so it scrolled past in build output and no CI signal existed. This PR sets it to 'throw'.

I verified the gate actually works rather than assuming: pointed a link at a nonexistent page, confirmed the build fails with Docusaurus found broken links!, then reverted.

Worth being clear that this is a different check from the link-check workflow — that one validates external URLs in markdown files. Neither caught these, because they're internal route links resolved by Docusaurus. Now one of them does.

Also: deprecation warning

onBrokenMarkdownLinks moved under markdown.hooks, where Docusaurus 3.10 expects it. It was printing a deprecation warning on every build about v4 removing the top-level option.

Verification

Build passes clean — no broken links, no deprecation warnings.

🤖 Generated with Claude Code

Two links pointed at docs/dashboards/overview, which was deleted in
f24aa81 ("adding alerts") along with saving-views.md and
service-menu.md. The references were left behind, so both have been
dead ever since:

  docs/providers-services/overview.md:74
  docs/providers-services/services/add-services.md:36

Retargeted to dashboards/saved-dashboards, the only page left in that
section and the one the sidebar lists.

The reason this survived is that onBrokenLinks was 'warn', so Docusaurus
printed the problem and exited 0 -- invisible in build output and
invisible to CI. Set it to 'throw'. Verified the gate works by pointing
a link at a nonexistent page and confirming the build fails.

Note this is a different check from the link-check workflow, which
validates external URLs in markdown; neither caught these internal
route links.

Also moved onBrokenMarkdownLinks under markdown.hooks, where Docusaurus
3.10 wants it -- it was warning on every build that v4 will remove the
top-level option.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation-opsimate-docs2 Ready Ready Preview Aug 2, 2026 4:36pm

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@idanlodzki, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 39 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 96375d59-5a18-479d-b606-45d9cad8f60a

📥 Commits

Reviewing files that changed from the base of the PR and between aa1f0a1 and fc7ed81.

📒 Files selected for processing (3)
  • opsimate-docs/docs/providers-services/overview.md
  • opsimate-docs/docs/providers-services/services/add-services.md
  • opsimate-docs/docusaurus.config.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@idanlodzki
idanlodzki merged commit 79f70ac into main Aug 2, 2026
7 checks passed
@idanlodzki
idanlodzki deleted the fix/broken-doc-links branch August 2, 2026 16:36
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