Skip to content

Commit 020c1fe

Browse files
Merge pull request #30 from DHTMLX/next
[dev] Update doc engine to v3.9.1 and node to v20
2 parents 14f733f + b5684cb commit 020c1fe

File tree

3 files changed

+37
-11
lines changed

3 files changed

+37
-11
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
name: Deploy To Site
44

5-
# Controls when the action will run.
5+
# Controls when the action will run.
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branches: [ master, next ]
9+
branches: [master, next]
1010

1111
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1212
jobs:
@@ -24,13 +24,13 @@ 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
3131

3232
- uses: docker/setup-buildx-action@v1
33-
- uses: docker/login-action@v1
33+
- uses: docker/login-action@v1
3434
with:
3535
username: ${{ secrets.REGISTRY_USERNAME }}
3636
password: ${{ secrets.REGISTRY_TOKEN }}
@@ -41,4 +41,25 @@ jobs:
4141
push: true
4242
tags: registry.webix.io/spreadsheet-docs-alt:${{ steps.vars.outputs.short_ref }}
4343

44-
- run: curl "https://docs.dhtmlx.com/hooks/restart-docker?token=${{ secrets.RESTART_TOKEN }}&project=docs-spreadsheet-alt-${{ steps.vars.outputs.short_ref }}"
44+
- run: curl "https://docs.dhtmlx.com/hooks/restart-docker?token=${{ secrets.RESTART_TOKEN }}&project=docs-spreadsheet-alt-${{ steps.vars.outputs.short_ref }}"
45+
46+
algolia-crawl:
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- name: Checkout Repo
51+
uses: actions/checkout@v4
52+
53+
- name: Wait for Deployment
54+
run: sleep 30
55+
56+
- name: Algolia Crawler Creation and Crawl
57+
uses: algolia/[email protected]
58+
with:
59+
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
60+
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
61+
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
62+
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
63+
site-url: "https://docs.dhtmlx.com/spreadsheet/"
64+
crawler-name: "Spreadsheet Docs Crawler"
65+
override-config: true

docusaurus.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,17 @@ module.exports = {
130130
url: 'https://docs.dhtmlx.com',
131131
baseUrl: '/spreadsheet/',
132132
onBrokenLinks: 'warn',
133-
onBrokenMarkdownLinks: 'warn',
133+
// onBrokenMarkdownLinks: 'warn', // deprecated in v3.9.1
134134
onBrokenAnchors: 'warn',
135135
favicon: 'img/favicon.ico',
136136
organizationName: 'DHTMLX', // Usually your GitHub org/user name
137137
projectName: 'docs-spreadsheet', // Usually your repo name
138138
trailingSlash: true,
139+
markdown: {
140+
hooks: {
141+
onBrokenMarkdownLinks: 'warn',
142+
}
143+
},
139144
themeConfig: {
140145
algolia: {
141146
// This is a read-only, search-only key served directly by the front-end, managed by Algolia via their

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"normalizeLink": "cd plugins && node samplesLinksNormalize.js"
1414
},
1515
"dependencies": {
16-
"@docusaurus/core": "^3.7.0",
17-
"@docusaurus/preset-classic": "^3.7.0",
16+
"@docusaurus/core": "^3.9.1",
17+
"@docusaurus/preset-classic": "^3.9.1",
1818
"@mdx-js/react": "^3.0.0",
1919
"clsx": "^1.1.1",
2020
"docusaurus-gtm-plugin": "^0.0.2",
@@ -36,13 +36,13 @@
3636
]
3737
},
3838
"devDependencies": {
39-
"@docusaurus/module-type-aliases": "^3.7.0",
40-
"@docusaurus/types": "^3.7.0",
39+
"@docusaurus/module-type-aliases": "^3.9.1",
40+
"@docusaurus/types": "^3.9.1",
4141
"dhx-md-data-parser": "file:local_modules/dhx-md-data-parser",
4242
"docusaurus-plugin-sass": "^0.2.5",
4343
"webpack-cli": "^4.4.0"
4444
},
4545
"engines": {
46-
"node": ">=18.0"
46+
"node": ">=20.0"
4747
}
4848
}

0 commit comments

Comments
 (0)