website: upgrade Docusaurus to 3.8.1 with system color mode support (#3897)

This commit is contained in:
Siyuan Yan 2025-08-16 15:56:32 +09:00 committed by GitHub
parent 26b4c51709
commit 06845fff9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 1143 additions and 1381 deletions

View File

@ -15,6 +15,9 @@ module.exports = {
organizationName: 'yewstack', // Usually your GitHub org/user name.
projectName: 'yew', // Usually your repo name.
themeConfig: {
colorMode: {
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
hideable: true,

View File

@ -193,7 +193,7 @@
},
"theme.colorToggle.ariaLabel": {
"message": "ダークモードとライトモードを切り替える (現在は {mode})",
"description": "The ARIA label for the navbar color mode toggle"
"description": "The ARIA label for the color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "ダークモード",
@ -297,14 +297,6 @@
"message": "Collapse sidebar category '{label}'",
"description": "The ARIA label to collapse the sidebar category"
},
"theme.unlistedContent.title": {
"message": "非公開のページ",
"description": "The unlisted content banner title"
},
"theme.unlistedContent.message": {
"message": "このページは限定公開です。検索エンジンには表示されません。リンクを持っているユーザーのみアクセスできます。",
"description": "The unlisted content banner message"
},
"theme.SearchPage.inputPlaceholder": {
"message": "検索するキーワードを入力してください",
"description": "The placeholder for search page input"
@ -448,5 +440,17 @@
"theme.blog.author.noPosts": {
"message": "この著者による投稿はまだありません。",
"description": "The text for authors with 0 blog post"
},
"theme.colorToggle.ariaLabel.mode.system": {
"message": "システムモード",
"description": "The name for the system color mode"
},
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
"message": "ドロップダウンを展開",
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
},
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
"message": "ドロップダウンを折りたたむ",
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
}
}

View File

@ -193,7 +193,7 @@
},
"theme.colorToggle.ariaLabel": {
"message": "Switch between dark and light mode (currently {mode})",
"description": "The ARIA label for the navbar color mode toggle"
"description": "The ARIA label for the color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "dark mode",
@ -440,5 +440,17 @@
"theme.blog.author.noPosts": {
"message": "This author has not written any posts yet.",
"description": "The text for authors with 0 blog post"
},
"theme.colorToggle.ariaLabel.mode.system": {
"message": "系统模式",
"description": "The name for the system color mode"
},
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
"message": "展开下拉菜单",
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
},
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
"message": "收起下拉菜单",
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
}
}

View File

@ -193,7 +193,7 @@
},
"theme.colorToggle.ariaLabel": {
"message": "Switch between dark and light mode (currently {mode})",
"description": "The ARIA label for the navbar color mode toggle"
"description": "The ARIA label for the color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "dark mode",
@ -440,5 +440,17 @@
"theme.blog.author.noPosts": {
"message": "This author has not written any posts yet.",
"description": "The text for authors with 0 blog post"
},
"theme.colorToggle.ariaLabel.mode.system": {
"message": "系統模式",
"description": "The name for the system color mode"
},
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
"message": "展開下拉選單",
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
},
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
"message": "收起下拉選單",
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
}
}

2463
website/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,9 +17,9 @@
"fmt:write": "prettier --write ."
},
"dependencies": {
"@docusaurus/core": "^3.7.0",
"@docusaurus/plugin-client-redirects": "^3.7.0",
"@docusaurus/preset-classic": "^3.7.0",
"@docusaurus/core": "^3.8.1",
"@docusaurus/plugin-client-redirects": "^3.8.1",
"@docusaurus/preset-classic": "^3.8.1",
"@mdx-js/react": "^3.1.0",
"@svgr/webpack": "^8.1.0",
"clsx": "^2.1.1",
@ -48,7 +48,7 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/tsconfig": "3.8.1",
"@types/react": "^19.0.8",
"@types/react-helmet": "^6.1.11",
"@types/react-router-dom": "^5.3.3",