Skip to content

Commit 7b2c668

Browse files
saitcakmakmeta-codesync[bot]
authored andcommitted
Unpin Docusaurus from 3.8.1 canary and upgrade to ^3.9.0 (meta-pytorch#3258)
Summary: - Removes the pinned `3.8.1-canary-6401` Docusaurus version and the associated TODO comment (T239136996) - Upgrades all Docusaurus packages to `^3.9.0` (resolves to 3.9.2) - Migrates deprecated `siteConfig.onBrokenMarkdownLinks` to `siteConfig.markdown.hooks.onBrokenMarkdownLinks` per Docusaurus v4 deprecation warning - Regenerates `yarn.lock` Pull Request resolved: meta-pytorch#3258 Test Plan: - [ ] Verify website builds locally with `bash scripts/build_docs.sh -b` - [ ] Verify website renders correctly with `bash scripts/build_docs.sh` <img width="2555" height="1350" alt="Screenshot 2026-04-01 at 3 42 29 PM" src="https://github.com/user-attachments/assets/ff00ecc6-81bb-4edd-b679-e3d2893c09fd" /> <img width="2541" height="1347" alt="Screenshot 2026-04-01 at 3 42 22 PM" src="https://github.com/user-attachments/assets/cecb1722-6fef-493f-995b-120a584eb7f8" /> Reviewed By: esantorella Differential Revision: D99145378 Pulled By: saitcakmak fbshipit-source-id: b63a51182bb7ab4010b35b81f473acde1ccd5518
1 parent 72d3975 commit 7b2c668

3 files changed

Lines changed: 1918 additions & 1788 deletions

File tree

website/docusaurus.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ module.exports={
2121
"https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",
2222
],
2323
"markdown": {
24-
format: "detect"
24+
format: "detect",
25+
hooks: {
26+
onBrokenMarkdownLinks: "warn"
27+
}
2528
},
2629
"stylesheets": [
2730
"/css/code_block_buttons.css",
@@ -39,7 +42,6 @@ module.exports={
3942
"wrapPagesHTML": true
4043
},
4144
"onBrokenLinks": "throw",
42-
"onBrokenMarkdownLinks": "warn",
4345
"presets": [
4446
[
4547
"@docusaurus/preset-classic",

website/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,21 @@
1111
"write-heading-ids": "docusaurus write-heading-ids"
1212
},
1313
"devDependencies": {
14-
"@docusaurus/module-type-aliases": "3.8.1-canary-6401",
15-
"@docusaurus/types": "3.8.1-canary-6401"
14+
"@docusaurus/module-type-aliases": "^3.9.0",
15+
"@docusaurus/types": "^3.9.0"
1616
},
17-
"//": "TODO: T239136996 Unpin Docusaurus canary after 3.8.2 or 3.9 is released",
1817
"dependencies": {
19-
"@docusaurus/core": "^3.8.1-canary-6401",
20-
"@docusaurus/preset-classic": "^3.8.1-canary-6401",
18+
"@docusaurus/core": "^3.9.0",
19+
"@docusaurus/preset-classic": "^3.9.0",
2120
"bl": "^6.0.0",
2221
"clsx": "^1.1.1",
22+
"on-headers": "^1.1.0",
2323
"plotly.js": "^2.8.1",
2424
"react": "^18.3.1",
2525
"react-dom": "^18.3.1",
2626
"react-plotly.js": "^2.5.1",
2727
"rehype-katex": "7",
2828
"remark-math": "6",
29-
"on-headers": "^1.1.0",
3029
"webpack-dev-server": "^5.2.1"
3130
}
3231
}

0 commit comments

Comments
 (0)