Skip to content

Commit ba6dd3f

Browse files
docs: Bump t-rex to stable with Docusaurus 3.7 (#284)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Type of change Ci wont work until t-rex is bumped - [x] Prepare docs - [x] Bump `@swmansion/t-rex-ui` to `1.0.0` - [x] Add bash to supported prism langs ### Tested on Web, please also run your docs and test if everything looks okay.
1 parent 9e69629 commit ba6dd3f

File tree

7 files changed

+7468
-5424
lines changed

7 files changed

+7468
-5424
lines changed

docs/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const config = {
9292
'All trademarks and copyrights belong to their respective owners.',
9393
},
9494
prism: {
95+
additionalLanguages: ['bash'],
9596
theme: lightCodeTheme,
9697
darkTheme: darkCodeTheme,
9798
},

docs/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.4.3",
19-
"@docusaurus/plugin-sitemap": "2.4.3",
20-
"@docusaurus/preset-classic": "2.4.3",
21-
"@mdx-js/react": "^1.6.22",
22-
"@swmansion/t-rex-ui": "^0.0.14",
23-
"clsx": "^1.2.1",
24-
"prism-react-renderer": "^1.3.5",
25-
"react": "^17.0.2",
26-
"react-dom": "^17.0.2"
18+
"@docusaurus/core": "3.7.0",
19+
"@docusaurus/plugin-sitemap": "3.7.0",
20+
"@docusaurus/preset-classic": "3.7.0",
21+
"@mdx-js/react": "^3.0.0",
22+
"@swmansion/t-rex-ui": "1.0.0",
23+
"clsx": "^2.1.0",
24+
"prism-react-renderer": "^2.1.0",
25+
"react": "^18.2.0",
26+
"react-dom": "^18.2.0"
2727
},
2828
"devDependencies": {
29-
"@docusaurus/module-type-aliases": "2.4.3",
30-
"@tsconfig/docusaurus": "^1.0.5",
31-
"typescript": "^4.7.4"
29+
"@docusaurus/module-type-aliases": "3.7.0",
30+
"@docusaurus/tsconfig": "3.7.0",
31+
"typescript": "~5.2.2"
3232
},
3333
"browserslist": {
3434
"production": [
@@ -43,6 +43,6 @@
4343
]
4444
},
4545
"engines": {
46-
"node": ">=16.14"
46+
"node": ">=18.0"
4747
}
4848
}

docs/src/theme/CodeBlock/highlighting-dark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const darkTheme = require('prism-react-renderer/themes/github');
1+
const darkTheme = require('prism-react-renderer').themes.github;
22

33
module.exports = {
44
...darkTheme,

docs/src/theme/CodeBlock/highlighting-light.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const lightTheme = require('prism-react-renderer/themes/github');
1+
const lightTheme = require('prism-react-renderer').themes.github;
22

33
module.exports = {
44
...lightTheme,

docs/src/theme/MDXComponents/Details.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const MDXDetails = (props) => {
66
// Split summary item from the rest to pass it as a separate prop to the
77
// Details theme component
88
const summary = items.find(
9-
(item) => React.isValidElement(item) && item.props?.mdxType === 'summary'
9+
(item) => React.isValidElement(item) && item.type === 'summary'
1010
);
1111

1212
const children = <>{items.filter((item) => item !== summary)}</>;

docs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// This file is not used in compilation. It is here just for a nice editor experience.
3-
"extends": "@tsconfig/docusaurus/tsconfig.json",
3+
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
55
"baseUrl": "."
66
}

0 commit comments

Comments
 (0)