Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
tagline: 'Open Source Oracle compatible PostgreSQL',
url: 'https://ivorySQL.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenLinks: 'warn', // 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'IvorySQL', // Usually your GitHub org/user name.
Expand Down Expand Up @@ -62,7 +62,7 @@ const config = {
],
],
i18n: {
defaultLocale: 'zh',
defaultLocale: 'zh-CN',
locales: ['en', 'zh-CN'],
},
themeConfig:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version-2.1/tutorialSidebar": [
"tutorialSidebar": [
{
"type": "autogenerated",
"dirName": "."
Expand Down
29,741 changes: 18,111 additions & 11,630 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.9",
"@docusaurus/preset-classic": "2.0.0-beta.9",
"@mdx-js/react": "^1.6.21",
"@docusaurus/core": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@mdx-js/react": "^3.0.0",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"docusaurus-plugin-dotenv": "^1.0.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"url-loader": "^4.1.1",
"react-slick": "^0.29.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function HomepageHeader() {
arrows: false,
};
const { i18n } = useDocusaurusContext();
const isEnglish = i18n.currentLocale !== 'zh-CN';
const isEnglish = i18n.currentLocale === 'en';
return (
<div id='main'>
<Slider {...settings}>
Expand Down
4 changes: 2 additions & 2 deletions static/_redirects
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Redirect users from China to chinese version at /zh-CN.
/ /zh-cn 302! Country=cn
# / /zh-cn 302! Country=cn
# Also users with Chinese language should be redirected to /zh-cn
/ /zh-cn 302! Language=zh
# / /zh-cn 302! Language=zh
2 changes: 1 addition & 1 deletion versioned_sidebars/version-1.5-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version-1.5/tutorialSidebar": [
"tutorialSidebar": [
{
"type": "autogenerated",
"dirName": "."
Expand Down
2 changes: 1 addition & 1 deletion versioned_sidebars/version-2.1-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version-2.1/tutorialSidebar": [
"tutorialSidebar": [
{
"type": "autogenerated",
"dirName": "."
Expand Down