Skip to content

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.


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
EnvironmentURLAuth
Localhttp://localhost:8787None
Productionhttps://docs.lyncareos.com · hub bookmark /hubCloudflare Access + Google (email allowlist)

RequirementNotes
RepoClone or open D:\Projects\LynCareOS (or your local path)
PowerShellBuild script is PowerShell
Node.jsFor npx serve (local HTTP server) — any recent LTS is fine

You do not need Docker, the VPS, or .env.production for local preview.


From the repository root:

Terminal window
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 8787

Leave 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).


Open these URLs in your browser:

WhatURL
Portal homehttp://localhost:8787/
Hub (main nav)http://localhost:8787/hub.html
Investor storyhttp://localhost:8787/pathway-story.html
Operating modelhttp://localhost:8787/pathway-business.html
Architecture pathwayhttp://localhost:8787/pathway-architecture.html
Spec libraryhttp://localhost:8787/spec-viewer.html?doc=00-INDEX.md
Single spec examplehttp://localhost:8787/spec-viewer.html?doc=02%20-%20ARCHITECTURE_DESIGN/01-ARCHITECTURE.md
  • Start at hub.html — three pathways plus Library.
  • In the library, internal .md links open in the viewer automatically (after build).
  • Do not open raw .md files from disk or file:// — tables and Mermaid will not load correctly.
Edit hereServed from
docs/10-MAPPINGS/*.html, *.css, *.jsCopied 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.


URL: https://docs.lyncareos.com

  1. Open the URL in a normal or private browser window.
  2. Cloudflare Access redirects to Google sign-in.
  3. Sign in with an allowed Gmail address (currently newellie@gmail.com).
  4. After success, you land on the portal hub — same experience as local, with Calm Care styling.

Session lasts 24 hours; then sign in again.

  • 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.

Deployments also appear at https://lyncareos-docs-portal.pages.dev (and per-deploy URLs). These are covered by the same Access app — not public.


Only needed when you want production to reflect repo changes:

Terminal window
cd D:\Projects\LynCareOS
.\scripts\deploy-docs-portal.ps1

Requires .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.


SymptomWhat to do
Spec viewer empty / fetch errorsYou are on file:// or forgot npx serve — use http://localhost:8787
“Manifest missing” in libraryRun .\scripts\build-docs-portal.ps1 before serving
Mermaid diagram blankOpen browser devtools console; refresh after build
Raw markdown in browserUse spec-viewer.html?doc=..., not the .md path directly
Production 403 on libraryAccess session expired — open https://docs.lyncareos.com and sign in again
Port 8787 in useUse another port: npx --yes serve docs-portal-dist -l 8790

DocumentPurpose
DOCS-PORTAL-DEPLOYMENT.mdCloudflare Pages deploy, DNS, Access + Google setup
10-MAPPINGS/README.mdPortal file map and assets
34-MARKDOWN-DOCUMENT-VIEWER.mdFuture standalone markdown viewer product (App Store / Play)

Terminal window
# Local — build + serve
cd D:\Projects\LynCareOS
.\scripts\build-docs-portal.ps1
npx --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