Skip to content

fix(website): move onBrokenMarkdownLinks into markdown.hooks#1998

Merged
azu merged 1 commit into
masterfrom
fix/docusaurus-broken-markdown-links-hook
Apr 9, 2026
Merged

fix(website): move onBrokenMarkdownLinks into markdown.hooks#1998
azu merged 1 commit into
masterfrom
fix/docusaurus-broken-markdown-links-hook

Conversation

@azu

@azu azu commented Apr 9, 2026

Copy link
Copy Markdown
Member

Summary

Docusaurus deprecated the top-level onBrokenMarkdownLinks option in favor of markdown.hooks.onBrokenMarkdownLinks. This PR migrates the website config to silence the deprecation warning.

Changes

  • Move onBrokenMarkdownLinks: "log" from the root config into markdown.hooks.onBrokenMarkdownLinks in website/docusaurus.config.js.

Breaking Changes

None.

Test Plan

  • Run the website locally (pnpm --filter website start or equivalent) and confirm no deprecation warning about onBrokenMarkdownLinks is shown.
  • Confirm broken markdown links are still logged as before.

Docusaurus deprecated the top-level onBrokenMarkdownLinks option in
favor of markdown.hooks.onBrokenMarkdownLinks.
Copilot AI review requested due to automatic review settings April 9, 2026 00:16
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-09 00:20 UTC

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Migrates the Docusaurus website configuration to the new markdown.hooks.onBrokenMarkdownLinks location to address the deprecation of the top-level onBrokenMarkdownLinks option.

Changes:

  • Moved onBrokenMarkdownLinks: "log" from the root config into markdown.hooks.onBrokenMarkdownLinks in website/docusaurus.config.js.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@azu azu enabled auto-merge (squash) April 9, 2026 00:20
@azu azu merged commit a1e1b15 into master Apr 9, 2026
27 checks passed
@azu azu deleted the fix/docusaurus-broken-markdown-links-hook branch April 9, 2026 00:20
@github-actions github-actions Bot mentioned this pull request Apr 26, 2026
azu added a commit that referenced this pull request Apr 26, 2026
<!-- Release notes generated using configuration in .github/release.yml
at master -->

## What's Changed
### Features
* feat(markdown-to-ast): add support for TOML and JSON frontmatter by
@3w36zj6 in #2012
### CI
* fix(ci): remove CNAME from website PR preview build by @azu in
#1999
* chore(deps): update github/codeql-action action to v3.35.2 by
@renovate[bot] in #2010
* Update merge-gatekeeper action and add actions permission by @azu in
#2014
### Dependency Updates
* chore(deps): update docusaurus monorepo to ^3.10.0 (minor) by
@renovate[bot] in #2000
* chore(deps): update dependency oxlint to ^1.59.0 by @renovate[bot] in
#2002
* chore(deps): update patch updates (patch) by @renovate[bot] in
#2001
* chore(deps): update dependency oxlint-tsgolint to ^0.20.0 by
@renovate[bot] in #2004
* chore(deps): update dependency json5 to ^2.2.3 by @renovate[bot] in
#2003
* chore(deps): update react monorepo to ^19.2.5 (patch) by
@renovate[bot] in #2005
* chore(deps): update dependency oxlint-tsgolint to ^0.21.0 by
@renovate[bot] in #2007
* chore(deps): update dependency oxlint-tsgolint to ^0.21.1 by
@renovate[bot] in #2009
* chore(deps): update pnpm to v10.33.1 by @renovate[bot] in
#2011
* chore(deps): update pnpm to v10.33.2 by @renovate[bot] in
#2013
### Other Changes
* fix(website): move onBrokenMarkdownLinks into markdown.hooks by @azu
in #1998


**Full Changelog**:
v15.5.4...v15.6.0

Co-authored-by: azu <azu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants