Skip to content

Commit 74e5966

Browse files
Update deploy_website.yml and docusaurus.config.js for Docusaurus compatibility (#3339)
* Initial plan * Bump Node.js to 22, migrate onBrokenMarkdownLinks, fix duplicate redirect Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
1 parent 188b0bb commit 74e5966

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/deploy_website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Node
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: 20
30+
node-version: 22
3131

3232
- name: Get yarn cache
3333
id: yarn-cache

Website/docusaurus.config.js

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

2525
onBrokenLinks: "throw",
2626
onBrokenAnchors: "throw",
27-
onBrokenMarkdownLinks: "throw",
27+
28+
markdown: {
29+
hooks: {
30+
onBrokenMarkdownLinks: "throw",
31+
},
32+
},
2833

2934
i18n: {
3035
defaultLocale: "en",
@@ -175,7 +180,6 @@ const config = {
175180
from: [
176181
"/docs/changelog/2025-6-13-0",
177182
"/docs/changelog/2025-7-9-0",
178-
"/docs/changelog/2025-6-13-0",
179183
],
180184
to: "/docs/changelog/2025-8-10-0",
181185
},

0 commit comments

Comments
 (0)