docusaurus/packages/create-docusaurus
Sébastien Lorber 52d79c4e0c
chore: v3.0.0-beta.0 release (#9311)
2023-09-15 19:44:35 +02:00
..
bin
src
templates chore: v3.0.0-beta.0 release (#9311) 2023-09-15 19:44:35 +02:00
.npmignore
README.md
package.json chore: v3.0.0-beta.0 release (#9311) 2023-09-15 19:44:35 +02:00
tsconfig.build.json
tsconfig.json

README.md

create-docusaurus

Create Docusaurus apps easily with simplified commands:

npm init docusaurus
yarn create docusaurus

Usage

Please see the installation documentation.

For maintainers

For Docusaurus maintainers, templates can be tested with:

cd `git rev-parse --show-toplevel` # Back to repo root
rm -rf test-website
yarn create-docusaurus test-website classic
cd test-website
yarn start

Note: test-website is not part of the workspace and use packages from npm.

Use the following to test the templates against local packages:

cd `git rev-parse --show-toplevel` # Back to repo root
rm -rf test-website-in-workspace
yarn create-docusaurus test-website-in-workspace classic
cd test-website-in-workspace
yarn build
yarn start

For the TypeScript template:

cd `git rev-parse --show-toplevel` # Back to repo root
rm -rf test-website-in-workspace
yarn create-docusaurus test-website-in-workspace classic --typescript
cd test-website-in-workspace
yarn typecheck
yarn build
yarn start