Public product documentation for Cortex Chat, Cortex Code, Cortex Bot, the Cortex CLI, and Cortex Design. This site is end-user visible. It does not document login, sessions, refresh tokens, OAuth wire protocol, or other non-public APIs.
This repository is a Mintlify site, migrated from
CortexLM/backend at 782b054 (the former apps/docs directory).
Engineering / operator documentation stays in
CortexLM/backend/docs
(runbooks, SOC 2 notes, farm internals). Do not merge the two trees.
git clone https://github.com/CortexLM/docs.git
cd docs
npx mint dev --no-openRequires Node 20.17+. The site is intended to publish at
https://docs.cortex.foundation. Connecting the custom domain is an operator
step in the Mintlify dashboard. Connect CortexLM/docs, branch main, with
the content directory set to the repository root (not apps/docs).
node scripts/check-docs-site.mjs
bash scripts/tests/check-docs-site.test.sh
npm exec --yes --package=mint@4.2.876 -- mint validateThe Docs site CI job checks navigation, problem-page URLs and the public content rules without needing access to the backend.
To also validate against the real API, pass a backend checkout:
node scripts/check-docs-site.mjs ../backendThe backend's Docs site job runs this additional check against a pinned revision of this repository. New error codes need a coordinated docs change: merge the docs page first, then update the backend's checkout pin in the PR that adds the code. The full check fails when:
PROBLEM_TYPE_BASEis nothttps://docs.cortex.foundation/problems- an
ErrorCodeis missing its/problems/{code}page - a
docs.jsonnavigation slug or internal href has no matching MDX page - a documented
/v1/…path is not registered incrates/cortex-api/src/router.rs - this tree names a problem-docs host other than
docs.cortex.foundation - the top navbar is not Home + Documentation, or it carries Chat | Code | Bot chrome /
navbar.primary - the home page uses Mintlify Cards as brand-green Install CTAs instead of
.ink-btn - public MDX documents
/auth/,/oauth/,refresh_token, WorkOS, orcortex_rt api/authentication.mdxorapi/oauth.mdxexist, or the API tab lists them
Do not invent endpoints. There is no inference Platform API section here — see
platform.mdx. Sign in via the app; this tree has no auth stack.
Brand green #1F4945 is for doodle accents, illustration focus rings, and
window frames — not hero CTAs. Home and card actions use ink on cream
(.ink-btn in custom.css) — filled ink, quiet outline; dark mode inverts
to cream ink. Do not add a brand-green Install / navbar.primary button.
Guide heroes that depict the product are live Cortex screenshots in
images/product/ plus CLI canon in images/cli/ (vendored from
CortexLM/cli docs/media/). Every page shows a distinct capture — no
product frame is reused on two pages; images/product/README.md maps each
file to the page that uses it, and lists member-only surfaces still to be
captured. Do not add abstract product-window SVGs. images/frames/ is
retired. Banner card art (images/banners/) belongs inside CardGroup
grids on Home and the hubs — never as a lone full-width Card. Cream, ink,
#1F4945 focus — no violet.
Top navbar is Mintlify Home + Documentation, not the Chat | Code | Bot
product switcher. Get started / Chat / Code / Bot / CLI / Design stay as
documentation tabs. Competitor product names never appear in copy,
titles, or docs.json.