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.
OSV Scanner runs on every pull request and on main (.github/workflows/osv-scanner.yml). To run the same scan locally, install osv-scanner and run this from the repository root:
osv-scanner scan source --config osv-scanner.toml -L package-lock.jsonSuppressions go in osv-scanner.toml, with a justification. See SECURITY.md.
The documentation uses Algolia DocSearch for full-text search.
To configure search locally or for production:
- Apply for DocSearch at https://docsearch.algolia.com/apply
- Once approved, Algolia will provide an
appIdandapiKey - Update
docusaurus.config.jswith these credentials - The crawler configuration is managed by Algolia, but runs weekly to index the content