Skip to content

Commit c635682

Browse files
OreoYangjiaoshuntian
authored andcommitted
docusaurus 3.9
1 parent 3dc892a commit c635682

8 files changed

Lines changed: 18124 additions & 11643 deletions

File tree

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const config = {
1111
tagline: 'Open Source Oracle compatible PostgreSQL',
1212
url: 'https://ivorySQL.org',
1313
baseUrl: '/',
14-
onBrokenLinks: 'throw',
14+
onBrokenLinks: 'warn', // 'throw',
1515
onBrokenMarkdownLinks: 'warn',
1616
favicon: 'img/favicon.ico',
1717
organizationName: 'IvorySQL', // Usually your GitHub org/user name.
@@ -62,7 +62,7 @@ const config = {
6262
],
6363
],
6464
i18n: {
65-
defaultLocale: 'zh',
65+
defaultLocale: 'zh-CN',
6666
locales: ['en', 'zh-CN'],
6767
},
6868
themeConfig:

i18n/zh-CN/docusaurus-plugin-content-docs/versioned_sidebars/version-2.1-sidebars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version-2.1/tutorialSidebar": [
2+
"tutorialSidebar": [
33
{
44
"type": "autogenerated",
55
"dirName": "."

package-lock.json

Lines changed: 18111 additions & 11630 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "2.0.0-beta.9",
18-
"@docusaurus/preset-classic": "2.0.0-beta.9",
19-
"@mdx-js/react": "^1.6.21",
17+
"@docusaurus/core": "3.9.2",
18+
"@docusaurus/preset-classic": "3.9.2",
19+
"@mdx-js/react": "^3.0.0",
2020
"@svgr/webpack": "^5.5.0",
2121
"clsx": "^1.1.1",
2222
"docusaurus-plugin-dotenv": "^1.0.1",
2323
"file-loader": "^6.2.0",
2424
"prism-react-renderer": "^1.2.1",
25-
"react": "^17.0.1",
26-
"react-dom": "^17.0.1",
25+
"react": "^18.2.0",
26+
"react-dom": "^18.2.0",
2727
"url-loader": "^4.1.1",
2828
"react-slick": "^0.29.0"
2929
},

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function HomepageHeader() {
3030
arrows: false,
3131
};
3232
const { i18n } = useDocusaurusContext();
33-
const isEnglish = i18n.currentLocale !== 'zh-CN';
33+
const isEnglish = i18n.currentLocale === 'en';
3434
return (
3535
<div id='main'>
3636
<Slider {...settings}>

static/_redirects

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Redirect users from China to chinese version at /zh-CN.
2-
/ /zh-cn 302! Country=cn
2+
# / /zh-cn 302! Country=cn
33
# Also users with Chinese language should be redirected to /zh-cn
4-
/ /zh-cn 302! Language=zh
4+
# / /zh-cn 302! Language=zh

versioned_sidebars/version-1.5-sidebars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version-1.5/tutorialSidebar": [
2+
"tutorialSidebar": [
33
{
44
"type": "autogenerated",
55
"dirName": "."

versioned_sidebars/version-2.1-sidebars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version-2.1/tutorialSidebar": [
2+
"tutorialSidebar": [
33
{
44
"type": "autogenerated",
55
"dirName": "."

0 commit comments

Comments
 (0)