docusaurus/packages/create-docusaurus
2023-10-26 15:47:11 +02: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 feat(mdx-loader): upgrade to MDX v3 + (#9451) 2023-10-26 15:47:11 +02:00
.npmignore misc: make copyUntypedFiles work for watch mode (#7445) 2022-05-18 19:18:32 +08:00
package.json chore: v3.0.0-rc.0 release (#9418) 2023-10-20 11:24:29 +02:00
README.md feat: create official TypeScript base config @docusaurus/tsconfig (#9050) 2023-06-09 15:21:46 +02:00
tsconfig.build.json chore: upgrade to TS 4.7, compile with NodeNext (#7586) 2022-06-15 19:15:11 +02:00
tsconfig.json chore: upgrade to TS 4.7, compile with NodeNext (#7586) 2022-06-15 19:15:11 +02:00

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