Skip to content

Commit 2c5e9b6

Browse files
[dev] Update doc engine to v3.9.1 and node to v20
1 parent c0eb70a commit 2c5e9b6

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Deploy To Site
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branches: [ master, next, test ]
9+
branches: [master, next, test]
1010

1111
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1212
jobs:
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: actions/setup-node@v4
2626
with:
27-
node-version: '18.19.0'
27+
node-version: "20.0"
2828

2929
- run: yarn install
3030
- run: yarn build

docusaurus.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,16 @@ const config = {
138138
url: 'https://docs.dhtmlx.com',
139139
baseUrl: '/pivot/',
140140
onBrokenLinks: 'warn',
141-
onBrokenMarkdownLinks: 'warn',
141+
// onBrokenMarkdownLinks: 'warn', // deprecated in v3.9.1
142142
favicon: 'img/favicon.ico',
143143
organizationName: 'DHTMLX', // Usually your GitHub org/user name.
144144
projectName: 'docs-pivot', // Usually your repo name.
145145
trailingSlash: true,
146+
markdown: {
147+
hooks: {
148+
onBrokenMarkdownLinks: 'warn',
149+
}
150+
},
146151
presets: [
147152
[
148153
'@docusaurus/preset-classic',

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "^3.8.1",
18-
"@docusaurus/preset-classic": "^3.8.1",
17+
"@docusaurus/core": "^3.9.1",
18+
"@docusaurus/preset-classic": "^3.9.1",
1919
"@easyops-cn/docusaurus-search-local": "^0.44.5",
2020
"@mdx-js/react": "^3.0.0",
2121
"@svgr/webpack": "^5.5.0",
@@ -29,13 +29,13 @@
2929
"url-loader": "^4.1.1"
3030
},
3131
"devDependencies": {
32-
"@docusaurus/module-type-aliases": "^3.7.0",
33-
"@docusaurus/types": "^3.7.0",
32+
"@docusaurus/module-type-aliases": "^3.9.1",
33+
"@docusaurus/types": "^3.9.1",
3434
"dhx-md-data-parser": "file:local_modules/dhx-md-data-parser",
3535
"docusaurus-plugin-sass": "^0.2.5"
3636
},
3737
"engines": {
38-
"node": ">=18.0"
38+
"node": ">=20.0"
3939
},
4040
"browserslist": {
4141
"production": [

0 commit comments

Comments
 (0)