Closed slorber closed 1 week ago
Name | Link |
---|---|
Latest commit | 595eddb7dbc018c1203f3e56322e82ee33fcbfd2 |
Latest deploy log | https://app.netlify.com/sites/docusaurus-2/deploys/673788f3efe08c00088686a3 |
Deploy Preview | https://deploy-preview-10685--docusaurus-2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Size Change: +337 B (0%)
Total Size: 11.2 MB
URL | Performance | Accessibility | Best Practices | SEO | Report |
---|---|---|---|---|---|
/ | π΄ 41 | π’ 98 | π’ 96 | π’ 100 | Report |
/docs/installation | π 51 | π’ 97 | π’ 100 | π’ 100 | Report |
/docs/category/getting-started | π 74 | π’ 100 | π’ 100 | π 86 | Report |
/blog | π 61 | π’ 96 | π’ 100 | π 86 | Report |
/blog/preparing-your-site-for-docusaurus-v3 | π΄ 49 | π’ 92 | π’ 100 | π’ 100 | Report |
/blog/tags/release | π 65 | π’ 96 | π’ 100 | π 86 | Report |
/blog/tags | π 75 | π’ 100 | π’ 100 | π 86 | Report |
Size Change: +327 B (0%)
Total Size: 11.7 MB
Motivation
Fix https://github.com/facebook/docusaurus/issues/10681
docusaurus --help
should also print cli commands from plugins implementing theextendCli
lifecycle. This behavior broke with the refactor of https://github.com/facebook/docusaurus/pull/10368.This also refactors the CLI code so that we can unit test this behavior and avoid regressing again. Commander doesn't make it super easy since a lot of
process.exit
,console.error
andprocess.stdout.write
happens internally, but I found a way to snapshot all that.This also implements a workaround for https://github.com/facebook/docusaurus/issues/8903 and https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/issues/490 with 2 escape hatch env variables for loading third-party CLI extensions from a different siteDir / config:
DOCUSAURUS_CLI_SITE_DIR
DOCUSAURUS_CLI_CONFIG
These env variables will remain private/internal/workarounds for now, until we get more feedback and eventually find a better way to solve this problem.
Test Plan
Unit tests π₯³
Test links
https://deploy-preview-10685--docusaurus-2.netlify.app/