This folder contains the source code for the Valence Programs documentation.
- Install mdbook, mdbook-mermaid and mdbook-linkcheck:
cargo install mdbook mdbook-mermaid mdbook-linkcheck
- Build:
From /docs
directory, run:
mdbook build
- The output will be in the book subdirectory. Open it in your web browser. Examples:
- Firefox:
firefox book/html/index.html # Linux
open -a "Firefox" book/html/index.html # OS X
Start-Process "firefox.exe" .\book\html\index.html # Windows (PowerShell)
start firefox.exe .\book\html\index.html # Windows (Cmd)
- Chrome:
google-chrome book/html/index.html # Linux
open -a "Google Chrome" book/index.html # OS X
Start-Process "chrome.exe" .\book\html\index.html # Windows (PowerShell)
start chrome.exe .\book\html\index.html # Windows (Cmd)
- To apply docs changes automatically without rebuilding manually, run:
mdbook serve