Skip to content

docs: Add checks for broken links on each branch; Fix currently broken links - #26335

Merged
antobinary merged 3 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:docs-400-strict-link-checks
Oct 30, 2026
Merged

antobinary merged 3 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:docs-400-strict-link-checks

Conversation

@antobinary

Copy link
Copy Markdown
Member

What

  • Fixes the 11 broken anchors in the 4.0 docs.
  • Makes a build of docs/ fail on broken anchors, broken markdown links and images, and duplicate routes, not only on broken links. The deprecated top-level onBrokenMarkdownLinks moves to markdown.hooks, which also removes the deprecation warning from every build.
  • Adds a "Docs build check" workflow that runs npm run build in docs/ on pull requests that change docs/ or the workflow, and on demand.

Why

No pull request workflow builds the docs. automated-tests.yml ignores docs/** and **/*.md, and deploy-docs.yml only runs on pushes to develop. The broken link from #25912 was found only after it reached v4.0.x-release and the docs deploy failed (fixed in #26321).

Broken anchors were only warnings, so 11 built up on this branch. Each one opens the target page at the top instead of at the section.

Anchor fixes

The API headings render as ### `GET` `POST` create, so their ids include the HTTP methods.

file was now
administration/customize.md, development/recording.md, support/faq.md /development/api#create, #end, #getrecordings #get-post-create, #get-post-end, #get-getrecordings
development/api.md #insertdocument #post-insertdocument
plugins.md #running-the-Plugin-from-Source #running-the-plugin-from-source
plugins.md #auxiliary-functions #auxiliaries
plugins.md [Plugin Versioning](#plugin-versioning), no such section [SDK version compatibility](#sdk-version-compatibility)
testing/release-testing.md /new-features/#override-default-presentation-on-create-via-url, not on the 4.0 page /development/api#get-post-create, where preUploadedPresentationOverrideDefault is documented

Scope

  • docs.bigbluebutton.org is built with the config on develop, which this PR does not change. There, anchors stay at warn, because pages of archived versions link into the current version (companion PR on develop). This branch's config applies when its docs are built on their own: locally and in the new check.
  • The check builds only this branch's docs, so archived versions cannot fail it.
  • The same change for 3.0 is in a companion PR on v3.0.x-develop.
  • The next forward merge into v4.1.x-develop brings the stricter config and the check along, and that merge PR runs the check. Broken anchors that exist only on 4.1 have to be fixed there, for example customize.md linking to /administration/install#upgrading-bigbluebutton-40. In a trial merge, the 5 docs files that conflict are the same 5 that conflict with plain v4.0.x-develop.

How to test

  • The "Docs build check" runs on this PR and passes.
  • Locally, cd docs && npm ci && npm run build finishes with no broken-link or broken-anchor warnings. Putting back one broken anchor, for example #auxiliary-functions in plugins.md, makes the build fail with "Docusaurus found broken anchors!".

`docusaurus build` reports 11 broken anchors on this branch. Docusaurus only
warns about them (onBrokenAnchors defaults to 'warn'), so they reach the site
unnoticed and the links open at the top of the target page.

- The API headings render as "`GET` `POST` create" and so on, so their ids
  are get-post-create, get-post-end, post-insertdocument and
  get-getrecordings. Links to #create, #end, #insertdocument and
  #getrecordings, in customize.md, recording.md, faq.md and api.md, now use
  those ids.
- plugins.md: heading ids are lower case (#running-the-plugin-from-source),
  the auxiliary functions are under #auxiliaries, and there is no "Plugin
  Versioning" section; "SDK version compatibility" explains how the
  server's html5PluginSdkVersion is matched.
- release-testing.md pointed at a new-features section that is not on the
  4.0 page; preUploadedPresentationOverrideDefault is documented with the
  create call.
onBrokenLinks was the only check that failed the build. Set onBrokenAnchors
and onDuplicateRoutes to 'throw', and move onBrokenMarkdownLinks into
markdown.hooks as 'throw', next to onBrokenMarkdownImages: the top-level
option is deprecated and printed a warning on every build.

This config applies when this branch's docs are built on their own, locally
or in the docs build check. The docs.bigbluebutton.org deploy builds every
version with the config on develop, where anchors stay at 'warn' because the
archived versions link into the current one.

With the anchor fixes in the previous commit the branch builds with no
warnings.
No pull request workflow builds the docs: automated-tests.yml ignores
docs/** and **/*.md, and deploy-docs.yml only runs on pushes to develop. The
broken link from bigbluebutton#25912 was found only after it reached v4.0.x-release and
the docs deploy failed.

The new workflow runs `npm run build` in docs/ on pull requests that touch
docs/ or the workflow, and on demand. With the stricter config it fails on
broken links, anchors, markdown links and images, and duplicate routes. It
builds this branch's docs alone, without the other versions, so the archived
branches cannot fail it.

Node 24 and the action versions match deploy-docs.yml on develop.
@antobinary antobinary added this to the Release 4.0 milestone Oct 30, 2026
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e0d5f8f-2cc2-42a4-9a22-4fb16aa1a4dc
Commits

Reviewing files that changed from the base of the PR and between d8883f3 and 8263f29.

Files selected for processing: 8
  • .github/workflows/docs-build-check.yml
  • docs/docs/administration/customize.md
  • docs/docs/development/api.md
  • docs/docs/development/recording.md
  • docs/docs/plugins.md
  • docs/docs/support/faq.md
  • docs/docs/testing/release-testing.md
  • docs/docusaurus.config.js

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

Walkthrough

The documentation links now point to current API anchors and documentation headings. Docusaurus now throws errors for broken links, anchors, routes, and images. A GitHub Actions workflow installs dependencies and builds the documentation for selected pull requests or manual dispatch.

Priority: Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Suggested reviewers: guileme, prlanzarin

Merge Risk: Minimal · up to 8263f

The changes correct documentation links and add stricter build validation. No actionable merge-blocking defect remains established; the PR is ready to merge subject to normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely summarizes the two main changes: adding documentation build checks and fixing broken links.
Description check Passed The description directly explains the broken-anchor fixes, stricter documentation build validation, and new pull request workflow.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (7 skipped: 7 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@github-actions

Copy link
Copy Markdown

⏳ Automated tests are running...

@antobinary
antobinary merged commit 47eec9e into bigbluebutton:v4.0.x-develop Oct 30, 2026
33 of 34 checks passed
@antobinary
antobinary deleted the docs-400-strict-link-checks branch October 30, 2026 15:19
antobinary added a commit that referenced this pull request Nov 6, 2026
4.0.2 makes the docs build fail on a broken link or anchor (#26335:
onBrokenAnchors, onBrokenMarkdownLinks and onBrokenMarkdownImages set
to throw). On the merged tree it stops at three anchors:

- administration/customize: the upgrade steps link to
  install#upgrading-bigbluebutton-40. The 4.1 install page names that
  section "Upgrading BigBlueButton 4.1". The link predates the merge
  and only warned before.
- administration/customize: the LiveKit dial-in note from 4.0.2
  (#26409) links to the Media section of new-features, and
  administration/privacy: the on-device live captions paragraph from
  4.0.2 (#26334) links to "Live captions transcribed on the user's
  device" there. Both sections are on the 4.0 page. The 4.1 page lists
  only what is new in 4.1.

Point the first at #upgrading-bigbluebutton-41. Point the other two at
the 4.0 page, the way the 4.1 new-features page already does
(https://docs.bigbluebutton.org/4.0/new-features/). Both anchors exist
on the published 4.0 page.
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