LynCareOS documentation portal — quickstart
Version: 1.1
Last Updated: 2026-08-06 10:12:43
Status: Operational — local preview + live access
How to build, start the local document server, view the portal, and access the live site. For deploy, DNS, and Cloudflare Access setup details, see DOCS-PORTAL-DEPLOYMENT.md.
What this is
Section titled “What this is”The documentation portal is a static site (not the LynCareOS app server). It serves:
- Curated pathways — investor story, operating model, architecture overview
- Spec library — markdown viewer with GFM tables, TOC, and Mermaid diagrams
| Environment | URL | Auth |
|---|---|---|
| Local | http://localhost:8787 | None |
| Production | https://docs.lyncareos.com · hub bookmark /hub | Cloudflare Access + Google (email allowlist) |
Prerequisites
Section titled “Prerequisites”| Requirement | Notes |
|---|---|
| Repo | Clone or open D:\Projects\LynCareOS (or your local path) |
| PowerShell | Build script is PowerShell |
| Node.js | For npx serve (local HTTP server) — any recent LTS is fine |
You do not need Docker, the VPS, or .env.production for local preview.
1. Start the document server (local)
Section titled “1. Start the document server (local)”From the repository root:
cd D:\Projects\LynCareOS
# Step 1 — bundle portal HTML + whitelisted markdown into docs-portal-dist/.\scripts\build-docs-portal.ps1
# Step 2 — serve over HTTP (required; file:// breaks the spec viewer)npx --yes serve docs-portal-dist -l 8787Leave the terminal open while you browse. Stop the server with Ctrl+C.
Rebuild after edits: Run build-docs-portal.ps1 again, then refresh the browser (hard refresh if assets look stale).
2. View the portal (local)
Section titled “2. View the portal (local)”Open these URLs in your browser:
| What | URL |
|---|---|
| Portal home | http://localhost:8787/ |
| Hub (main nav) | http://localhost:8787/hub.html |
| Investor story | http://localhost:8787/pathway-story.html |
| Operating model | http://localhost:8787/pathway-business.html |
| Architecture pathway | http://localhost:8787/pathway-architecture.html |
| Spec library | http://localhost:8787/spec-viewer.html?doc=00-INDEX.md |
| Single spec example | http://localhost:8787/spec-viewer.html?doc=02%20-%20ARCHITECTURE_DESIGN/01-ARCHITECTURE.md |
Navigation tips
Section titled “Navigation tips”- Start at hub.html — three pathways plus Library.
- In the library, internal
.mdlinks open in the viewer automatically (after build). - Do not open raw
.mdfiles from disk orfile://— tables and Mermaid will not load correctly.
Source vs build output
Section titled “Source vs build output”| Edit here | Served from |
|---|---|
docs/10-MAPPINGS/*.html, *.css, *.js | Copied into docs-portal-dist/ on build |
docs/**/*.md (whitelisted folders) | Copied into docs-portal-dist/library/ on build |
Do not hand-edit docs-portal-dist/ — it is regenerated and gitignored.
3. Access the live portal (production)
Section titled “3. Access the live portal (production)”URL: https://docs.lyncareos.com
Sign-in flow
Section titled “Sign-in flow”- Open the URL in a normal or private browser window.
- Cloudflare Access redirects to Google sign-in.
- Sign in with an allowed Gmail address (currently
newellie@gmail.com). - After success, you land on the portal hub — same experience as local, with Calm Care styling.
Session lasts 24 hours; then sign in again.
If access is denied
Section titled “If access is denied”- You see the Access block page — your Google account is not on the allowlist.
- Ask the owner to add your email in Zero Trust → Access → LynCareOS Docs Portal → Policies.
Preview hostname (also protected)
Section titled “Preview hostname (also protected)”Deployments also appear at https://lyncareos-docs-portal.pages.dev (and per-deploy URLs). These are covered by the same Access app — not public.
4. Publish updates (optional)
Section titled “4. Publish updates (optional)”Only needed when you want production to reflect repo changes:
cd D:\Projects\LynCareOS.\scripts\deploy-docs-portal.ps1Requires .env.production with CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID. Updates live in about a minute.
Full deploy, DNS, and Access configuration: DOCS-PORTAL-DEPLOYMENT.md.
5. Troubleshooting
Section titled “5. Troubleshooting”| Symptom | What to do |
|---|---|
| Spec viewer empty / fetch errors | You are on file:// or forgot npx serve — use http://localhost:8787 |
| “Manifest missing” in library | Run .\scripts\build-docs-portal.ps1 before serving |
| Mermaid diagram blank | Open browser devtools console; refresh after build |
| Raw markdown in browser | Use spec-viewer.html?doc=..., not the .md path directly |
| Production 403 on library | Access session expired — open https://docs.lyncareos.com and sign in again |
| Port 8787 in use | Use another port: npx --yes serve docs-portal-dist -l 8790 |
6. Related documents
Section titled “6. Related documents”| Document | Purpose |
|---|---|
| DOCS-PORTAL-DEPLOYMENT.md | Cloudflare Pages deploy, DNS, Access + Google setup |
| 10-MAPPINGS/README.md | Portal file map and assets |
| 34-MARKDOWN-DOCUMENT-VIEWER.md | Future standalone markdown viewer product (App Store / Play) |
Quick reference (copy-paste)
Section titled “Quick reference (copy-paste)”# Local — build + servecd D:\Projects\LynCareOS.\scripts\build-docs-portal.ps1npx --yes serve docs-portal-dist -l 8787# → http://localhost:8787/hub.html
# Production — browse (Google sign-in required)# → https://docs.lyncareos.com
# Production — deploy after doc changes.\scripts\deploy-docs-portal.ps1