diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a9ecb709e..c070f0bc1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,12 +68,18 @@ You can run the documentation server locally using either of the following metho #### Method 1: NPM Script -1. Open your terminal and navigate to the root directory of the project. +1. Open your terminal and navigate to the `docs` subdirectory of the project. The `docusaurus.config.js` file you'll see there is a sign you're in the right place. -2. Run the following command to start the documentation server: +2. Run the following command to install the necessary dependencies for the documentation server: ```bash - npm run start --prefix docs + npm install + ``` + +3. Run the following command to start the documentation server: + + ```bash + npm run start ``` #### Method 2: VS Code Task diff --git a/docs/package.json b/docs/package.json index 644b1d7f4..423c60bde 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "docusaurus": "docusaurus", - "start": "nodemon --watch sidebars.js --watch docusaurus.config.js --exec 'docusaurus start'", + "start": "nodemon --watch sidebars.js --watch docusaurus.config.js --exec \"docusaurus start\"", "build": "docusaurus build", "build:netlify": "docusaurus build --out-dir build/docs", "swizzle": "docusaurus swizzle",