Installation
Docusaurus was designed from the ground up to be easily installed and used to get your website up an running quickly. To install Docusaurus, follow these steps:
- Create a
website
folder in the root of your GitHub repo. cd website
Create a
package.json
file with the following scripts that will be used when developing documentation with Docusaurus:{ "scripts": { "start": "docusaurus-start", "build": "docusaurus-build", "publish-gh-pages": "docusaurus-publish", "examples": "docusaurus-examples" } }
Install Docusaurus with
yarn
ornpm
yarn add docusaurus -dev
or
npm install --save-dev docusaurus