Skip to content

Commit 06845ff

Browse files
website: upgrade Docusaurus to 3.8.1 with system color mode support (#3897)
1 parent 26b4c51 commit 06845ff

File tree

6 files changed

+1159
-1397
lines changed

6 files changed

+1159
-1397
lines changed

website/docusaurus.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ module.exports = {
1515
organizationName: 'yewstack', // Usually your GitHub org/user name.
1616
projectName: 'yew', // Usually your repo name.
1717
themeConfig: {
18+
colorMode: {
19+
respectPrefersColorScheme: true,
20+
},
1821
docs: {
1922
sidebar: {
2023
hideable: true,

website/i18n/ja/code.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
},
194194
"theme.colorToggle.ariaLabel": {
195195
"message": "ダークモードとライトモードを切り替える (現在は {mode})",
196-
"description": "The ARIA label for the navbar color mode toggle"
196+
"description": "The ARIA label for the color mode toggle"
197197
},
198198
"theme.colorToggle.ariaLabel.mode.dark": {
199199
"message": "ダークモード",
@@ -297,14 +297,6 @@
297297
"message": "Collapse sidebar category '{label}'",
298298
"description": "The ARIA label to collapse the sidebar category"
299299
},
300-
"theme.unlistedContent.title": {
301-
"message": "非公開のページ",
302-
"description": "The unlisted content banner title"
303-
},
304-
"theme.unlistedContent.message": {
305-
"message": "このページは限定公開です。検索エンジンには表示されません。リンクを持っているユーザーのみアクセスできます。",
306-
"description": "The unlisted content banner message"
307-
},
308300
"theme.SearchPage.inputPlaceholder": {
309301
"message": "検索するキーワードを入力してください",
310302
"description": "The placeholder for search page input"
@@ -448,5 +440,17 @@
448440
"theme.blog.author.noPosts": {
449441
"message": "この著者による投稿はまだありません。",
450442
"description": "The text for authors with 0 blog post"
443+
},
444+
"theme.colorToggle.ariaLabel.mode.system": {
445+
"message": "システムモード",
446+
"description": "The name for the system color mode"
447+
},
448+
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
449+
"message": "ドロップダウンを展開",
450+
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
451+
},
452+
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
453+
"message": "ドロップダウンを折りたたむ",
454+
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
451455
}
452456
}

website/i18n/zh-Hans/code.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
},
194194
"theme.colorToggle.ariaLabel": {
195195
"message": "Switch between dark and light mode (currently {mode})",
196-
"description": "The ARIA label for the navbar color mode toggle"
196+
"description": "The ARIA label for the color mode toggle"
197197
},
198198
"theme.colorToggle.ariaLabel.mode.dark": {
199199
"message": "dark mode",
@@ -440,5 +440,17 @@
440440
"theme.blog.author.noPosts": {
441441
"message": "This author has not written any posts yet.",
442442
"description": "The text for authors with 0 blog post"
443+
},
444+
"theme.colorToggle.ariaLabel.mode.system": {
445+
"message": "系统模式",
446+
"description": "The name for the system color mode"
447+
},
448+
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
449+
"message": "展开下拉菜单",
450+
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
451+
},
452+
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
453+
"message": "收起下拉菜单",
454+
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
443455
}
444456
}

website/i18n/zh-Hant/code.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
},
194194
"theme.colorToggle.ariaLabel": {
195195
"message": "Switch between dark and light mode (currently {mode})",
196-
"description": "The ARIA label for the navbar color mode toggle"
196+
"description": "The ARIA label for the color mode toggle"
197197
},
198198
"theme.colorToggle.ariaLabel.mode.dark": {
199199
"message": "dark mode",
@@ -440,5 +440,17 @@
440440
"theme.blog.author.noPosts": {
441441
"message": "This author has not written any posts yet.",
442442
"description": "The text for authors with 0 blog post"
443+
},
444+
"theme.colorToggle.ariaLabel.mode.system": {
445+
"message": "系統模式",
446+
"description": "The name for the system color mode"
447+
},
448+
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
449+
"message": "展開下拉選單",
450+
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
451+
},
452+
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
453+
"message": "收起下拉選單",
454+
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
443455
}
444456
}

0 commit comments

Comments
 (0)