Files
stack/docs-mintlify
Devin AIandaman d32f30a0e3 fix(docs): resolve console errors on Mintlify hexclave pages
- Make HexclaveAgentReminders snippet self-contained: the component
  referenced a sibling module export that Mintlify does not bring into
  scope when the component is imported, throwing a ReferenceError on the
  setup, AI integration, and CLI pages (and home). Inline the value in
  the component and update the generator that produces this snippet.
- Add the missing sdk-type-components import to connected-account.mdx so
  CollapsibleTypesSection and friends are defined (SDK ConnectedAccount
  page rendered empty otherwise).

Co-Authored-By: aman <[email protected]>
2026-06-03 00:39:29 +00:00
..
2026-06-02 09:49:50 -07:00
2026-05-06 12:03:06 -07:00
2026-06-02 09:49:50 -07:00
2026-06-01 15:33:25 -07:00
2026-05-25 10:59:34 -07:00

docs-mintlify

How to run the Mintlify docs preview locally from this repository.

Prerequisites

  • Node.js >=20.17.0

  • pnpm

  • Repository dependencies installed (pnpm install from repo root)

  • OpenAPI specs in openapi/ are committed to git. Hosted Mintlify cannot run monorepo codegen on deploy, so these files must be present in the repo for production docs.

    When you change API route OpenAPI metadata, regenerate and commit the four specs from the repo root:

    pnpm run --filter @hexclave/backend codegen-docs
    git add docs-mintlify/openapi/
    

    That writes client.json, server.json, admin.json, and webhooks.json into docs-mintlify/openapi/ (and into docs/openapi/ for the legacy Fumadocs app). CI fails if pnpm codegen produces different output than what is committed (see root lint-and-build workflow).

Run locally

From the repository root:

pnpm -C docs-mintlify run dev

This starts Mintlify in docs-mintlify on http://localhost:${NEXT_PUBLIC_HEXCLAVE_PORT_PREFIX:-81}04 (for example, http://localhost:8104 with the default prefix).

From inside docs-mintlify, you can also run:

pnpm dev

Useful variants:

# Override the default port
pnpm -C docs-mintlify run dev -- --port 3333

# Skip OpenAPI processing for faster iteration
pnpm -C docs-mintlify run dev -- --disable-openapi

Search + assistant in local preview

If you want local search and the Mintlify assistant:

pnpm -C docs-mintlify run login
pnpm -C docs-mintlify run status

Then re-run pnpm -C docs-mintlify run dev.

Package scripts

From repo root:

pnpm -C docs-mintlify run lint
pnpm -C docs-mintlify run typecheck
pnpm -C docs-mintlify run build
pnpm -C docs-mintlify run clean

lint runs both mint validate and mint broken-links.