docusaurus/packages/create-docusaurus
2023-11-21 23:37:11 +01:00
..
bin feat: support bun package manager in create-docusaurus (#9241) 2023-08-24 14:49:03 +02:00
src feat(core): support TypeScript + ESM configuration (#9317) 2023-10-14 02:46:03 +02:00
templates chore: upgrade prism-react-renderer to 2.3.0 to avoid older clsx (#9572) 2023-11-21 23:37:11 +01:00
.npmignore
package.json chore: release Docusaurus 3.0.0 (#9478) 2023-10-31 16:39:21 +01:00
README.md
tsconfig.build.json
tsconfig.json

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