Skip to content

Commit

Permalink
docs: Upgrade dependencies
Browse files Browse the repository at this point in the history
Summary:
Upgrade to docusaurus3 as well as some other packages

Interesting changes:
 1. Had to remove the explicit search plugin. This is because the fb template already adds it and docusaurus started throwing errors for that
 2. Had to explicitly opt out of mdx

Other than that, pretty straightforward

Reviewed By: iguridi

Differential Revision: D61778029

fbshipit-source-id: 752be8a41f759529323116e3f3a34e8e563d0768
  • Loading branch information
JakobDegen authored and facebook-github-bot committed Oct 23, 2024
1 parent ca33c8c commit 4a2f837
Show file tree
Hide file tree
Showing 4 changed files with 3,400 additions and 2,990 deletions.
10 changes: 6 additions & 4 deletions docs/about/benefits/compared_to_buck1.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ include Workplace posts and their full context.
## Benefits for end users

> _"`buck2 build SOME_TARGET_I_ALREADY_BUILT_BEFORE` is basically instantaneous
> and is a super delightful experience. 🙂"_ - End user experience
> <FbInternalOnly>
> ([source](https://fb.prod.workplace.com/groups/buck2users/posts/3030704467185914))</FbInternalOnly>
> and is a super delightful experience. 🙂"_ - End user
> experience<FbInternalOnly>
> ([source](https://fb.prod.workplace.com/groups/buck2users/posts/3030704467185914))
> </FbInternalOnly>
> _"Buck2 is largely faster and more memory efficient than buck1, and where I’ve
> seen counter-examples, the buck2 team quickly optimizes and fixes that.🙂"_ -
> Software Engineer feedback<FbInternalOnly>
> ([source](https://fb.prod.workplace.com/groups/devx.ci.bffs/posts/616830502778501))</FbInternalOnly>
> ([source](https://fb.prod.workplace.com/groups/devx.ci.bffs/posts/616830502778501))
> </FbInternalOnly>
For people who use Buck on a daily basis (such as using Buck build as part of
their development inner loop), switching to Buck2 provides the following
Expand Down
9 changes: 5 additions & 4 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ const { fbContent, isInternal } = require('docusaurus-plugin-internaldocs-fb/int
],

plugins: [
[require.resolve('docusaurus-lunr-search'), {
excludeRoutes: [
]
}],
[
'@docusaurus/plugin-google-gtag',
{
Expand Down Expand Up @@ -216,4 +212,9 @@ const { fbContent, isInternal } = require('docusaurus-plugin-internaldocs-fb/int
darkTheme: darkCodeTheme,
},
}),

markdown: ({
// Use mdx for `.mdx` files and commonmark for `.md` files
format: 'detect',
}),
});
15 changes: 7 additions & 8 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@
},
"dependencies": {
"@babel/traverse": "^7.23.2",
"@docusaurus/core": "2.3.1",
"@docusaurus/plugin-client-redirects": "2.3.1",
"@docusaurus/plugin-google-gtag": "^2.3.1",
"@docusaurus/preset-classic": "2.3.1",
"@docusaurus/core": "3.5.1",
"@docusaurus/plugin-client-redirects": "3.5.1",
"@docusaurus/plugin-google-gtag": "3.5.1",
"@docusaurus/preset-classic": "3.5.1",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"docusaurus-lunr-search": "^2.2.0",
"docusaurus-plugin-internaldocs-fb": "1.8.0",
"docusaurus-plugin-internaldocs-fb": "^1.18.4",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"url-loader": "^4.1.1"
},
"browserslist": {
Expand Down
Loading

0 comments on commit 4a2f837

Please sign in to comment.