Skip to content

Public LastVet documentation (docs.last.vet)

Public, SEO-indexed documentation for veterans, providers, partners, and App Store reviewers. This site is not auth-gated. It lives in the lastvet-gates repo under external-docs/.

Internal engineering wiki: internal-docs.last1.enterprises (separate repo, Cloudflare Access required).

Local development

cd external-docs
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python scripts/validate-frontmatter.py
mkdocs serve

Production build (matches CI):

cd external-docs
pip install -r requirements.txt
python scripts/validate-frontmatter.py
mkdocs build --strict

Output: external-docs/site/

Adding content

  1. Add or edit markdown under content/ with required frontmatter (see below).
  2. Run validation and strict build locally.
  3. Open a PR against main.
  4. WSGR review required before merge for any substantive external content (legal, medical, privacy, or compliance claims).
  5. Merge to main triggers deploy to Cloudflare Pages project lastvet-docs.

Required frontmatter (external docs)

---
title: Page title
audience: external          # must be exactly "external"
external_slug: section-slug # must match URL path (see validator)
status: draft               # draft | canonical
owner: shared               # ryan | robert | matt | shared only
last_updated: 2026-08-23    # ISO date
---

Do not include internal-wiki fields (entity, tags, supersedes, sync metadata, etc.). The validator blocks them.

Content rules

  • Audience: external. Write for veterans, providers, and partners.
  • No PHI, no security implementation details, no internal references.
  • Do not copy internal wiki pages verbatim; rewrite for the external audience.
  • Placeholder-only content is acceptable until WSGR returns feedback on Terms/Privacy and Ryan authors Phase 4b content.

Deployment

Setting Value
Host Cloudflare Pages
Project lastvet-docs
Production branch main
Root directory external-docs
Build command pip install -r requirements.txt && python scripts/validate-frontmatter.py && mkdocs build --strict
Output directory site
Python version 3.11
Custom domain docs.last.vet
Access None (public)

GitHub Actions workflow: .github/workflows/build-deploy-external.yml

Required repository secrets (same Cloudflare account as other Last 1 properties):

  • CLOUDFLARE_API_TOKEN (Pages deploy)
  • CLOUDFLARE_ACCOUNT_ID

DNS (Ryan)

CNAME record:

docs.last.vet  →  lastvet-docs.pages.dev

Cloudflare proxy may be enabled for the docs hostname (unlike api.last.vet, which is DNS-only to the ALB).

Analytics

Enable Cloudflare Web Analytics on the lastvet-docs Pages project (privacy-preserving, no cookies). No third-party analytics SDKs.

Phase 4b (content authoring)

Infrastructure in this directory is complete. Real external content is authored after WSGR feedback on live Terms/Privacy. Until then, section pages remain professional placeholders.