Run the handbook locally¶
This page is about running this handbook on your machine. It is not the platform onboarding guide — for that, see Add an application.
The handbook is a static site, but it is also an application: it builds to a container image and runs on Kubernetes. You can run it locally on k3d.
Authoring (live reload)¶
pip install -r requirements.txt
make serve # live reload at http://127.0.0.1:8000
make build-site # strict build (fails on broken links)
Run it on the local cluster¶
make up
That builds the image, ensures the k3d cluster exists, imports the image, applies the manifests, and waits for the rollout. Then open http://platform-docs.localhost:8080/.
Targets¶
| Target | What it does |
|---|---|
make serve |
Run the site with live reload (mkdocs serve, http://127.0.0.1:8000). |
make build-site |
Build the static site with strict link checking. |
make up |
Build, ensure the cluster, import, deploy, restart, wait. |
make status |
Show pods and ingress. |
make logs |
Tail the web logs. |
make health |
Check /healthz. |
make down |
Delete the Kubernetes objects (keeps the cluster). |
make clean |
down and remove the image. |
make destroy |
Delete the k3d cluster. |
How it works¶
Dockerfileis a multi-stage build: MkDocs renders the site, then nginx serves the static files.charts/platform-docsis the single chart for both local and cloud;values-local.yamlselects the Traefik ingress, one replica, and the locally built image.- The ingress host is
platform-docs.localhost; k3d maps host port8080to the load balancer.
Accessing it¶
platform-docs.localhost resolves to loopback, so http://platform-docs.localhost:8080/ works
directly. If your resolver does not resolve *.localhost, use the Host header:
curl -H 'Host: platform-docs.localhost' http://localhost:8080/
Where it is deployed¶
The handbook is served as a static site on S3 + CloudFront at
https://docs.nexusauto.com.br/. It owns its own infrastructure (infra/), and its pipeline applies
that infrastructure, builds the site, syncs it to S3, and invalidates the CloudFront cache. Locally
the site is built and run by hand with make up — no cloud dependency.