This folder contains local development setup scripts for this repository:
dev.ps1: Windows PowerShell workflowdev.sh: Linux/WSL Bash workflow
Both scripts do the same high-level flow:
- Prepare a local
.dev/workspace in this repo. - Clone or sync
Docs-Template-Repointo.dev/Docs-Template-Repo. - Build a merged workspace in
.dev/DocHome(docs + template). - Replace
assetsPathvalues in_includesand_layouts. - Install gems with Bundler using local cache directories under
.dev/. - Run
jekyll serve(or print the serve command when no-serve mode is used).
Run from repo root:
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1Useful options:
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1 -NoServe
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1 -NoTemplateUpdate
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1 -Port 6001
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1 -BindHost 0.0.0.0Run from repo root:
bash ./scripts/dev.shUseful options:
bash ./scripts/dev.sh --no-serve
bash ./scripts/dev.sh --no-template-update
bash ./scripts/dev.sh --port 6001
bash ./scripts/dev.sh --bind-host 0.0.0.0Default local URL root after start:
http://localhost:5555/web-twain/docs/