Skip to content

Commit e1afc9a

Browse files
CristianLarafacebook-github-bot
authored andcommitted
Upgrade Docusaurus to 3.8.1-canary-6401 (#3021)
Summary: Pull Request resolved: #3021 X-link: facebook/Ax#4340 We recently noticed that the copy feature on our website codeblocks were excluding indentation. There's a github issue on the docusaurus repo tracking this facebook/docusaurus#11414 with a fix that was just merged today facebook/docusaurus#11422. To avoid waiting until their next release we have two options: 1. update our website package.json to use a docusaurus canary until they release 3.9 2. swizzle the relevant docusaurus code and fix it ourselves using their well documented api. There's an example of another project replacing this same logic that we can use. Though it will become unnecessary once docusaurus 3.9 releases We're going with option (1) here and upgrading Docusaurus to version 3.8.1-canary-6401 across Ax and BoTorch. The docusaurus team releases canaries regularly and are what they use to build their website. https://docusaurus.io/community/canary Reviewed By: mpolson64 Differential Revision: D83068096 fbshipit-source-id: d88084af7f58803d798e7f4348e028053e1f3012
1 parent d0457f7 commit e1afc9a

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

website/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
"write-heading-ids": "docusaurus write-heading-ids"
1212
},
1313
"devDependencies": {
14-
"@docusaurus/module-type-aliases": "3.8.1",
15-
"@docusaurus/types": "3.8.1"
14+
"@docusaurus/module-type-aliases": "3.8.1-canary-6401",
15+
"@docusaurus/types": "3.8.1-canary-6401"
1616
},
17+
"//": "TODO: T239136996 Unpin Docusaurus canary after 3.8.2 or 3.9 is released",
1718
"dependencies": {
18-
"@docusaurus/core": "^3.8.1",
19-
"@docusaurus/preset-classic": "^3.8.1",
19+
"@docusaurus/core": "^3.8.1-canary-6401",
20+
"@docusaurus/preset-classic": "^3.8.1-canary-6401",
2021
"bl": "^6.0.0",
2122
"clsx": "^1.1.1",
2223
"plotly.js": "^2.8.1",

website/yarn.lock

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@
14851485
webpack "^5.95.0"
14861486
webpackbar "^6.0.1"
14871487

1488-
"@docusaurus/[email protected]", "@docusaurus/core@^3.8.1":
1488+
"@docusaurus/[email protected]", "@docusaurus/core@^3.8.1-canary-6401":
14891489
version "3.8.1"
14901490
resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-3.8.1.tgz#c22e47c16a22cb7d245306c64bc54083838ff3db"
14911491
integrity sha512-ENB01IyQSqI2FLtOzqSI3qxG2B/jP4gQPahl2C3XReiLebcVh5B5cB9KYFvdoOqOWPyr5gXK4sjgTKv7peXCrA==
@@ -1594,6 +1594,19 @@
15941594
react-helmet-async "npm:@slorber/[email protected]"
15951595
react-loadable "npm:@docusaurus/[email protected]"
15961596

1597+
"@docusaurus/[email protected]":
1598+
version "3.8.1-canary-6401"
1599+
resolved "https://registry.yarnpkg.com/@docusaurus/module-type-aliases/-/module-type-aliases-3.8.1-canary-6401.tgz#7a7be188191a591ced856cfd947bfe429d3b4385"
1600+
integrity sha512-Umdri8Qo2Wf9+K+oPVSdzBF7JhCEhwsILtaroCNJSkLocV16anAMRh8Jtw4d9s3h4nxL4g9dOyK/Jk0uPrk+tg==
1601+
dependencies:
1602+
"@docusaurus/types" "3.8.1-canary-6401"
1603+
"@types/history" "^4.7.11"
1604+
"@types/react" "*"
1605+
"@types/react-router-config" "*"
1606+
"@types/react-router-dom" "*"
1607+
react-helmet-async "npm:@slorber/[email protected]"
1608+
react-loadable "npm:@docusaurus/[email protected]"
1609+
15971610
"@docusaurus/[email protected]":
15981611
version "3.8.1"
15991612
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.8.1.tgz#88d842b562b04cf59df900d9f6984b086f821525"
@@ -1739,7 +1752,7 @@
17391752
tslib "^2.6.0"
17401753
webpack "^5.88.1"
17411754

1742-
"@docusaurus/preset-classic@^3.8.1":
1755+
"@docusaurus/preset-classic@^3.8.1-canary-6401":
17431756
version "3.8.1"
17441757
resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-3.8.1.tgz#bb79fd12f3211363720c569a526c7e24d3aa966b"
17451758
integrity sha512-yJSjYNHXD8POMGc2mKQuj3ApPrN+eG0rO1UPgSx7jySpYU+n4WjBikbrA2ue5ad9A7aouEtMWUoiSRXTH/g7KQ==
@@ -1855,6 +1868,22 @@
18551868
webpack "^5.95.0"
18561869
webpack-merge "^5.9.0"
18571870

1871+
"@docusaurus/[email protected]":
1872+
version "3.8.1-canary-6401"
1873+
resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-3.8.1-canary-6401.tgz#4109898ca79c7ad5f9a049ba383b71b431d59397"
1874+
integrity sha512-igR/CgXfL8Fgk4so9uuMPX021bX1hdmr9EGt4RqlNYt5FcruzxKcsIWcnKYxQlh4sJOgUaG8iq6qcJUeGvWsOA==
1875+
dependencies:
1876+
"@mdx-js/mdx" "^3.0.0"
1877+
"@types/history" "^4.7.11"
1878+
"@types/mdast" "^4.0.2"
1879+
"@types/react" "*"
1880+
commander "^5.1.0"
1881+
joi "^17.9.2"
1882+
react-helmet-async "npm:@slorber/[email protected]"
1883+
utility-types "^3.10.0"
1884+
webpack "^5.95.0"
1885+
webpack-merge "^5.9.0"
1886+
18581887
"@docusaurus/[email protected]":
18591888
version "3.8.1"
18601889
resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-3.8.1.tgz#c369b8c3041afb7dcd595d4172beb1cc1015c85f"

0 commit comments

Comments
 (0)