Skip to content

Commit 47b4bbf

Browse files
authored
Update Docusaurus configuration and dependencies (#110)
* Update Docusaurus configuration and dependencies - Migrate `onBrokenMarkdownLinks` setting from the main config to the markdown hooks in `docusaurus.config.js` for improved link handling. - Upgrade Docusaurus packages in `package.json` and `package-lock.json` from version 3.7.0 to 3.9.2 to ensure compatibility with the latest features and fixes. Signed-off-by: Pete Cheslock <[email protected]> * Update Node.js version in workflow files to 20.18.1 Signed-off-by: Pete Cheslock <[email protected]> --------- Signed-off-by: Pete Cheslock <[email protected]>
1 parent 3857cac commit 47b4bbf

File tree

6 files changed

+1499
-1443
lines changed

6 files changed

+1499
-1443
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 18
29+
node-version: 20.18.1
3030
cache: npm
3131

3232
- name: Install dependencies

.github/workflows/link-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '18'
21+
node-version: 20.18.1
2222
cache: 'npm'
2323

2424
- name: Install dependencies

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 0
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: 20.18.1
2020
cache: npm
2121

2222
- name: Install dependencies

docusaurus.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const config = {
4242

4343
trailingSlash: false,
4444
onBrokenLinks: "warn",
45-
onBrokenMarkdownLinks: "warn",
4645

4746
// Even if you don't use internationalization, you can use this field to set
4847
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -113,7 +112,12 @@ const config = {
113112
// Add any other plugins you need
114113
],
115114

116-
markdown: { mermaid: true },
115+
markdown: {
116+
mermaid: true,
117+
hooks: {
118+
onBrokenMarkdownLinks: "warn"
119+
}
120+
},
117121
themes: ["@docusaurus/theme-mermaid"],
118122

119123
themeConfig:

0 commit comments

Comments
 (0)