Skip to content

Repository files navigation

agentline-docs

The AgentLine documentation site, built with Mintlify.

  • Docs site is served by Mintlify on push to main once the repo is connected in the Mintlify dashboard.
  • API Reference is auto-generated from openapi.json (the same curated spec the SDKs are generated from), so docs, SDKs, and API always agree.

Repo layout

docs.json             # Site config (navigation, theme, API settings)
openapi.json          # Curated OpenAPI spec → powers the API Reference tab
introduction.mdx      # Landing page
quickstart.mdx        # Get started
authentication.mdx    # Auth
guides/*.mdx          # Conceptual guides
sdk/*.mdx             # SDK usage (Python, Node)
AGENTS.md             # Instructions for the Mintlify AI agent + your AI tools

How Mintlify works here

docs.json is the single source of truth for the site. It declares:

  • branding (name, colors.primary, theme),
  • a Documentation tab (hand-written MDX pages in navigation.groups),
  • an API Reference tab declared as { "tab": "API Reference", "openapi": "openapi.json" }. Mintlify reads openapi.json, groups endpoints by their OpenAPI tags (Agents, Numbers, Calls, …), and builds an interactive, try-it-now API reference automatically.

You do not hand-write the API Reference pages — they regenerate from the spec whenever it changes.

Run it locally

npm install -g mint      # one-time: install the Mintlify CLI
mint dev                 # live preview at http://localhost:3000

mint dev hot-reloads MDX and docs.json. Use it to preview before pushing.

Quality gates

.github/workflows/docs-check.yml runs on every PR:

  • mint validate — checks docs.json + the OpenAPI spec for errors.
  • mint broken-links — checks every internal link resolves.

The same workflow refreshes openapi.json daily from the agentline-sdks repo (the source of truth) and commits any change — which triggers a docs redeploy.

Deploy (one-time setup)

  1. Go to https://dashboard.mintlify.comAdd project → connect this GitHub repo.
  2. Set the deployment branch to main. Mintlify deploys on every push.
  3. (Optional) Add a custom domain (e.g. docs.agentline.cloud) in the dashboard.

No build command is needed — Mintlify builds and hosts the site for you.

Creating & maintaining content

Add a page

  1. Create an MDX file, e.g. guides/billing.mdx, with frontmatter:

    ---
    title: Billing
    description: Manage your balance and view spending.
    ---
    
    # Billing
    ...
  2. Add the file (without extension) to docs.jsonnavigation → the right group:

    { "group": "Guides", "pages": ["guides/agents", "guides/billing"] }
  3. mint dev to preview, then push. The PR checks validate it.

Reorder / regroup

Edit the navigation arrays in docs.json. The sidebar follows that order. Tabs (navigation.tabs) give you top-level sections; groups are sidebar headers.

Components

MDX supports Mintlify components: <Note>, <Warning>, <Tip>, <CodeGroup>, <Steps>, <Card>, <Accordion>, <Tabs>, <ParamField>, <ResponseField>, Mermaid diagrams, etc. See https://www.mintlify.com/docs/components.

Keep the API Reference in sync

The API Reference is never edited by hand — it comes from openapi.json. To expose, hide, or rename an endpoint, change the source of truth: the SDK_SURFACE map in agentline-sdks/scripts/export_openapi.py. The daily CI job pulls the refreshed spec into this repo, and Mintlify regenerates the pages.

Use the AI agent

Mintlify ships an AI agent (dashboard + AGENTS.md). Open the editor in the dashboard and ask it to “add a guide on voice presets” — it drafts a PR you review. The AGENTS.md in this repo gives it house-style rules.

Branding quick changes

Edit docs.json:

  • name — site/product name
  • colors.primary — brand color (hex)
  • thememint (or others)
  • appearance.logo — add images/logo.svg and reference it
  • footer.links — footer links

About

AgentLine documentation (Mintlify) — guides, SDKs, and an interactive API reference generated from OpenAPI

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages