facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
54.07k stars 8.1k forks source link

fix(core): fix sites unable to start/build without a static dir #10225

Closed slorber closed 2 weeks ago

slorber commented 2 weeks ago

Motivation

A site should be able to start/build without a /static dir

Fix https://github.com/facebook/docusaurus/issues/10212

Fix regression introduced with refactor in https://github.com/facebook/docusaurus/pull/9859

Test Plan

local test 😅

netlify[bot] commented 2 weeks ago

[V2]

Name Link
Latest commit 7de274e432044392cbbf34721f1602e1986819c7
Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/667060533622910007cc3f9a
Deploy Preview https://deploy-preview-10225--docusaurus-2.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 2 weeks ago

⚡ī¸ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO PWA Report
/ 🟠 76 đŸŸĸ 98 đŸŸĸ 96 đŸŸĸ 100 🟠 88 Report
/docs/installation 🟠 64 đŸŸĸ 96 đŸŸĸ 100 đŸŸĸ 100 🟠 88 Report
/docs/category/getting-started 🟠 74 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
/blog 🟠 69 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 67 đŸŸĸ 96 đŸŸĸ 100 đŸŸĸ 100 🟠 88 Report
/blog/tags/release 🟠 71 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
/blog/tags 🟠 75 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
github-actions[bot] commented 2 weeks ago

Size Change: 0 B

Total Size: 1.84 MB

ℹī¸ View Unchanged | Filename | Size | | :--- | :---: | | `website/.docusaurus/codeTranslations.json` | 2 B | | `website/.docusaurus/docusaurus.config.mjs` | 27.1 kB | | `website/.docusaurus/globalData.json` | 123 kB | | `website/.docusaurus/i18n.json` | 930 B | | `website/.docusaurus/registry.js` | 304 kB | | `website/.docusaurus/routes.js` | 202 kB | | `website/.docusaurus/routesChunkNames.json` | 130 kB | | `website/.docusaurus/site-metadata.json` | 2.17 kB | | `website/build/assets/css/styles.********.css` | 112 kB | | `website/build/assets/js/main.********.js` | 897 kB | | `website/build/index.html` | 38.1 kB |

compressed-size-action