The CALM documentation is presented using Docusaurus. Content is generated from Markdown files within the docs directory, starting with index.md.
From within the project folder (which contains this developer guide), run these commands to give you a locally-running Docusaurus server:
npm install
npm run serve -- --buildFor options such as changing the ports, see the Docusaurus docs.
Whilst the server is running, if you run npm run build then it'll pick up any changes you've made to the source Markdown files. You can then simply refresh the browser to view.
See the main contributing guide for details on commit standards, etc.
The OWASP dependency check tool will run on PRs and periodically on the committed code, but it can be helpful to be able to run this locally to investigate CVEs.
To use the dependency check tool locally, first install the tool following the instructions for your operating system here.
Once that is done the tool is configured as a script in the package.json, run npm run dependency-check; the reports will be output to cli/dependency-check-report.