Skip to content

Commit 0fb37ed

Browse files
authored
Upgrade Docusaurus & deps to v3.10.0 (#573)
1 parent b96c68b commit 0fb37ed

File tree

5 files changed

+789
-788
lines changed

5 files changed

+789
-788
lines changed

docusaurus.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ const config = {
2525
},
2626
themes: ["@docusaurus/theme-mermaid"],
2727
future: {
28-
experimental_faster: true,
28+
faster: true,
2929
v4: true,
3030
},
31+
markdown: {
32+
mdx1Compat: {
33+
headingIds: true,
34+
comments: true
35+
}
36+
},
3137
presets: [
3238
[
3339
"classic",

i18n/zh-Hans/code.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
"message": "较旧的博文",
3434
"description": "The label used to navigate to the older blog posts page (next page)"
3535
},
36+
"theme.tags.tagsPageLink": {
37+
"message": "查看所有标签",
38+
"description": "The label of the link targeting the tag list page"
39+
},
3640
"theme.blog.post.paginator.navAriaLabel": {
3741
"message": "博文分页导航",
3842
"description": "The ARIA label for the blog posts pagination"
@@ -45,10 +49,6 @@
4549
"message": "较旧一篇",
4650
"description": "The blog post button label to navigate to the older/next post"
4751
},
48-
"theme.tags.tagsPageLink": {
49-
"message": "查看所有标签",
50-
"description": "The label of the link targeting the tag list page"
51-
},
5252
"theme.colorToggle.ariaLabel.mode.system": {
5353
"message": "system mode",
5454
"description": "The name for the system color mode"
@@ -65,10 +65,6 @@
6565
"message": "切换浅色/暗黑模式(当前为{mode})",
6666
"description": "The ARIA label for the color mode toggle"
6767
},
68-
"theme.docs.DocCard.categoryDescription.plurals": {
69-
"message": "{count} 个项目",
70-
"description": "The default description for a category card in the generated index about how many items this category includes"
71-
},
7268
"theme.docs.breadcrumbs.navAriaLabel": {
7369
"message": "页面路径",
7470
"description": "The ARIA label for the breadcrumbs"
@@ -132,22 +128,18 @@
132128
"message": "最后{byUser}{atDate}更新",
133129
"description": "The sentence used to display when a page has been last updated, and by who"
134130
},
135-
"theme.navbar.mobileVersionsDropdown.label": {
136-
"message": "选择版本",
137-
"description": "The label for the navbar versions dropdown on mobile view"
138-
},
139131
"theme.NotFound.title": {
140132
"message": "找不到页面",
141133
"description": "The title of the 404 page"
142134
},
135+
"theme.navbar.mobileVersionsDropdown.label": {
136+
"message": "选择版本",
137+
"description": "The label for the navbar versions dropdown on mobile view"
138+
},
143139
"theme.tags.tagsListLabel": {
144140
"message": "标签:",
145141
"description": "The label alongside a tag list"
146142
},
147-
"theme.AnnouncementBar.closeButtonAriaLabel": {
148-
"message": "关闭",
149-
"description": "The ARIA label for close button of announcement bar"
150-
},
151143
"theme.admonition.caution": {
152144
"message": "警告",
153145
"description": "The default label used for the Caution admonition (:::caution)"
@@ -172,6 +164,10 @@
172164
"message": "注意",
173165
"description": "The default label used for the Warning admonition (:::warning)"
174166
},
167+
"theme.AnnouncementBar.closeButtonAriaLabel": {
168+
"message": "关闭",
169+
"description": "The ARIA label for close button of announcement bar"
170+
},
175171
"theme.blog.sidebar.navAriaLabel": {
176172
"message": "最近博文导航",
177173
"description": "The ARIA label for recent posts in the blog sidebar"
@@ -192,9 +188,9 @@
192188
"message": "主导航",
193189
"description": "The ARIA label for the main navigation"
194190
},
195-
"theme.TOCCollapsible.toggleButtonLabel": {
196-
"message": "本页总览",
197-
"description": "The label used by the button on the collapsible TOC component"
191+
"theme.navbar.mobileLanguageDropdown.label": {
192+
"message": "选择语言",
193+
"description": "The label for the mobile language switcher dropdown"
198194
},
199195
"theme.NotFound.p1": {
200196
"message": "我们找不到您要找的页面。",
@@ -204,9 +200,17 @@
204200
"message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
205201
"description": "The 2nd paragraph of the 404 page"
206202
},
207-
"theme.navbar.mobileLanguageDropdown.label": {
208-
"message": "选择语言",
209-
"description": "The label for the mobile language switcher dropdown"
203+
"theme.TOCCollapsible.toggleButtonLabel": {
204+
"message": "本页总览",
205+
"description": "The label used by the button on the collapsible TOC component"
206+
},
207+
"theme.blog.post.readMore": {
208+
"message": "阅读更多",
209+
"description": "The label used in blog post item excerpts to link to full blog posts"
210+
},
211+
"theme.blog.post.readMoreLabel": {
212+
"message": "阅读 {title} 的全文",
213+
"description": "The ARIA label for the link to full blog posts from excerpts"
210214
},
211215
"theme.blog.post.readingTime.plurals": {
212216
"message": "阅读需 {readingTime} 分钟",
@@ -224,18 +228,14 @@
224228
"message": "复制代码到剪贴板",
225229
"description": "The ARIA label for copy code blocks button"
226230
},
227-
"theme.blog.post.readMore": {
228-
"message": "阅读更多",
229-
"description": "The label used in blog post item excerpts to link to full blog posts"
230-
},
231-
"theme.blog.post.readMoreLabel": {
232-
"message": "阅读 {title} 的全文",
233-
"description": "The ARIA label for the link to full blog posts from excerpts"
234-
},
235231
"theme.CodeBlock.wordWrapToggle": {
236232
"message": "切换自动换行",
237233
"description": "The title attribute for toggle word wrapping button of code block lines"
238234
},
235+
"theme.docs.breadcrumbs.home": {
236+
"message": "主页面",
237+
"description": "The ARIA label for the home page in the breadcrumbs"
238+
},
239239
"theme.docs.sidebar.collapseButtonTitle": {
240240
"message": "收起侧边栏",
241241
"description": "The title attribute for collapse button of doc sidebar"
@@ -244,10 +244,6 @@
244244
"message": "收起侧边栏",
245245
"description": "The title attribute for collapse button of doc sidebar"
246246
},
247-
"theme.docs.breadcrumbs.home": {
248-
"message": "主页面",
249-
"description": "The ARIA label for the home page in the breadcrumbs"
250-
},
251247
"theme.docs.sidebar.navAriaLabel": {
252248
"message": "文档侧边栏",
253249
"description": "The ARIA label for the sidebar navigation"
@@ -256,14 +252,14 @@
256252
"message": "关闭导航栏",
257253
"description": "The ARIA label for close button of mobile sidebar"
258254
},
259-
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
260-
"message": "← 回到主菜单",
261-
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
262-
},
263255
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
264256
"message": "切换导航栏",
265257
"description": "The ARIA label for hamburger menu button of mobile navigation"
266258
},
259+
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
260+
"message": "← 回到主菜单",
261+
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
262+
},
267263
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
268264
"message": "Expand the dropdown",
269265
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
@@ -320,6 +316,10 @@
320316
"message": "此页面是草稿,仅在开发环境中可见,不会包含在正式版本中。",
321317
"description": "The draft content banner message"
322318
},
319+
"theme.docs.DocCard.categoryDescription.plurals": {
320+
"message": "{count} 个项目",
321+
"description": "The default description for a category card in the generated index about how many items this category includes"
322+
},
323323
"theme.ErrorPageContent.tryAgain": {
324324
"message": "重试",
325325
"description": "The label of the button to try again rendering when the React error boundary captures an error"

i18n/zh-Hans/docusaurus-theme-classic/navbar.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,5 @@
3030
"item.label.GitHub": {
3131
"message": "GitHub",
3232
"description": "Navbar item with label GitHub"
33-
},
34-
"item.label.Gitee": {
35-
"message": "Gitee",
36-
"description": "Navbar item with label Gitee"
3733
}
3834
}

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@
2828
]
2929
},
3030
"dependencies": {
31-
"@docusaurus/core": "3.9.2",
32-
"@docusaurus/faster": "3.9.2",
33-
"@docusaurus/plugin-client-redirects": "3.9.2",
34-
"@docusaurus/preset-classic": "3.9.2",
35-
"@docusaurus/theme-classic": "3.9.2",
36-
"@docusaurus/theme-common": "3.9.2",
37-
"@docusaurus/theme-mermaid": "3.9.2",
31+
"@docusaurus/core": "3.10.0",
32+
"@docusaurus/faster": "3.10.0",
33+
"@docusaurus/plugin-client-redirects": "3.10.0",
34+
"@docusaurus/preset-classic": "3.10.0",
35+
"@docusaurus/theme-classic": "3.10.0",
36+
"@docusaurus/theme-common": "3.10.0",
37+
"@docusaurus/theme-mermaid": "3.10.0",
3838
"@mdx-js/react": "^3.1.1",
39-
"@shikijs/rehype": "^3.20.0",
40-
"@shikijs/transformers": "^3.20.0",
39+
"@shikijs/rehype": "^4.0.2",
40+
"@shikijs/transformers": "^4.0.2",
4141
"@svgr/webpack": "^5.5.0",
4242
"clsx": "^1.2.1",
43-
"docusaurus-plugin-image-zoom": "^1.0.1",
43+
"docusaurus-plugin-image-zoom": "^3.0.1",
4444
"file-loader": "^6.2.0",
4545
"hast-util-is-element": "1.1.0",
46-
"meilisearch-docsearch": "^0.6.1",
46+
"meilisearch-docsearch": "^0.8.0",
4747
"prism-react-renderer": "^2.4.1",
48-
"react": "^18.3.1",
49-
"react-dom": "^18.3.1",
50-
"shiki": "^3.20.0",
48+
"react": "^19.0.4",
49+
"react-dom": "^19.0.4",
50+
"shiki": "^4.0.2",
5151
"url-loader": "^4.1.1"
5252
},
5353
"devDependencies": {
54-
"@docusaurus/module-type-aliases": "3.9.2",
54+
"@docusaurus/module-type-aliases": "3.10.0",
5555
"docusaurus-plugin-sass": "^0.2.6",
5656
"husky": "^7.0.4",
5757
"markdownlint": "^0.25.1",
5858
"markdownlint-cli2": "^0.4.0",
59-
"sass-embedded": "^1.97.1"
59+
"sass-embedded": "^1.99.0"
6060
},
6161
"engines": {
6262
"node": ">=18.0"
6363
},
64-
"packageManager": "pnpm@10.26.2"
64+
"packageManager": "pnpm@10.33.0"
6565
}

0 commit comments

Comments
 (0)