### Install Mintlify CLI and start development server Source: https://github.com/antons-agents/docs/blob/main/quickstart.mdx Commands to install the CLI globally and launch the local preview server. ```bash npm i -g mint ``` ```bash mint dev ``` -------------------------------- ### Install Mintlify CLI Source: https://github.com/antons-agents/docs/blob/main/README.md Installs the Mintlify CLI globally to enable local previewing of documentation. ```bash npm i -g mint ``` -------------------------------- ### Start Local Development Server Source: https://github.com/antons-agents/docs/blob/main/README.md Launches the local development server at the root of the documentation project. ```bash mint dev ``` -------------------------------- ### Port Conflict Warning Source: https://github.com/antons-agents/docs/blob/main/development.mdx Example output when the default port is already occupied. ```text Port 3000 is already in use. Trying 3001 instead. ``` -------------------------------- ### Define Step-by-Step Procedures Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Use the Steps component to guide users through sequential tasks. ```bash npm install my-package ``` ```bash npx my-package init ``` ```mdx ```bash npm install my-package ``` Run the init command in your project root. Start using the package in your code. ``` -------------------------------- ### Install Claude Code globally Source: https://github.com/antons-agents/docs/blob/main/ai-tools/claude-code.mdx Installs the Claude Code CLI tool globally using npm. ```bash npm install -g @anthropic-ai/claude-code ``` -------------------------------- ### Install Mintlify skill Source: https://github.com/antons-agents/docs/blob/main/ai-tools/claude-code.mdx Adds the Mintlify skill to the current project directory to provide component references and writing standards. ```bash npx skills add https://mintlify.com/docs ``` -------------------------------- ### Start Claude Code Source: https://github.com/antons-agents/docs/blob/main/ai-tools/claude-code.mdx Launches the Claude Code interactive agent in the terminal. ```bash claude ``` -------------------------------- ### Create a singleline blockquote Source: https://github.com/antons-agents/docs/blob/main/essentials/markdown.mdx Add a > character at the start of a paragraph to create a blockquote. ```md > Dorothy followed her through many of the beautiful rooms in her castle. ``` -------------------------------- ### Configure contextual toolbar options Source: https://github.com/antons-agents/docs/blob/main/agent-ready/contextual.mdx Define the available tools in the contextual menu by adding them to the contextual.options array in docs.json. ```json { "contextual": { "options": ["copy", "view", "claude", "chatgpt", "mcp", "cursor", "vscode"] } } ``` -------------------------------- ### Basic Prompt usage Source: https://github.com/antons-agents/docs/blob/main/agent-ready/prompt.mdx Displays a simple prompt with a description and text content. ```mdx You are a technical writer. Given the following API endpoint documentation, write a one-paragraph summary that explains what the endpoint does, what inputs it requires, and what it returns. Be concise and use plain language. ``` -------------------------------- ### Configure site identity Source: https://github.com/antons-agents/docs/blob/main/essentials/settings.mdx Define the site name, theme, and logo assets in the docs.json file. ```json { "name": "Acme Docs", "theme": "mint", "favicon": "/favicon.svg", "logo": { "light": "/logo/light.svg", "dark": "/logo/dark.svg" } } ``` -------------------------------- ### Configure contextual toolbar Source: https://github.com/antons-agents/docs/blob/main/essentials/settings.mdx Enable specific AI tools and integrations in the floating contextual toolbar. ```json { "contextual": { "options": ["copy", "view", "claude", "mcp", "cursor", "vscode"] } } ``` -------------------------------- ### Combining Visibility with Prompt Source: https://github.com/antons-agents/docs/blob/main/agent-ready/visibility.mdx Use Visibility to provide structured context to agents while offering a Prompt component for human users to interact with AI. ```mdx ## Authentication schema - Method: Bearer token - Header: `Authorization: Bearer ` - Token TTL: 86400 seconds - Refresh endpoint: POST /v1/auth/refresh Explain how authentication works in this API and show me example code for getting a token and making an authenticated request. ``` -------------------------------- ### Organize site navigation Source: https://github.com/antons-agents/docs/blob/main/essentials/settings.mdx Structure pages into tabs and groups, and define global anchors. ```json { "navigation": { "tabs": [ { "tab": "Guides", "groups": [ { "group": "Getting started", "pages": ["index", "quickstart"] } ] } ], "global": { "anchors": [ { "anchor": "Blog", "href": "https://example.com/blog", "icon": "newspaper" } ] } } } ``` -------------------------------- ### Create Card Layouts Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Use Columns and Card components to create navigation or informational grids. ```mdx Auto-generated docs from your OpenAPI spec. Get your docs running in three steps. ``` -------------------------------- ### Implement Tabs for Alternative Content Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Tabs allow users to toggle between different language or environment configurations. ```bash npm install my-package ``` ```bash yarn add my-package ``` ```bash pnpm add my-package ``` ```mdx ```bash npm install my-package ``` ```bash yarn add my-package ``` ```bash pnpm add my-package ``` ``` -------------------------------- ### Prompt with Cursor integration Source: https://github.com/antons-agents/docs/blob/main/agent-ready/prompt.mdx Includes an 'Open in Cursor' button by setting the actions prop to include 'cursor'. ```mdx You are an expert TypeScript developer. Given the following OpenAPI specification, generate a fully-typed API client using native fetch... ``` -------------------------------- ### Update Mintlify CLI Source: https://github.com/antons-agents/docs/blob/main/development.mdx Update the CLI to ensure the local preview matches the production version. ```bash npm mint update ``` -------------------------------- ### Source: https://github.com/antons-agents/docs/blob/main/agent-ready/prompt.mdx The Prompt component is a UI element used to display AI prompts. It supports custom descriptions, icons, and configurable action buttons for copying or opening in Cursor. ```APIDOC ## ### Description A component that displays a pre-built AI prompt with interactive actions for users to copy the text or open it in the Cursor editor. ### Props - **description** (string) - Required - Heading text shown above the prompt content. Supports Markdown. - **children** (string) - Required - The prompt text that gets copied or sent to Cursor. - **actions** (array) - Optional - Which action buttons to show. Options: "copy", "cursor". Defaults to ["copy"]. - **icon** (string) - Optional - An icon displayed alongside the description. Supports Font Awesome, Lucide, and Tabler icon names, image URLs, or inline SVG. ### Usage Example You are an expert TypeScript developer. Given the following OpenAPI specification, generate a fully-typed API client using native fetch. ``` -------------------------------- ### Configure Navigation with Folders Source: https://github.com/antons-agents/docs/blob/main/essentials/navigation.mdx Specifies a path to an MDX file located within a subfolder in the navigation configuration. ```json "navigation": { "tabs": [ { "tab": "Docs", "groups": [ { "group": "Group Name", "pages": ["your-folder/your-page"] } ] } ] } ``` -------------------------------- ### Configure navbar Source: https://github.com/antons-agents/docs/blob/main/essentials/settings.mdx Add navigation links and a primary call-to-action button to the top navigation bar. ```json { "navbar": { "links": [ { "label": "Support", "href": "mailto:support@example.com" } ], "primary": { "type": "button", "label": "Dashboard", "href": "https://dashboard.example.com" } } } ``` -------------------------------- ### Configure Custom Port Source: https://github.com/antons-agents/docs/blob/main/development.mdx Specify a custom port for the development server using the --port flag. ```bash mint dev --port 3333 ``` -------------------------------- ### Create a title header Source: https://github.com/antons-agents/docs/blob/main/essentials/markdown.mdx Use double hashes to create a section header. ```md ## Titles ``` -------------------------------- ### Import snippet with relative path Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Use relative imports to enable editor navigation features like CMD+click. ```mdx import Prerequisites from '../snippets/prerequisites.mdx'; ``` -------------------------------- ### Import a content snippet Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Use root-relative paths to import and render snippets as components in MDX pages. ```mdx --- title: Install the SDK --- import Prerequisites from '/snippets/prerequisites.mdx'; ## Installation ... ``` -------------------------------- ### Compose snippets Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Import snippets within other snippets to build complex, modular documentation sections. ```mdx import AuthNote from '/snippets/auth-note.mdx'; ## Authentication All endpoints require a bearer token. ``` -------------------------------- ### Add custom toolbar entries Source: https://github.com/antons-agents/docs/blob/main/agent-ready/contextual.mdx Extend the toolbar with custom actions by providing a title, description, icon, and href. The href supports dynamic placeholders like $path to reference the current page. ```json { "contextual": { "options": [ "copy", "claude", { "title": "Open issue", "description": "Report a problem with this page", "icon": "github", "href": "https://github.com/your-org/docs/issues/new?title=Issue+on+$path" } ] } } ``` -------------------------------- ### Create a subtitle header Source: https://github.com/antons-agents/docs/blob/main/essentials/markdown.mdx Use triple hashes to create a subsection header. ```md ### Subtitles ``` -------------------------------- ### Add image with Markdown Source: https://github.com/antons-agents/docs/blob/main/essentials/images.mdx Standard Markdown syntax for embedding images. Ensure the file size is under 5MB. ```md ![title](/path/image.jpg) ``` -------------------------------- ### Define a content snippet Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Create a reusable MDX file in the snippets directory to store shared content. ```mdx Before you begin, make sure you have: - Node.js 18 or higher - An API key from your [dashboard](https://dashboard.example.com) ``` -------------------------------- ### Display inline code Source: https://github.com/antons-agents/docs/blob/main/essentials/code.mdx Use backticks to format text as inline code. ```markdown To denote a `word` or `phrase` as code, enclose it in backticks (`). ``` -------------------------------- ### Define site colors Source: https://github.com/antons-agents/docs/blob/main/essentials/settings.mdx Set primary and mode-specific brand colors for the site. ```json { "colors": { "primary": "#16A34A", "light": "#07C983", "dark": "#15803D" } } ``` -------------------------------- ### Display Callouts in MDX Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Use these components to highlight specific types of information within your documentation. ```mdx A **Note** is for general information that helps the reader. A **Tip** highlights a helpful shortcut or best practice. A **Warning** flags something that could cause problems. An **Info** callout provides supplementary context. ``` -------------------------------- ### Create a Java code block Source: https://github.com/antons-agents/docs/blob/main/essentials/code.mdx Use triple backticks with a language identifier to create a syntax-highlighted code block. ```java class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } ``` ```md ```java HelloWorld.java class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } ``` ``` -------------------------------- ### Configure Navigation Structure Source: https://github.com/antons-agents/docs/blob/main/essentials/navigation.mdx Defines the structure of the navigation menu using tabs and groups in docs.json. ```json "navigation": { "tabs": [ { "tab": "Docs", "groups": [ { "group": "Getting Started", "pages": ["quickstart"] } ] } ] } ``` ```json "navigation": { "tabs": [ { "tab": "Docs", "groups": [ { "group": "Getting Started", "pages": [ "quickstart", { "group": "Nested Reference Pages", "pages": ["nested-reference-page"] } ] } ] } ] } ``` -------------------------------- ### Validate Documentation Links Source: https://github.com/antons-agents/docs/blob/main/development.mdx Identify broken links within the documentation project. ```bash mint broken-links ``` -------------------------------- ### Render LaTeX math Source: https://github.com/antons-agents/docs/blob/main/essentials/markdown.mdx Use the component to render mathematical expressions. ```md 8 x (vk x H1 - H2) = (0,1) ``` -------------------------------- ### Use variable snippets inline Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Import exported constants and use them directly within MDX content. ```mdx import { sdkVersion, baseUrl } from '/snippets/vars.mdx'; The current SDK version is **{sdkVersion}**. All requests go to `{baseUrl}`. ``` -------------------------------- ### Embed content with iFrame Source: https://github.com/antons-agents/docs/blob/main/essentials/images.mdx Use iframes to load external HTML pages or videos within the documentation. ```html ``` -------------------------------- ### Frame Images Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Wrap images in a Frame to apply a border and rounded corners. ```mdx App screenshot ``` -------------------------------- ### Add image with HTML Source: https://github.com/antons-agents/docs/blob/main/essentials/images.mdx Use HTML img tags for greater control over image dimensions and attributes. ```html ``` -------------------------------- ### Add Accordions for Collapsible Content Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Accordions are ideal for FAQs or hiding optional details to keep pages clean. ```mdx A brief answer to the first question. Another answer here. ``` -------------------------------- ### Define component snippets Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Export arrow function components that accept props to create dynamic, reusable UI elements. ```mdx export const EndpointNote = ({ method, path }) => ( This guide covers the {method} {path} endpoint. See the API reference for full details. ); ``` -------------------------------- ### Conditional content rendering with Visibility Source: https://github.com/antons-agents/docs/blob/main/agent-ready/visibility.mdx Use the Visibility component to toggle content between human-readable UI steps and machine-readable API instructions. ```mdx Navigate to [dashboard.example.com](https://dashboard.example.com) and sign in. Go to **Settings → API Keys** and click **New key**. To authenticate, send a POST request to `/v1/auth/token` with the user's email and password in the request body. The response includes a bearer token valid for 24 hours. Pass this token as `Authorization: Bearer ` on all subsequent requests. ``` -------------------------------- ### Configure footer socials Source: https://github.com/antons-agents/docs/blob/main/essentials/settings.mdx Add social media links to the site footer. ```json { "footer": { "socials": { "x": "https://x.com/yourhandle", "github": "https://github.com/yourorg", "linkedin": "https://linkedin.com/company/yourco" } } } ``` -------------------------------- ### Create a multiline blockquote Source: https://github.com/antons-agents/docs/blob/main/essentials/markdown.mdx Use > on multiple lines to create a multiline blockquote. ```md > Dorothy followed her through many of the beautiful rooms in her castle. > > The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood. ``` -------------------------------- ### Define variable snippets Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Export named constants from a snippet file to share values like versions or URLs. ```mdx export const sdkVersion = '3.2.0'; export const baseUrl = 'https://api.example.com/v1'; ``` -------------------------------- ### Render component snippets with props Source: https://github.com/antons-agents/docs/blob/main/essentials/reusable-snippets.mdx Pass props to the imported component snippet when rendering it in a page. ```mdx import { EndpointNote } from '/snippets/endpoint-note.mdx'; ``` -------------------------------- ### Group Code Snippets Source: https://github.com/antons-agents/docs/blob/main/essentials/components.mdx Use CodeGroup to display multiple language variants of the same code block. ```typescript const response = await fetch('https://api.example.com/users'); const users = await response.json(); ``` ```python import requests response = requests.get('https://api.example.com/users') users = response.json() ``` ```bash curl https://api.example.com/users ``` ```mdx ```typescript TypeScript const response = await fetch('https://api.example.com/users'); ``` ```python Python response = requests.get('https://api.example.com/users') ``` ``` -------------------------------- ### Configure Bearer Authentication in OpenAPI Source: https://github.com/antons-agents/docs/blob/main/api-reference/introduction.mdx Defines the security requirement for API endpoints using Bearer tokens within an OpenAPI specification. ```json "security": [ { "bearerAuth": [] } ] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.