Upgrade Docusaurus to 3.10.2#384
Merged
Merged
Conversation
Upgrade @docusaurus/core, @docusaurus/preset-classic,
@docusaurus/module-type-aliases, @docusaurus/plugin-client-redirects,
@docusaurus/tsconfig, and @docusaurus/types to ^3.10.2.
Breaking changes addressed across 30 files:
- Replace @theme/Unlisted with @theme/ContentVisibility in swizzled
BlogPostPage, DocItem/Layout, and MDXPage components.
ContentVisibility accepts a metadata prop and handles both unlisted
and draft states.
- Migrate imports from @docusaurus/theme-common/internal to
plugin-specific client entry points (20+ swizzled components):
- Docs hooks (useDoc, useDocsSidebar, DocProvider, etc.) now come
from @docusaurus/plugin-content-docs/client.
- Blog hooks (useBlogPost, BlogPostProvider, etc.) now come from
@docusaurus/plugin-content-blog/client.
- Update useGetNewBlogList hook: blog-archive JSON path changed from
blog-archive-80c.json to p/blog-archive-f05.json [blocked]; data shape
wrapped in archive key.
- Move onBrokenMarkdownLinks to markdown.hooks per Docusaurus v4
migration path.
- Add onUntruncatedBlogPosts: 'ignore' to suppress truncation
warnings for existing blog posts.
Build verified: client and server compile successfully.
Assisted-by: Deepseek
tuhaihe
force-pushed
the
upgrade-docusaurus-version-3.10
branch
from
July 16, 2026 04:13
739ba8d to
9f09955
Compare
TomShawn
approved these changes
Jul 17, 2026
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.
Upgrade @docusaurus/core, @docusaurus/preset-classic, @docusaurus/module-type-aliases, @docusaurus/plugin-client-redirects, @docusaurus/tsconfig, and @docusaurus/types to ^3.10.2.
Breaking changes addressed across 30 files:
Replace @theme/Unlisted with @theme/ContentVisibility in swizzled BlogPostPage, DocItem/Layout, and MDXPage components. ContentVisibility accepts a metadata prop and handles both unlisted and draft states.
Migrate imports from @docusaurus/theme-common/internal to plugin-specific client entry points (20+ swizzled components):
Update useGetNewBlogList hook: blog-archive JSON path changed from blog-archive-80c.json to p/blog-archive-f05.json [blocked]; data shape wrapped in archive key.
Move onBrokenMarkdownLinks to markdown.hooks per Docusaurus v4 migration path.
Add onUntruncatedBlogPosts: 'ignore' to suppress truncation warnings for existing blog posts.
Build verified: client and server compile successfully.
Assisted-by: Deepseek
closes: #ISSUE_Number
Change logs
Contributor's checklist
Here are some reminders before you submit your pull request: