Docusaurus โ Run and Build
Requirements:
- Node.js 18+
Create a new site:
npx create-docusaurus@latest my-docs classiccd my-docsnpm install
Run locally:
npm run start
Visit the URL shown (usually http://localhost:3000)
Build for production (output to build/
):
npm run build
Preview production build:
npm run serve
Deploy the build/
folder to any static host.