-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
refactor: new @docusaurus/plugin-content-docs/client interface #6287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
✔️ [V2] 🔨 Explore the source changes: d30641f 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61d860a1ff7b0f000810fb84 😎 Browse the preview: https://deploy-preview-6287--docusaurus-2.netlify.app |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-6287--docusaurus-2.netlify.app/ |
|
Size Change: +731 B (0%) Total Size: 675 kB
ℹ️ View Unchanged
|
| '@theme/(.*)': '@docusaurus/theme-classic/src/theme/$1', | ||
| '@site/(.*)': 'website/$1', | ||
|
|
||
| // TODO why Jest can't figure node package entry points? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…arch#1387) Summary: ### Motivation Fix vulnerability described in ai/nanoid#328 Note `docusaurus-plugin-internaldocs-fb` doesn't pin its hard docusaurus version dependency and facebook/docusaurus#6287 introduced a breaking change, so we need to pin docusaurus version to keep the build green. ### Changes proposed Upgrades pinned JS dep versions from running `yarn upgrade` Pull Request resolved: facebookresearch#1387 Test Plan: `yarn build` ### Types of changes - [x] Docs change / refactoring / dependency upgrade - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ### Checklist - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [x] I have read the **[CONTRIBUTING](https://github.com/facebookresearch/beanmachine/blob/main/CONTRIBUTING.md)** document. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. - [x] The title of my pull request is a short description of the requested changes. **Static Docs Preview: beanmachine** |[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D35151907/V5/beanmachine/)| |**Modified Pages**| Reviewed By: horizon-blue Differential Revision: D35151907 Pulled By: feynmanliang fbshipit-source-id: 051b702c83a482fb3d3dacbd8bb3ebe9a0109af3
Summary: ### Motivation Fix vulnerability described in ai/nanoid#328 Note `docusaurus-plugin-internaldocs-fb` doesn't pin its hard docusaurus version dependency and facebook/docusaurus#6287 introduced a breaking change, so we need to pin docusaurus version to keep the build green. ### Changes proposed Upgrades pinned JS dep versions from running `yarn upgrade` Pull Request resolved: #1387 Test Plan: `yarn build` ### Types of changes - [x] Docs change / refactoring / dependency upgrade - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ### Checklist - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [x] I have read the **[CONTRIBUTING](https://github.com/facebookresearch/beanmachine/blob/main/CONTRIBUTING.md)** document. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. - [x] The title of my pull request is a short description of the requested changes. **Static Docs Preview: beanmachine** |[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D35151907/V5/beanmachine/)| |**Modified Pages**| Reviewed By: horizon-blue Differential Revision: D35151907 Pulled By: feynmanliang fbshipit-source-id: b4274c7fc713fccddd1d1c64c9024138107a5716
Motivation
Refactor the hacky
@theme/hooks/useDocshook into a proper@docusaurus/plugin-content-docs/clientinterfaceFirst cases where a plugin exposes its own client-side code
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
refactor: existing tests should pass