Skip to content

Migrate onBrokenMarkdownLinks to markdown.hooks - #273

Merged
ryandens merged 1 commit into
mainfrom
worktree-fix-broken-markdown-links-config
Jun 24, 2026
Merged

Migrate onBrokenMarkdownLinks to markdown.hooks#273
ryandens merged 1 commit into
mainfrom
worktree-fix-broken-markdown-links-config

Conversation

@ryandens

Copy link
Copy Markdown
Contributor

What

Moves the onBrokenMarkdownLinks: "warn" setting from the top-level siteConfig into siteConfig.markdown.hooks.onBrokenMarkdownLinks.

Why

Docusaurus emits this deprecation warning on build:

[WARNING] The siteConfig.onBrokenMarkdownLinks config option is deprecated and will be removed in Docusaurus v4. Please migrate and move this option to siteConfig.markdown.hooks.onBrokenMarkdownLinks instead.

This change clears the warning and keeps us compatible with Docusaurus v4. Behavior is unchanged — broken markdown links still emit a warning.

Testing

  • yarn build completes successfully (Node 24.18.0) with no onBrokenMarkdownLinks deprecation warning.

🤖 Generated with Claude Code

Docusaurus v4 deprecates the top-level `siteConfig.onBrokenMarkdownLinks`
option. Move it to `siteConfig.markdown.hooks.onBrokenMarkdownLinks` to
clear the deprecation warning and stay compatible with v4.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ryandens
ryandens requested a review from bdoyal June 24, 2026 22:45
@ryandens
ryandens added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit e8ddf5b Jun 24, 2026
3 checks passed
@ryandens
ryandens deleted the worktree-fix-broken-markdown-links-config branch June 24, 2026 22:46
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