From 8a7aaa9cec5d47a0def8449b59b0b6f73ead2f8e Mon Sep 17 00:00:00 2001 From: Sherman Boyd Date: Sat, 28 Sep 2024 17:46:28 -0700 Subject: [PATCH] Updated Running Doc Server section, fix for npm start in windows --- CONTRIBUTING.md | 12 +++++++++--- docs/package.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) 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",