docs/contributing/how-to-run-website-locally.md
The Cortex documentation is compiled into a website published at cortexmetrics.io. These instructions explain how to run the website locally, in order to have a quick feedback loop while contributing to the documentation or website styling.
The following initial setup is required only once:
HUGO_VERSION in build-image/Dockerfile.v14 or above (alternatively via nvm)cd website && npm install && cd -
v1.0.0:
go install github.com/campoy/[email protected]
make BUILD_IN_CONTAINER=false web-buildOnce the initial setup is completed, you can run the website with the following command. The local website will run at http://localhost:1313/
# Keep this running
make web-serve
Whenever you change the content of docs/ or markdown files in the repository root / you should run:
make BUILD_IN_CONTAINER=false web-pre
Whenever you change the config file or CLI flags in the Cortex code, you should rebuild the config file reference documentation:
make BUILD_IN_CONTAINER=false doc web-pre