The page that you are currently viewing is for an old version of Stroom (Legacy). The documentation for the latest version of Stroom (7.6) can be found using the version drop-down at the top of the screen or by clicking here.

Building the documentation

Stroom’s documentation is built using GitBook (external link).

Prerequisites

NPM

You need NPM to install the GitBook command line toolchain. To get NPM install node (external link).

GitBook command line tools

npm install -g gitbook-cli

Build the book

GitBook uses plugins, e.g. anchorjs allows us to create links to headings within a file. You need to install these plugins first. The below commands should be run in the project root.

gitbook install

You can build the documentation like this:

gitbook build

Or you can run the GitBook server which will watch your files as you work and server them on localhost:4000.

gitbook serve

Troubleshooting

I get an error when trying to run gitbook serve

If you see Errpr: watch /path/to/stroom ENOSPC then run the following: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

It won’t, because CORS is not and cannot be enabled when viewing local files. You need to run gitbook serve or if you really don’t want to do that try cd _book && python -m SimpleHTTPServer.

Last modified November 26, 2024: Make font paths relative (4afb976)