# ButterIX > ButterIX 的官方文档:docs.yml 配置、MDX 组件、OpenAPI 参考、多版本与多语言、部署与自托管、Agent 友好特性(.md、llms.txt、MCP)。 For the MDX source of any page, append `.mdx` to its URL. Full content: https://docs.butterix.com/en/llms-full.txt Add `?excludeSpec=true` to this file's URL to leave out the API specifications. Add `?excludeChangelog=true` to this file's URL, or to llms-full.txt's, to leave out the changelog. ## Guides - [Welcome to ButterIX](https://docs.butterix.com/en/guides/get-started/introduction.md): ButterIX is a platform that builds API documentation sites from OpenAPI and MDX. This page covers what it can do, who it's for, and where to start. - [Quickstart](https://docs.butterix.com/en/guides/get-started/quickstart.md): Install the biti CLI and ship your first docs site with biti init, biti login, biti dev, and biti deploy. - [Core concepts](https://docs.butterix.com/en/guides/get-started/concepts.md): The ButterIX rendering pipeline, the site model (tabs, sections, pages), variants (product × version × locale), and the split between static output and the dynamic runtime. - [Project structure](https://docs.butterix.com/en/guides/get-started/project-structure.md): Directory conventions for biti projects — docs.yml lookup order, pages, openapi, assets, snippets, changelog, versions, translations, and .biti. - [docs.yml reference](https://docs.butterix.com/en/guides/configuration/docs-yml.md): Every docs.yml field — site info, logo, colors, fonts, layout, theme, navbar links, tabs, navigation, versions, products, locales, redirects, announcements, analytics, AI, SEO, agents, custom CSS/JS, footer, and edit links. - [Navigation](https://docs.butterix.com/en/guides/configuration/navigation.md): All navigation node types (section, page, link, folder, changelog, api), tabs, hiding and collapsing, tags, and slug generation rules. - [Changelog](https://docs.butterix.com/en/guides/configuration/changelog.md): Changelog and blog directory and file naming, the overview.mdx page, referencing it in navigation as a tab or an item, entry frontmatter (title, tags, description, draft, hidden), several updates per file with - [Frontmatter](https://docs.butterix.com/en/guides/configuration/frontmatter.md): Every MDX page frontmatter field — title, subtitle, description, slug, sidebar-title, icon, icon-style, tags, layout, hide-toc, max-toc-depth, hide-nav-links, hide-feedback, hide-title, noindex, keywords, canonical-url, og fields, and last-updated. - [Customize the look](https://docs.butterix.com/en/guides/configuration/appearance.md): An overview of customizing a ButterIX site's appearance — wide mode (page-width full) and page layouts (overview, page, reference, custom), page hero images and frosted glass, header background color / opacity / blur, announcement bar background and text color, the default footer and custom MDX footers, the Powered by ButterIX badge, table skins and column widths, styling components with CSS and custom scripts, plus where each setting lives in the editor. - [Markdown basics](https://docs.butterix.com/en/guides/writing/markdown.md): Markdown and MDX syntax supported by ButterIX — headings and custom anchors, emphasis, links, lists, task lists, tables, blockquotes, footnotes, HTML elements, comments, and escaping. - [Code blocks](https://docs.butterix.com/en/guides/writing/code-blocks.md): Code fence meta syntax (title, line highlighting, focus, startLine, maxLines, wordWrap, showLineNumbers, for, collapsible, diff), end-of-line annotations, and the CodeGroup, CodeBlock, and Code components. - [Images and media](https://docs.butterix.com/en/guides/writing/media.md): Using images (click to zoom), Frame, Video, Embed, and Download in ButterIX pages, plus asset path rules and how SVGs are handled safely. - [Math and diagrams](https://docs.butterix.com/en/guides/writing/math-and-diagrams.md): Using inline and block LaTeX math (KaTeX) in ButterIX, plus Mermaid diagrams (flowchart, sequence, state, gantt, and more), including dark mode and on-demand loading. - [Reusable snippets and variables](https://docs.butterix.com/en/guides/writing/snippets.md): Reusable snippets in ButterIX (the Markdown / Snippet / Include components and import), snippet parameter placeholders, page-level export const variables, and showing content by locale, version, or product with the If component. - [Safe subset](https://docs.butterix.com/en/guides/writing/safe-mdx.md): The ButterIX MDX safe subset — allowed imports, exports, expressions, and prop values, the HTML allowlist, rejected syntax and its diagnostics, and why arbitrary JavaScript isn't allowed. - [Import OpenAPI](https://docs.butterix.com/en/guides/api/openapi.md): Generate an API reference in ButterIX from OpenAPI 3.x / Swagger 2 — the api navigation node, tag grouping and ordering, endpoint titles and URLs, availability, hidden endpoints, multiple APIs, the overview page, and embedding endpoint snippets in MDX. - [Code samples](https://docs.butterix.com/en/guides/api/code-samples.md): Code samples in the ButterIX API reference — auto-generated cURL, Python, TypeScript, Go, Ruby, Java, PHP, C#, and Swift examples, x-codeSamples language matching, language sync, and filtering example languages in guides. - [Try it and proxy](https://docs.butterix.com/en/guides/api/try-it.md): The "Try it" explorer in the ButterIX API reference, in-page RunnableEndpoint, local storage of credentials, and the security rules and CORS setup for the /_biti/proxy try-it proxy. - [Webhooks and SSE](https://docs.butterix.com/en/guides/api/webhooks-and-sse.md): Documenting webhooks (OpenAPI 3.1 webhooks, HOOK pages, WebhookPayloadSnippet, signature verification guidance) and server-sent events (text/event-stream, x-fern-streaming, streaming examples) in ButterIX. - [Versions](https://docs.butterix.com/en/guides/features/versions.md): Configure versioned docs in ButterIX — the versions field, version navigation files, URL prefixes, the version switcher, same-page switching rules, canonical for older versions, availability and hidden, products × versions, and the in-page Versions component. - [Internationalization](https://docs.butterix.com/en/guides/features/i18n.md): Internationalization in ButterIX — the languages config, the translations directory convention, labels.yml, fallback for missing translations, language switching and hreflang, the biti translate command and translation memory, glossaries, AI translation on the platform, and current limitations. - [SEO](https://docs.butterix.com/en/guides/features/seo.md): SEO in ButterIX — static HTML, title templates and meta, canonical (including older versions), hreflang, Open Graph and Twitter cards, JSON-LD structured data, sitemap.xml, robots.txt and AI crawler policy, redirects, trailing slashes, 404, preview deployments, and performance. - [Agent-friendly](https://docs.butterix.com/en/guides/features/agents.md): ButterIX features for AI and coding agents — the .mdx source and clean Markdown of every page with a page directive, Accept content negotiation, Markdown 404s, page actions with one-click MCP setup, llms.txt and llms-full.txt, the site MCP server (search_docs, get_page, list_pages, send_feedback), hosted skills, API specs and the API catalog, link parameters, and the writing skill and biti check --json for agents that edit docs. - [Ask AI](https://docs.butterix.com/en/guides/features/ask-ai.md): Ask AI in ButterIX — what readers can ask, what answers are based on, choosing a model and adding a key, extra instructions, custom answers, content sources, the ai config in docs.yml, hiding personal data, usage limits, and the question log and resolution rate. - [Embed Ask AI](https://docs.butterix.com/en/guides/features/ask-ai-embed.md): Embed ButterIX Ask AI in other websites — allowed origins, the button and input bar entries, light and dark accent colors and color mode, panel size and position, opening it and changing options from code with window.ButterIX, sending the address and breadcrumb of the reader's page with each question, the Content Security Policy directives to allow, and where it's available. - [Console agent](https://docs.butterix.com/en/guides/features/console-agent.md): The ButterIX console agent — what it does, drafts and review, changes that need your approval, suggestions, documentation gaps, chats, permissions and switches, usage and limits, how it differs from your readers' Ask AI, and its security boundaries. - [Scheduled tasks](https://docs.butterix.com/en/guides/features/automations.md): Scheduled tasks in ButterIX — write instructions, run them daily or weekly in your time zone, report only or allow changes to the docs, draft branches and review, the run history, AI quota and limits, and the matching API. - [Docs eval](https://docs.butterix.com/en/guides/features/evals.md): Docs eval in ButterIX — writing evals.yml, answering and grading with your own model key using biti eval, a pass mark in CI, questions from what readers asked, and the history of results in the dashboard. - [Page review](https://docs.butterix.com/en/guides/features/page-review.md): Page review in ButterIX — owner, verified and review-every in frontmatter, review periods and statuses, the list of pages to review in the dashboard, dates for readers and AI tools, and reminders with biti check --review and scheduled tasks. - [Analytics](https://docs.butterix.com/en/guides/features/analytics.md): Analytics on the ButterIX hosted platform — server-side access logs, classification rules for human and AI traffic, Markdown requests, index and spec files, MCP calls, top pages, AI agents, referrers, 404s, search terms, the AI question log and page feedback, plus integrating third-party analytics such as GA4, Plausible, and PostHog. - [Export and print](https://docs.butterix.com/en/guides/features/export.md): Exporting and printing with ButterIX: printing a page, PDFs of a section or the whole site, a ZIP of Markdown with images, and the options of biti export. - [Hosted platform](https://docs.butterix.com/en/guides/deploy/platform.md): Overview of the ButterIX hosted platform — host layout, organizations and roles, quotas and usage, site templates, the three content sources (hosted repository, Git, CLI upload), the build queue and deployment retention, and the system console. - [CLI deployment and API keys](https://docs.butterix.com/en/guides/deploy/cli-deploy.md): Create a ButterIX organization API key, authenticate with biti login or BITI_TOKEN, biti deploy options, packing rules and preview deployments, plus example configs for GitHub Actions and other CI. - [Git deployments](https://docs.butterix.com/en/guides/deploy/git.md): Connect a ButterIX site to a Git repository — repository URL, branch, and access token; configure a GitHub webhook (Payload URL, Secret, events); deployment rules for pushes and pull requests, signature verification, working with the visual editor, and disconnecting. - [Previews and rollbacks](https://docs.butterix.com/en/guides/deploy/previews-and-rollbacks.md): The ButterIX deployment model — immutable deployments and the production pointer, deployment statuses, where preview deployments come from and their URLs, noindex and banner on previews, promote to production (rollback), canceling queued deployments, and the deployment retention policy. - [Custom domains](https://docs.butterix.com/en/guides/deploy/custom-domains.md): Set up a custom domain for a ButterIX hosted site — adding the domain, the CNAME to sites.butterix.com, _butterix TXT ownership verification, automatic HTTPS certificates and renewal, multiple domains, deploying under a subpath, and FAQ. - [Access control](https://docs.butterix.com/en/guides/deploy/access-control.md): Access control for ButterIX hosted sites — public and password-protected modes, the visitor experience, what changing the password does, coverage of preview deployments and custom domains, access tokens and MCP sign-in, and visibility to search engines and AI. - [Account security](https://docs.butterix.com/en/guides/deploy/account-security.md): ButterIX account security settings — turning on two-factor authentication (TOTP authenticator apps), saving and regenerating recovery codes, registering multiple passkeys and signing in with a passkey instead of a password, reviewing sessions and signing out other sessions, and what to do if you lose your authenticator. - [Visual editor](https://docs.butterix.com/en/guides/deploy/editor.md): The visual editor in the ButterIX dashboard — draft branch workflow, file tree and navigation, live rendering and diagnostics, the component props panel, image uploads, concurrent edit conflicts, preview deployments, publishing and AI translation, and which sites it works with. - [CLI reference](https://docs.butterix.com/en/guides/reference/cli.md): biti CLI reference — options and examples for init, dev, check, eval, export, login, deploy, pull, translate, and components, plus exit codes and environment variables. - [Migration tool](https://docs.butterix.com/en/guides/reference/migrate.md): How to use biti migrate — recognize Mintlify, Fern, Docusaurus, GitBook, ReadMe, Starlight, VitePress, Nextra, Fumadocs and MkDocs projects, print migration steps for a coding agent, and compare pages, text, code, images, addresses, redirects and API operations with the new project. - [Migrate from Fern](https://docs.butterix.com/en/guides/reference/migrate-from-fern.md): Migrate Fern docs to ButterIX — reading fern/docs.yml directly, config field mapping, the openapi path needed for API sections, supported x-fern extensions, component compatibility, syntax to adjust (line-number props, custom components, snippet variables), and a migration checklist. - [Migrate from Mintlify](https://docs.butterix.com/en/guides/reference/migrate-from-mintlify.md): Migrate Mintlify docs to ButterIX — what docs.json / mint.json auto-conversion covers, how page URLs change, mapping for rewriting as docs.yml, Mintlify component and prop compatibility, and migrating snippets and OpenAPI. - [FAQ](https://docs.butterix.com/en/guides/reference/faq.md): ButterIX FAQ — the relationship to other docs platforms, components not rendering, non-English URLs, hidden pages, site search, OpenAPI versions, search and Ask AI in the development preview, AI index updates, analytics, RTL, and asset paths. ## Components - [Components overview](https://docs.butterix.com/en/components/overview.md): Categorized index of every ButterIX MDX component — callouts and labels, layout, tabs and disclosure, content, buttons and links, code, API, and utility components, one page each, plus conventions shared by all components. - [Callouts](https://docs.butterix.com/en/components/callout.md): and its aliases , , , … highlight important information with color and an icon. - [Banner](https://docs.butterix.com/en/components/banner.md): is an in-page notice bar for deprecations and migrations. - [Badge](https://docs.butterix.com/en/components/badge.md): (alias ) is a small inline label for status, versions or methods. - [Tooltip](https://docs.butterix.com/en/components/tooltip.md): shows extra context on hover or keyboard focus. - [Cards](https://docs.butterix.com/en/components/card.md): and for navigation and overviews, with icons, images and links. - [Tile](https://docs.butterix.com/en/components/tile.md): is a link card with a preview area, for showcasing examples, templates or integrations. - [Columns](https://docs.butterix.com/en/components/columns.md): (alias ) and form a 1–4 column layout that stacks on narrow screens. - [Aside](https://docs.butterix.com/en/components/aside.md):