# Kimi CLI Handoff: Deploy Docs Site Living Brief Update Date: 2026-06-13 Repository: `hermes-mcp` Status: Ready for deployment ## Objective Deploy the Living Brief documentation update to `docs.squaremcp.com`. This is a static-site change only — no API, OAuth, or database changes are involved. ## What changed - **New file**: `docs/living-brief.html` — new "Living Brief" landing page (hero, brief schema, connect-your-vault tabs, Obsidian tool reference, example prompts). - **Edited**: `docs/index.html` — new Living Brief hero/positioning, new "What is a Living Brief?" section, reworded "full kit" section, new nav link to `living-brief.html`. - **Edited**: `docs/getting-started.html`, `docs/platforms.html`, `docs/agent-tutorial.html` — added `Living Brief` as the first nav link (no other content changes). All five files have been verified for nav consistency (every page links to `living-brief.html`) and balanced HTML tags. ## Required fix before building `docs/Dockerfile` currently does **not** copy `living-brief.html` into the image. Add this line alongside the other `COPY` lines (after the `index.html` line is fine): ```dockerfile FROM nginx:1.27-alpine COPY docs/index.html /usr/share/nginx/html/index.html COPY docs/living-brief.html /usr/share/nginx/html/living-brief.html COPY docs/getting-started.html /usr/share/nginx/html/getting-started.html COPY docs/platforms.html /usr/share/nginx/html/platforms.html COPY docs/agent-tutorial.html /usr/share/nginx/html/agent-tutorial.html COPY docs/styles.css /usr/share/nginx/html/styles.css EXPOSE 80 ``` Without this, the new page will 404 in production even though the deployment otherwise "succeeds". ## Build and push Run from the repository root (so the `docs/...` paths in the Dockerfile resolve correctly): ```bash docker build -t localhost:32000/squaremcp-docs:living-brief -f docs/Dockerfile . docker push localhost:32000/squaremcp-docs:living-brief ``` Get the pushed image digest: ```bash docker inspect --format='{{index .RepoDigests 0}}' localhost:32000/squaremcp-docs:living-brief ``` This returns something like `localhost:32000/squaremcp-docs@sha256:` — use that exact value in the next step. ## Update the k8s manifest In `docs/docs-k8s.yaml`, update the `Deployment` container image (currently pinned to `@sha256:2e49e8ab602cd5069be89bbba538db06ce9dc2c49064472f399566a8fcc54d9c`) to the new digest from the previous step. Only this one line should change — `Service` and `Ingress` sections are unaffected. ## Apply and roll out ```bash microk8s kubectl apply -f docs/docs-k8s.yaml microk8s kubectl rollout status deployment/squaremcp-docs -n fetcherpay --timeout=120s ``` ## Verification `kubectl exec`/`logs`/`port-forward` are blocked by the existing kubelet TLS cert mismatch (`104.190.60.129` not in cert SANs) — verify via public HTTPS only: ```bash curl -s https://docs.squaremcp.com/living-brief.html | grep -i "" curl -s https://docs.squaremcp.com/ | grep -c "living-brief.html" curl -s https://docs.squaremcp.com/getting-started.html | grep -c "living-brief.html" curl -s https://docs.squaremcp.com/platforms.html | grep -c "living-brief.html" curl -s https://docs.squaremcp.com/agent-tutorial.html | grep -c "living-brief.html" ``` Expected: - `living-brief.html` returns 200 with `<title>Living Brief — SquareMCP Docs`. - `index.html` contains 2 references to `living-brief.html` (nav link + hero card). - The other three pages each contain 1 reference (nav link only). ## Rollback Re-apply `docs/docs-k8s.yaml` with the previous image digest `localhost:32000/squaremcp-docs@sha256:2e49e8ab602cd5069be89bbba538db06ce9dc2c49064472f399566a8fcc54d9c` and re-run `kubectl rollout status`. ## Acceptance criteria - `https://docs.squaremcp.com/living-brief.html` is live and renders correctly. - All five docs pages show the `Living Brief` nav link. - No other routes (`index.html`, `getting-started.html`, `platforms.html`, `agent-tutorial.html`) regress. - Rollout completes within timeout with no crash-loop.