[Lexical][Meta] Add dependencies needed to setup lexical-website in m… #6293
+4,715
−216
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…eta intern static docs
WHAT
WHY
Add "docusaurus-plugin-internaldocs-fb" following other Meta docusaurus websites examples https://github.com/search?q=org%3Afacebook%20%22docusaurus-plugin-internaldocs-fb%22%20path%3A.json&type=code
Fix issue
warning "@docusaurus/core > react-dev-utils > fork-ts-checker-webpack-plugin@6.5.3" has unmet peer dependency "typescript@>= 2.7".
warning " > @mdx-js/react@3.0.1" has unmet peer dependency "@types/react@>=16".
[sahejk@55243.od /data/sandcastle/boxes/www/scripts/lexical/lexical-website (601d1abfb)]$ yarn start
yarn run v1.18.0
$ TYPEDOC_WATCH=true docusaurus start
[INFO] Starting the development server...
[ERROR] Error: Docusaurus could not load module at path "/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/docusaurus-plugin-typedoc/dist/index.js"
Cause: Cannot find module 'typedoc'
Require stack:
at loadFreshModule (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/utils/lib/moduleUtils.js:36:15)
at normalizePluginConfig (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/server/plugins/configs.js:44:65)
at /data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/server/plugins/configs.js:98:60
at Array.map ()
at loadPluginConfigs (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/server/plugins/configs.js:98:38)
at async initPlugins (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/server/plugins/init.js:42:27)
at async /data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/server/plugins/plugins.js:136:36
at async loadSite (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/server/site.js:135:45)
at async createReloadableSite (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/commands/start/utils.js:50:16)
at async Command.start (/data/sandcastle/boxes/www/scripts/lexical/lexical-website/node_modules/@docusaurus/core/lib/commands/start/start.js:22:28) {
[cause]: Error: Cannot find module 'typedoc'