Updated Running Doc Server section, fix for npm start in windows
This commit is contained in:
parent
11fcb935b4
commit
8a7aaa9cec
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue