Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,23 @@ Run the following commands:
- `npm install`
- `npm run build:watch`

You can now access the help center at `http://localhost:4009`.
You can now access the help center at `http://localhost:4009`. As soon as you save any changes, Jekyll will compile them and automatically reload the page in your browser.

## Docker

Alternatively, you can build and test the site without installing Node.js, Ruby etc. on your machine.

Assuming you have Docker installed, you can run this setup command:
```
docker run --rm -t -i -v $(PWD):/srv/jekyll jekyll/jekyll:4 npm install
```

Then run this command to build and serve the site:
```
docker run --rm -t -i -v $(PWD):/srv/jekyll \
-p 4009:4009 -p 35729:35729 jekyll/jekyll:4 \
npm run build:watch
```

# Ruby Gems

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "bitwarden-help",
"version": "0.0.0",
"scripts": {
"build": "gulp build && jekyll build",
"build:watch": "gulp build && jekyll serve --watch --host=0.0.0.0",
"build": "gulp build && jekyll build --incremental",
"build:watch": "gulp build && jekyll serve --incremental --watch --livereload",
"build:prod": "gulp build && cross-env JEKYLL_ENV=production jekyll build",
"build:prod:sub": "gulp build && cross-env JEKYLL_ENV=production jekyll build --config _config.yml,_config-sub.yml"
},
Expand Down