Skip to content

build(deps): upgrade to Docusaurus 3.10 - #301

Merged
ernado merged 2 commits into
mainfrom
upgrade-docusaurus-3.10
Jun 15, 2026
Merged

build(deps): upgrade to Docusaurus 3.10#301
ernado merged 2 commits into
mainfrom
upgrade-docusaurus-3.10

Conversation

@ernado

@ernado ernado commented Jun 15, 2026

Copy link
Copy Markdown
Member

Migrate from Docusaurus 2.4 to 3.10, mirroring the gotd/docs upgrade (upgrade-docusaurus-3.10).

Changes

  • Core: @docusaurus/core, preset-classic ^2.4^3.10.0
  • MDX: @mdx-js/react ^1.6^3.0.0
  • Prism: prism-react-renderer ^1.3^2.3, updated to the themes import API
  • React: react, react-dom ^17^19
  • Types/tooling: @docusaurus/module-type-aliases^3.10, added @docusaurus/types, moved @svgr/webpack + type packages to devDependencies
  • Removed @docusaurus/plugin-google-analytics (the config already uses the gtag preset option)
  • Dropped the nth-check pin and the @babel/helper-get-function-arity workaround
  • Migrated onBrokenMarkdownLinks to markdown.hooks
  • Enabled Docusaurus v4 future flags (future.v4: true) and added @docusaurus/faster
  • Dropped babel.config.js (SWC replaces Babel under faster)
  • Pinned transitive deps via resolutions for security
  • Node 25: added .nvmrc (25), pointed CI setup-node at it, and disabled experimental web storage in scripts (NODE_OPTIONS=--no-experimental-webstorage) to work around the localStorage global breaking SSG
  • Fixed invalid markup in HomepageFeatures (<ul> inside <p>) surfaced by the stricter Docusaurus 3 HTML minifier

Verification

yarn build succeeds; the only remaining output is the pre-existing cosmetic blog-truncation recommendation.

ernado and others added 2 commits June 15, 2026 18:59
Migrate from Docusaurus 2.4 to 3.10, mirroring the gotd/docs upgrade:
- @docusaurus/core, preset-classic: ^2.4 -> ^3.10.0
- @mdx-js/react: ^1.6 -> ^3.0.0 (MDX v3)
- prism-react-renderer: ^1.3 -> ^2.3, update themes import API
- react, react-dom: ^17 -> ^19
- @docusaurus/module-type-aliases, add @docusaurus/types: ^3.10
- Move @svgr/webpack and type packages to devDependencies
- Remove @docusaurus/plugin-google-analytics (config already uses gtag)
- Drop nth-check pin and @babel/helper-get-function-arity workaround
- Migrate onBrokenMarkdownLinks to markdown.hooks
- Enable Docusaurus v4 future flags (future.v4) and add @docusaurus/faster
- Drop babel.config.js since SWC replaces Babel under faster
- Pin transitive deps via resolutions for security

Use Node 25: add .nvmrc (25), point CI setup-node at it, and disable
experimental web storage in scripts (NODE_OPTIONS=--no-experimental-webstorage)
to work around the localStorage global breaking SSG.

Fix invalid markup in HomepageFeatures (ul inside p) surfaced by the
stricter Docusaurus 3 HTML minifier.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add Algolia DocSearch using the same gotd application keys, indexing the
'ogen' project. The search-only apiKey is public and safe to commit; all
values can be overridden via ALGOLIA_* env vars. Include the
algolia-site-verification meta tag for crawler domain verification.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ernado
ernado merged commit 9537f53 into main Jun 15, 2026
2 checks passed
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