Skip to content

Commit b222792

Browse files
chore: upgrade docusaurus (#1552)
* chore: upgrade docusaurus * chore: improve color constrast on website in light mode
1 parent 21254b0 commit b222792

File tree

4 files changed

+4530
-1890
lines changed

4 files changed

+4530
-1890
lines changed

website/docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ const siteConfig = {
8181
},
8282
image: 'img/owl.png',
8383
prism: {
84-
theme: require('prism-react-renderer/themes/github'),
85-
darkTheme: require('prism-react-renderer/themes/dracula'),
84+
theme: require('prism-react-renderer').themes.github,
85+
darkTheme: require('prism-react-renderer').themes.dracula,
8686
defaultLanguage: 'jsx',
8787
},
8888
algolia: {

website/package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@
99
"deploy": "docusaurus deploy"
1010
},
1111
"dependencies": {
12-
"@babel/core": "^7.11.1",
13-
"@docusaurus/core": "^2.3.1",
14-
"@docusaurus/preset-classic": "^2.3.1",
12+
"@docusaurus/core": "3.0.0",
13+
"@docusaurus/preset-classic": "3.0.0",
14+
"@mdx-js/react": "^3.0.0",
1515
"classnames": "^2.2.6",
16-
"react": "^17.0.2",
17-
"react-dom": "^17.0.2"
16+
"prism-react-renderer": "^2.1.0",
17+
"react": "^18.2.0",
18+
"react-dom": "^18.2.0"
19+
},
20+
"devDependencies": {
21+
"@docusaurus/module-type-aliases": "3.0.0",
22+
"@docusaurus/types": "3.0.0"
23+
},
24+
"engines": {
25+
"node": ">=18.0"
1826
},
1927
"browserslist": {
2028
"production": [

website/src/css/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
:root {
2+
--ifm-color-primary: #9E6942;
3+
--ifm-color-primary-dark: #b67a50;
4+
--ifm-color-primary-darker: #af7349;
5+
--ifm-color-primary-darkest: #905f3c;
6+
--ifm-color-primary-light: #c89a7a;
7+
--ifm-color-primary-lighter: #cca284;
8+
--ifm-color-primary-lightest: #d9b9a3;
9+
}
10+
11+
/* For readability concerns, you should choose a lighter palette in dark mode. */
12+
[data-theme='dark'] {
213
--ifm-color-primary: #bf8a65;
314
--ifm-color-primary-dark: #b67a50;
415
--ifm-color-primary-darker: #af7349;

0 commit comments

Comments
 (0)