Skip to content

Commit 8c15775

Browse files
committed
build: upgrade deps for documentation site
1 parent d912bf1 commit 8c15775

9 files changed

+18315
-13583
lines changed

website/docusaurus.config.js renamed to website/docusaurus.config.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
const simplePlantUML = require('@akebifiky/remark-simple-plantuml')
1+
import simplePlantUML from '@akebifiky/remark-simple-plantuml'
2+
import type { Config } from '@docusaurus/types'
3+
import { themes } from 'prism-react-renderer'
24

3-
module.exports = {
5+
const config: Config = {
46
title: 'ts-jest',
57
tagline: 'A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.',
68
url: 'https://kulshekhar.github.io',
@@ -84,7 +86,7 @@ module.exports = {
8486
docs: {
8587
showLastUpdateAuthor: true,
8688
showLastUpdateTime: true,
87-
sidebarPath: require.resolve('./sidebars.js'),
89+
sidebarPath: './sidebars.js',
8890
editUrl: 'https://github.com/kulshekhar/ts-jest/edit/main/website',
8991
remarkPlugins: [
9092
simplePlantUML,
@@ -115,8 +117,8 @@ module.exports = {
115117
'⭐️ If you like ts-jest, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/kulshekhar/ts-jest">GitHub</a>! ⭐️',
116118
},
117119
prism: {
118-
theme: require('prism-react-renderer/themes/github'),
119-
darkTheme: require('prism-react-renderer/themes/dracula'),
120+
theme: themes.github,
121+
darkTheme: themes.dracula,
120122
},
121123
navbar: {
122124
hideOnScroll: true,
@@ -203,3 +205,5 @@ module.exports = {
203205
},
204206
},
205207
}
208+
209+
export default config

website/package-lock.json

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

website/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@
1313
},
1414
"dependencies": {
1515
"@akebifiky/remark-simple-plantuml": "^1.0.2",
16-
"@docusaurus/core": "^2.4.3",
17-
"@docusaurus/plugin-ideal-image": "^2.4.3",
18-
"@docusaurus/plugin-pwa": "^2.4.3",
19-
"@docusaurus/preset-classic": "^2.4.3",
20-
"@docusaurus/remark-plugin-npm2yarn": "^2.4.3",
21-
"@mdx-js/react": "^1.6.22",
22-
"clsx": "^1.2.1",
23-
"docusaurus-remark-plugin-tab-blocks": "^1.3.1",
24-
"latest-version": "^7.0.0",
25-
"react": "^16.14.0",
26-
"react-dom": "^16.14.0"
16+
"@docusaurus/core": "^3.3.2",
17+
"@docusaurus/plugin-ideal-image": "^3.3.2",
18+
"@docusaurus/plugin-pwa": "^3.3.2",
19+
"@docusaurus/preset-classic": "^3.3.2",
20+
"@docusaurus/remark-plugin-npm2yarn": "^3.3.2",
21+
"@mdx-js/react": "^3.0.1",
22+
"clsx": "^2.1.1",
23+
"docusaurus-remark-plugin-tab-blocks": "^3.1.0",
24+
"latest-version": "^9.0.0",
25+
"react": "^18.3.1",
26+
"react-dom": "^18.3.1"
2727
},
2828
"devDependencies": {
29-
"@babel/core": "^7.24.5",
30-
"@docusaurus/module-type-aliases": "^2.4.3",
31-
"@tsconfig/docusaurus": "^1.0.7",
32-
"@types/react": "^16.14.24",
33-
"typescript": "~5.1.3"
29+
"@docusaurus/module-type-aliases": "^3.3.2",
30+
"@docusaurus/tsconfig": "^3.3.2",
31+
"@docusaurus/types": "^3.3.2",
32+
"@types/react": "^18.3.3",
33+
"typescript": "~5.4.5"
3434
},
3535
"browserslist": {
3636
"production": [

website/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"extends": "@tsconfig/docusaurus/tsconfig.json",
2+
"extends": "@docusaurus/tsconfig",
33
"compilerOptions": {
4-
"skipLibCheck": true,
5-
"resolveJsonModule": true
4+
"baseUrl": "."
65
}
76
}

website/versioned_sidebars/version-26.5-sidebars.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"items": [
88
{
99
"type": "doc",
10-
"id": "version-26.5/introduction"
10+
"id": "introduction"
1111
},
1212
{
1313
"type": "doc",
14-
"id": "version-26.5/processing"
14+
"id": "processing"
1515
},
1616
{
1717
"type": "doc",
18-
"id": "version-26.5/contributing"
18+
"id": "contributing"
1919
}
2020
]
2121
},
@@ -26,23 +26,23 @@
2626
"items": [
2727
{
2828
"type": "doc",
29-
"id": "version-26.5/getting-started/installation"
29+
"id": "getting-started/installation"
3030
},
3131
{
3232
"type": "doc",
33-
"id": "version-26.5/getting-started/presets"
33+
"id": "getting-started/presets"
3434
},
3535
{
3636
"type": "doc",
37-
"id": "version-26.5/getting-started/options"
37+
"id": "getting-started/options"
3838
},
3939
{
4040
"type": "doc",
41-
"id": "version-26.5/getting-started/paths-mapping"
41+
"id": "getting-started/paths-mapping"
4242
},
4343
{
4444
"type": "doc",
45-
"id": "version-26.5/getting-started/version-checking"
45+
"id": "getting-started/version-checking"
4646
}
4747
]
4848
},
@@ -53,41 +53,41 @@
5353
"items": [
5454
{
5555
"type": "doc",
56-
"id": "version-26.5/guides/esm-support"
56+
"id": "guides/esm-support"
5757
},
5858
{
5959
"type": "doc",
60-
"id": "version-26.5/guides/mock-es6-class"
60+
"id": "guides/mock-es6-class"
6161
},
6262
{
6363
"type": "doc",
64-
"id": "version-26.5/guides/react-native"
64+
"id": "guides/react-native"
6565
},
6666
{
6767
"type": "doc",
68-
"id": "version-26.5/guides/test-helpers"
68+
"id": "guides/test-helpers"
6969
},
7070
{
7171
"type": "doc",
72-
"id": "version-26.5/guides/troubleshooting"
72+
"id": "guides/troubleshooting"
7373
},
7474
{
7575
"type": "doc",
76-
"id": "version-26.5/guides/using-with-monorepo"
76+
"id": "guides/using-with-monorepo"
7777
}
7878
]
7979
},
8080
{
8181
"type": "doc",
82-
"id": "version-26.5/babel7-or-ts"
82+
"id": "babel7-or-ts"
8383
},
8484
{
8585
"type": "doc",
86-
"id": "version-26.5/migration"
86+
"id": "migration"
8787
},
8888
{
8989
"type": "doc",
90-
"id": "version-26.5/debugging"
90+
"id": "debugging"
9191
}
9292
]
9393
}

website/versioned_sidebars/version-27.0-sidebars.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"items": [
88
{
99
"type": "doc",
10-
"id": "version-27.0/introduction"
10+
"id": "introduction"
1111
},
1212
{
1313
"type": "doc",
14-
"id": "version-27.0/processing"
14+
"id": "processing"
1515
},
1616
{
1717
"type": "doc",
18-
"id": "version-27.0/contributing"
18+
"id": "contributing"
1919
}
2020
]
2121
},
@@ -26,23 +26,23 @@
2626
"items": [
2727
{
2828
"type": "doc",
29-
"id": "version-27.0/getting-started/installation"
29+
"id": "getting-started/installation"
3030
},
3131
{
3232
"type": "doc",
33-
"id": "version-27.0/getting-started/presets"
33+
"id": "getting-started/presets"
3434
},
3535
{
3636
"type": "doc",
37-
"id": "version-27.0/getting-started/options"
37+
"id": "getting-started/options"
3838
},
3939
{
4040
"type": "doc",
41-
"id": "version-27.0/getting-started/paths-mapping"
41+
"id": "getting-started/paths-mapping"
4242
},
4343
{
4444
"type": "doc",
45-
"id": "version-27.0/getting-started/version-checking"
45+
"id": "getting-started/version-checking"
4646
}
4747
]
4848
},
@@ -53,41 +53,41 @@
5353
"items": [
5454
{
5555
"type": "doc",
56-
"id": "version-27.0/guides/esm-support"
56+
"id": "guides/esm-support"
5757
},
5858
{
5959
"type": "doc",
60-
"id": "version-27.0/guides/mock-es6-class"
60+
"id": "guides/mock-es6-class"
6161
},
6262
{
6363
"type": "doc",
64-
"id": "version-27.0/guides/react-native"
64+
"id": "guides/react-native"
6565
},
6666
{
6767
"type": "doc",
68-
"id": "version-27.0/guides/test-helpers"
68+
"id": "guides/test-helpers"
6969
},
7070
{
7171
"type": "doc",
72-
"id": "version-27.0/guides/troubleshooting"
72+
"id": "guides/troubleshooting"
7373
},
7474
{
7575
"type": "doc",
76-
"id": "version-27.0/guides/using-with-monorepo"
76+
"id": "guides/using-with-monorepo"
7777
}
7878
]
7979
},
8080
{
8181
"type": "doc",
82-
"id": "version-27.0/babel7-or-ts"
82+
"id": "babel7-or-ts"
8383
},
8484
{
8585
"type": "doc",
86-
"id": "version-27.0/migration"
86+
"id": "migration"
8787
},
8888
{
8989
"type": "doc",
90-
"id": "version-27.0/debugging"
90+
"id": "debugging"
9191
}
9292
]
9393
}

website/versioned_sidebars/version-27.1-sidebars.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"items": [
88
{
99
"type": "doc",
10-
"id": "version-27.1/introduction"
10+
"id": "introduction"
1111
},
1212
{
1313
"type": "doc",
14-
"id": "version-27.1/processing"
14+
"id": "processing"
1515
},
1616
{
1717
"type": "doc",
18-
"id": "version-27.1/contributing"
18+
"id": "contributing"
1919
}
2020
]
2121
},
@@ -26,23 +26,23 @@
2626
"items": [
2727
{
2828
"type": "doc",
29-
"id": "version-27.1/getting-started/installation"
29+
"id": "getting-started/installation"
3030
},
3131
{
3232
"type": "doc",
33-
"id": "version-27.1/getting-started/presets"
33+
"id": "getting-started/presets"
3434
},
3535
{
3636
"type": "doc",
37-
"id": "version-27.1/getting-started/options"
37+
"id": "getting-started/options"
3838
},
3939
{
4040
"type": "doc",
41-
"id": "version-27.1/getting-started/paths-mapping"
41+
"id": "getting-started/paths-mapping"
4242
},
4343
{
4444
"type": "doc",
45-
"id": "version-27.1/getting-started/version-checking"
45+
"id": "getting-started/version-checking"
4646
}
4747
]
4848
},
@@ -53,41 +53,41 @@
5353
"items": [
5454
{
5555
"type": "doc",
56-
"id": "version-27.1/guides/esm-support"
56+
"id": "guides/esm-support"
5757
},
5858
{
5959
"type": "doc",
60-
"id": "version-27.1/guides/mock-es6-class"
60+
"id": "guides/mock-es6-class"
6161
},
6262
{
6363
"type": "doc",
64-
"id": "version-27.1/guides/react-native"
64+
"id": "guides/react-native"
6565
},
6666
{
6767
"type": "doc",
68-
"id": "version-27.1/guides/test-helpers"
68+
"id": "guides/test-helpers"
6969
},
7070
{
7171
"type": "doc",
72-
"id": "version-27.1/guides/troubleshooting"
72+
"id": "guides/troubleshooting"
7373
},
7474
{
7575
"type": "doc",
76-
"id": "version-27.1/guides/using-with-monorepo"
76+
"id": "guides/using-with-monorepo"
7777
}
7878
]
7979
},
8080
{
8181
"type": "doc",
82-
"id": "version-27.1/babel7-or-ts"
82+
"id": "babel7-or-ts"
8383
},
8484
{
8585
"type": "doc",
86-
"id": "version-27.1/migration"
86+
"id": "migration"
8787
},
8888
{
8989
"type": "doc",
90-
"id": "version-27.1/debugging"
90+
"id": "debugging"
9191
}
9292
]
9393
}

0 commit comments

Comments
 (0)