Skip to content
StatusImplementedVerified on

Documentation & Deployment ​

This portal documents the Astronaut Health Intelligence Platform (AHI). It is a static site built with VitePress, published on GitHub Pages by GitHub Actions, in English (root) and Brazilian Portuguese (/pt/).

Run the portal locally ​

bash
cd docs-site
npm install
npm run docs:dev      # local preview with hot reload
npm run docs:build    # production build into .vitepress/dist, fails on dead links
npm run docs:preview  # serve the production build

Dependencies are pinned to exact versions in docs-site/package.json: vitepress, mermaid, vitepress-plugin-mermaid and markdown-it-footnote.

Writing pages ​

TopicRule
PathsEnglish at docs-site/<section>/<page>.md, Portuguese at docs-site/pt/<section>/<page>.md, identical paths
NavigationSections and page labels (EN and PT) are defined once in SECTIONS in .vitepress/config.mts; both sidebars and the top nav are generated from it
Frontmattertitle, description, and for feature pages status, origin, code, tests, verified (below)
Status and origin badges<StatusBadge status="PLANNED" />, <OriginBadge origin="REAL_PUBLIC" />
Code links<CodeLink path="frontend/web/src/engine/risk.ts" /> links to the file on GitHub (master)
Callouts::: tip, ::: info, ::: warning, ::: danger
ReferencesFootnotes [^1] with [^1]: ... (markdown-it-footnote)
DiagramsFenced mermaid blocks; do not use reserved words such as end as node ids; caption conceptual diagrams "Conceptual (not implemented)"
ScreenshotsReal captures only, in public/screenshots/, referenced as /screenshots/<name>.png
WritingNo em dash or en dash characters; app UI labels stay in English

Page frontmatter ​

yaml
---
title: Personal Baseline
description: One sentence for SEO and search.
status: IMPLEMENTED          # IMPLEMENTED | EXPERIMENTAL | PLANNED | CONCEPTUAL | NOT_IMPLEMENTED | DEPRECATED
origin: SIMULATED            # REAL_PUBLIC | DERIVED | SIMULATED | MANUAL, comma separated
code:
  - frontend/web/src/engine/baseline.ts
tests:
  - frontend/web/src/engine/baseline.test.ts
verified: 2026-11-14
---

The theme renders these keys automatically above the page title (component PageMeta, injected through the doc-before layout slot): breadcrumbs from the active sidebar, the status badge, origin badges, "Source of truth" code links, test links and "Verified on". Pages without these keys show only the breadcrumbs.

Theme components ​

ComponentPropsRenders
StatusBadgestatus (required), label (optional override)Colored pill with a dot and the localized label; tooltip explains the status; NOT_IMPLEMENTED is struck through and dashed
OriginBadgeorigin (one value or a comma separated list)One monospace chip per origin with a localized tooltip
CodeLinkpath (repo relative), label (optional)Link to github.com/.../blob/master/<path> labeled with the file name
PageMetanone (reads frontmatter)Breadcrumbs and the status bar described above

Source: docs-site/.vitepress/theme/ (index.ts, components/*.vue, meta.ts with the EN and PT vocabulary, custom.css).

Publishing to GitHub Pages ​

Workflow .github/workflows/docs-deploy.yml:

SettingValue
TriggersPush to master touching docs-site/** or the workflow file; manual workflow_dispatch
Permissionscontents: read, pages: write, id-token: write (minimal for Pages with the built-in token)
ConcurrencyGroup pages, never cancels a deployment in progress
JobOne job, "Build and deploy", in the github-pages environment, with a 10 minute timeout (one runner instead of two)
StepsNode 22, npm ci with the npm cache, actions/configure-pages@v5, npm run docs:build (fails on dead links), actions/upload-pages-artifact@v3 with docs-site/.vitepress/dist, actions/deploy-pages@v4

One time repository setting: Settings > Pages > Build and deployment > Source = GitHub Actions. No gh-pages branch and no personal token are needed.

Validation ​

Workflows only run when the files they check change (path filters), all with contents: read (except the deploy), a timeout (10 minutes, 20 for the end to end and baseline jobs) and cancellation of superseded runs:

WorkflowRuns onSteps
ci.yml (App)Push to master and pull request to master or develop touching frontend/web/**npm ci, npm run lint (oxlint, errors fail, warnings are reported), npx tsc -b, npm test, npx vite build
ci.yml (End to end)The same triggersnpm ci, install Chromium, npm run e2e (functional tests and the visual tests, with E2E_VISUAL=1 against the committed Linux baselines)
backend.yml (API)Push to master and pull request to master or develop touching backend/**Install the requirements, python -m pytest
visual-baselines.ymlPush to a branch named visual/** (manual use)Manual: runs the visual tests with E2E_VISUAL=1 and uploads the Linux snapshots as the artifact visual-baselines-linux to commit (Testing strategy)
docs-check.yml (Docs portal)Pull request to master or develop touching docs-site/**npm ci, npm run docs:build (VitePress fails on dead internal links)
docs-deploy.ymlPush to master touching docs-site/**Same build as the docs check, then publish; on master this build is the gate, so the portal is never built twice for one push

A push that changes only the README, the spec, docs/ or other non code files starts no workflow.

Branch protection

Path filtered workflows do not report a status when they are skipped. If branch protection later requires these checks, add a small always running summary job (or use a path filter action inside one workflow) so pull requests that do not touch a path are not left waiting.

Dead link policy: ignoreDeadLinks: 'localhostLinks', so only links to a local dev server (for example http://localhost:5173) are allowed to be unreachable; every internal link must resolve.

Local checks before pushing documentation:

bash
cd docs-site
npm run docs:build
grep -rnP '\x{2014}|\x{2013}' --include=*.md --exclude-dir=node_modules .   # must print nothing

The app itself ​

The web app is a static bundle (npx vite build in frontend/web writes dist/) and could be served by any static host. Hosting it publicly for judges is Planned (Roadmap); today it runs locally (Setup).

Deploying the app (optional): Vercel ​

The portal is deployed by GitHub Actions to GitHub Pages. The web app is a static site, so it can be deployed separately, for example on Vercel, with these settings:

SettingValue
Root Directoryfrontend/web
Framework PresetVite
Build Commandnpm run build
Output Directorydist
Node.js version22
Environment variableVITE_API_URL=off

VITE_API_URL=off starts the app in the offline demo mode. Ask AHI shows as offline because the FastAPI backend is not part of that deployment. This page does not claim that a deployment exists.

Next steps ​

Astronaut Health Intelligence Platform. Decision support only: not a diagnosis and not a medical device. Device data is simulated.