build(deps): upgrade to Docusaurus 3.10 - #301
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate from Docusaurus 2.4 to 3.10, mirroring the gotd/docs upgrade (
upgrade-docusaurus-3.10).Changes
@docusaurus/core,preset-classic^2.4→^3.10.0@mdx-js/react^1.6→^3.0.0prism-react-renderer^1.3→^2.3, updated to thethemesimport APIreact,react-dom^17→^19@docusaurus/module-type-aliases→^3.10, added@docusaurus/types, moved@svgr/webpack+ type packages todevDependencies@docusaurus/plugin-google-analytics(the config already uses thegtagpreset option)nth-checkpin and the@babel/helper-get-function-arityworkaroundonBrokenMarkdownLinkstomarkdown.hooksfuture.v4: true) and added@docusaurus/fasterbabel.config.js(SWC replaces Babel underfaster)resolutionsfor security.nvmrc(25), pointed CIsetup-nodeat it, and disabled experimental web storage in scripts (NODE_OPTIONS=--no-experimental-webstorage) to work around thelocalStorageglobal breaking SSGHomepageFeatures(<ul>inside<p>) surfaced by the stricter Docusaurus 3 HTML minifierVerification
yarn buildsucceeds; the only remaining output is the pre-existing cosmetic blog-truncation recommendation.