# What is Specly Source: https://doc.specly.xyz/get-started/what-is-specly > Specly builds and hosts a docs site from the Markdown in your GitHub repo, and helps you keep it in step with your code. You write your docs as MDX pages, keep them in a GitHub repo, and Specly turns them into a site at `https://.specly.xyz`. You edit in the dashboard or in your repo. Either way, every change reaches the site through Git. These docs are a Specly site too. ## Your docs stay in your repo A Specly site is a folder of plain files: - **Pages:** `.md` and `.mdx` files. Each one's frontmatter gives its `title` and `description`. - **`docs.json`:** the site's name, logo and navigation, with every page listed in tabs and groups. - **`theme.json`:** colours and fonts. It's optional. Specly reads Mintlify's format: its `docs.json` and its components, with no imports. A Mintlify repo builds without changes, and docs from Docusaurus, MkDocs, Starlight or VitePress can be converted. See [Move to Specly](/get-started/migrate). Specly builds your site on every push to the docs branch, and checks every page and link before it goes live. Since your docs are plain files in your repo, they stay yours if you leave Specly. ## What you get ### The dashboard At [app.specly.xyz](https://app.specly.xyz) you set up a site, write, and publish: - **Editor:** write pages in **Write**, **Markdown** or **Preview** mode, with comments, @mentions and each page's history. - **Publish:** see what changed and what the checks found, then open a pull request or commit. - **Deploys:** every build and the problems it found, plus a preview for each docs pull request. - **Analytics:** readers, views, searches that found nothing, and feedback. It uses no cookies. - **Settings:** who can read the site, your team's roles, and API keys for scripts and CI. A site can be read by anyone, behind **One shared password**, or only by **People you allow**. Set it in **Settings › Site › Access**. ### The docs agent The docs agent keeps your docs in step with your code: - When a pull request in your code repo changes something the docs describe, it drafts the docs change. - It fixes a passage from a comment thread, writes a page readers searched for and didn't find, and translates pages. Its work arrives as suggestions you accept or reject, or as pull requests you review. Unless an admin allows it, nothing it writes goes live until you accept it or merge it. You can also connect a coding agent, such as Claude, ChatGPT or Cursor, to read your docs and propose changes. ### What your readers get - Search with ⌘K and, once you turn it on, **Ask AI** with ⌘I, which answers from your pages only. - Light and dark mode, and the date each page last changed, with why. - "Was this page helpful?" at the foot of each page. Answers show in **Analytics**. - For AI tools: a Markdown copy of every page, `llms.txt` and `llms-full.txt`, and a page menu that copies the page or opens it in Claude or ChatGPT. ## Next Get a site live with the [Quickstart](/get-started/quickstart). # Quickstart Source: https://doc.specly.xyz/get-started/quickstart > Go from an invite to a live docs site at .specly.xyz, then publish your first edit. You connect a GitHub repo, pick how your docs start, and merge one pull request. Your site then goes live at `https://.specly.xyz`, and every change after that reaches it through Git. > **Note:** Specly is invite-only for now. [Join the waitlist](https://specly.xyz/#waitlist), and we'll email you when your spot > opens. ## Before you start You need: - an invited email address; - a GitHub repo for your project, or an empty one for your docs; - the right to install a GitHub app on that repo's account. Only an owner of a GitHub organization or account can connect it to Specly. To create your account: 1. Open [app.specly.xyz](https://app.specly.xyz) and choose **Create an account**. 2. Enter the address you were invited with and a name for your organization. If a teammate invited you, you join their organization instead. 3. Choose **Email me a link to continue**, then open the link in the same browser and choose a password. With no site yet, the dashboard opens setup. To add another site later, open the site switcher and choose **New site**. Only an admin of your organization can add one. ## Set up your site Setup has six steps. Each one below is named as it is on screen. Nothing reaches your main branch until you merge Specly's pull request, and you can choose **Set up later** at any step to come back to it. 1. **Connect GitHub** Choose **Connect GitHub** and install the Specly app on GitHub. You pick which repos it can see. Specly reads your code to draft docs, and it opens pull requests for every change it writes. It never merges anything. You do, on GitHub. Once you're back, choose **Continue**. 2. **Pick the project** Choose the repo your docs are for. If your docs live in a different repo from your code, tick **My docs and code are in different repos** and pick the docs repo too. Choose **Scan** to go on. The button names your repo. 3. **What we found** Specly reads the repo's file tree, README and config files, and lists what it found: a README, a command-line tool, a monorepo's packages, and any docs you already have. - Folders that look internal, like `plans/` or `notes/`, are kept out of your site. Tick **It’s meant to be public** to keep one in. - Files that may hold a secret, like an `.env` file, are left out. Specly doesn't read them or send them to the model. - In a monorepo, choose which packages the docs cover. With more than one, each gets its own tab. The **We suggest** card names the start that fits best. Choose **Continue**. 4. **Choose a start** Pick how your docs begin: | Start | What you get | | --- | --- | | **Draft from your code** | Specly proposes an outline from your README and code. You rename, remove or add pages, then it writes them. | | **Start from a template** | Sections to fill in, for **A command-line tool**, **An API with SDKs** or **A product**. | | **Start blank** | One welcome page and the editor. | | Your existing docs | Specly uses or converts them. See [Move to Specly](/get-started/migrate). | For a draft, describe your readers under **Written for**, choose **Propose an outline**, edit it, then choose **Use this outline**. Specly writes only what your repo says. Anything it can't back up becomes a gap for you to fill. 5. **Where it lives** Choose where the docs files go: - **A new folder in** the project's repo. The folder is `docs-site` unless you change it. Docs sit next to the code, so one pull request can change both. - **A separate docs repo**. Specly can't create repos, so choose **Create it on GitHub ↗**, tick "Add a README" so the repo has a branch, then choose **Check again**. The step shows the files that will arrive, as one pull request. Choose **Create the files**, or for a draft, the button that writes your pages. When they're ready, choose **See the preview**. 6. **Preview and go live** Read the pages Specly made. Then choose your site's **Address**: the part before `.specly.xyz`. Use lowercase letters, digits and dashes. - Choose **Open the pull request**. Specly opens it in your docs repo. - Or choose **Edit pages first** to change them in the editor. Merge the pull request on GitHub. Specly builds the site and checks every page and link before it goes live. When the step says your docs are live, choose **Open the site ↗**. > **Tip:** If you chose **Use your docs as they are** and your repo already has a `docs.json`, there's nothing to add. Step 6 > then shows **Go live** instead, and Specly builds your docs straight away. ## Edit and publish Your site is live. Now change a page and publish it. 1. **Edit a page** Open **Editor** in the sidebar and pick a page. Write in **Write** mode, or switch to **Markdown** to edit the MDX itself. Your edit saves as a draft, and the editor shows "Saved · not published yet". 2. **Publish it** Choose **Publish** in the top bar. Specly shows the diff and runs its checks under "Checked before you publish". Choose **Open a pull request**. Under "What changed, for readers" you can add one sentence. It shows beside the date on the pages you changed. Then choose **Open pull request**. 3. **Merge it** Merge the pull request on GitHub. Specly builds the site again, and your change is live. You can also skip the dashboard: edit the files in your repo and push. Every push to the docs branch that changes the docs folder rebuilds the site. # Move to Specly Source: https://doc.specly.xyz/get-started/migrate > Bring docs you already have from Mintlify, Docusaurus, MkDocs, Starlight, VitePress or a folder of Markdown. Setup finds the docs already in your repo and offers to use them. Mintlify docs build as they are. Other tools' docs are converted into a new folder, and your old site keeps working. Follow the [Quickstart](/get-started/quickstart). This page explains what happens at steps 3 to 5 when you have docs. ## What setup finds At **What we found**, Specly looks through your repo for one docs setup. It takes the first match in this order. Within a tool it usually takes the config nearest the repo root, and a `docs.json` anywhere comes before a `mint.json`: | Tool | How Specly recognises it | Where it reads pages | | --- | --- | --- | | Mintlify | `docs.json`, or the older `mint.json` | The folder that holds it | | Docusaurus | `docusaurus.config.js`, `.ts`, `.mjs` or `.cjs` | The `docs/` folder beside it, else the config's own folder | | MkDocs | `mkdocs.yml` or `mkdocs.yaml` | Its `docs_dir`, else `docs/` | | Starlight | An `astro.config` file that uses `@astrojs/starlight` | `src/content/docs/` beside it | | VitePress | `.vitepress/config.js`, `.ts`, `.mjs` or `.mts` | The folder that holds `.vitepress/` | | A folder of Markdown | `.md` or `.mdx` pages, with no site config | `docs/`, `doc/`, `documentation/`, `guide/`, `guides/` or `wiki/` | Folders that look internal, like `plans/`, `notes/` or `internal/`, are left out. Tick **It’s meant to be public** at step 3 to keep one. ## What each start does At **Choose a start**, the option for your docs is named after what Specly found: | Found | The start | What happens | | --- | --- | --- | | Mintlify | **Use your docs as they are** | Specly builds the folder as it is. Nothing is rewritten. | | A folder of Markdown | **Use your Markdown** | A pull request adds a `docs.json` that lists your pages. Nothing is moved. | | Docusaurus, MkDocs, Starlight or VitePress | **Convert the docs you have** | A pull request adds a `docs.json` and converted pages beside the old ones. | Mintlify docs and Markdown folders stay where they are. If your Mintlify docs have only a `mint.json`, the pull request adds a `docs.json` with the same content. If they already have a `docs.json`, there's nothing to add: step 6 shows **Go live**, and Specly builds them straight away. Converted docs go where you choose at **Where it lives**: a new folder in the repo (`docs-site` unless you change it) or a separate docs repo. Your old setup is never touched. ## How pages are converted Specly copies each page and makes it Mintlify's format: - **Navigation.** Docusaurus's `sidebars` file and MkDocs's `nav:` become the navigation in `docs.json`. A Docusaurus site with several sidebars gets a tab for each. Otherwise, each folder becomes a group, ordered by `sidebar_position`, Starlight's `sidebar.order`, or a number prefix like `01-`. Docusaurus `_category_` files name the groups. - **Admonitions** become callouts: `:::note` in Docusaurus, `:::note[Title]` in Starlight, `::: tip` in VitePress, and `!!! note "Title"` or `??? note` in MkDocs. A title becomes the callout's first line, in bold. - **Frontmatter.** `sidebar_label` becomes `sidebarTitle`. If a page's frontmatter has no `title`, its leading `# Title` moves into `title`, so it isn't shown twice. - **Imports** from `@theme/`, `@site/` and `@docusaurus/` are removed. | Admonition | Callout | | --- | --- | | `note`, `quote`, `cite` | `` | | `tip`, `hint`, `important` | `` | | `info`, `abstract`, `summary`, `tldr`, `todo`, `question`, `help`, `faq`, `example` | `` | | `success`, `check`, `done` | `` | | `warning`, `caution`, `attention`, `danger`, `error`, `failure`, `fail`, `missing`, `bug` | `` | Any other type becomes a ``. > **Warning:** Specly copies pages only. Copy the images and other files your pages use into the new folder yourself. Files and folders whose names start with `.` or `_` aren't copied. Components the conversion doesn't know, like Docusaurus's ``, show in a dashed frame on the page, and the build warns about each one. ## What carries over from Mintlify A Mintlify repo builds without changes. Pages need no imports for Mintlify's components, and `docs.json` is read in its current format and its older one. ### docs.json | Key | Notes | | --- | --- | | `name`, `description` | `description` is the hero of the default home page. | | `navigation` | `tabs`, `groups` and `pages`, with `icon`, `expanded` and `root`; `anchors` and `global.anchors`; `versions` and `languages`; `openapi`. | | `navbar` | `links` and `primary`. | | `footer` | `links`, `socials` and `copyright`. | | `logo`, `favicon` | `logo` takes `light`, `dark` and `href`. | | `colors` | `primary`, and `light` for dark mode. A colour that's hard to read is moved to the nearest shade that passes, with a warning. | | `appearance` | `default` and `strict`. | | `banner` | `content` and `dismissible`. | | `contextual` | `options`: `copy`, `view`, `claude`, `chatgpt` and `cursor`. Others, like `perplexity` and `vscode`, are left out. | | `seo` | `metatags`. | | `api` | `openapi`, `playground.display`, `baseUrl` and `mdx.server`. | The older keys work too: `topbarLinks`, `topbarCtaButton`, `footerSocials`, `modeToggle`, `anchors`, `metadata`, and a `navigation` list with top-level `tabs`. Some features build in a simpler form, with a warning: - `dropdowns`, `products` and `menu` show as tabs. - Versions and languages at the top of `navigation` each build, with a switcher. Nested inside a tab, only the default one builds. - Navigation split into other files with `$ref` isn't read yet. ### Components These work in `.mdx` pages with no imports: | Kind | Components | | --- | --- | | Callouts | `Note`, `Info`, `Tip`, `Check`, `Warning`, `Danger`, `Callout` | | Cards | `Card`, `CardGroup`, `Columns`, `Tile` | | Layout | `Steps` and `Step`, `Tabs` and `Tab`, `AccordionGroup` and `Accordion`, `CodeGroup`, `Frame` | | Inline | `Badge`, `Icon`, `Tooltip` | | API | `ParamField`, `ResponseField`, `Expandable`, `RequestExample`, `ResponseExample`, `Panel` | | Other | `Update`, `Tree` with `Tree.Folder` and `Tree.File`, `Mermaid` | Snippets work both ways: ``, or an import from `/snippets/`. Icons take Lucide names, and Font Awesome names are mapped to the nearest Lucide icon. A component Specly doesn't know shows its content in a dashed frame, and the build warns with its file and line. ### Frontmatter `title`, `description`, `sidebarTitle`, `icon`, `mode`, `openapi`, `api`, `playground` and `rss` work as in Mintlify. `mode` takes `default`, `wide`, `center`, `custom` or `frame`. ### Links If your `docs.json` is in Mintlify's own format (it has `$schema` or `theme`), a broken link only warns. Otherwise it stops the build. # Changelog Source: https://doc.specly.xyz/changelog > What's new in Specly, newest first. Follow it with the RSS feed. ## 2026-12-04 *Page views count readers, not crawlers* - A page view now counts when the page opens in a reader's browser, as most analytics tools count. Crawlers that fetch your pages while calling themselves a browser were counted as readers before, and made up most of the views on small sites. Expect lower numbers from today; the days before stay as they were counted. - A page in a frame, a page opened by an automated browser, and a page the browser prepared but never showed aren't counted. AI agents are still counted when they read a page. ## 2026-12-04 *Home shows your site* - Home opens on your live site, small, in a frame you can click to visit, beside what is true of it: its address, where its docs come from, what the live build checked, how many pages match your code, and what the docs agent is doing. A private site, or one that isn't live yet, shows an outline in its place. - **Needs you** lists what needs a person, with how many: a failed build, docs changes, pull requests and suggestions to review, edits to publish, each page found wrong with **Fix with the agent**, and pages that may be stale. It shows only when something does. The agent's fix of a page is told on that page. - **Publishes** lists what went live, newest first, with the live build marked, its commit and how long it took. A build that is running is the first row. A check-only site lists its merged changes instead. - **Check every page** is on **Docs agent › Pages**. Press **E** to open the editor and **V** to visit your site. ## 2026-12-03 *Home starts with your live site* - Home opens on your live site: its address, when it was last updated and by which change, and what the live build made and checked. A site still on an older build because a newer one failed says so. - Under it is how many pages match your code, as one bar of every page's state, with **Check every page**. Each page found wrong is listed with what is wrong and **Fix with the agent**. A fix under way, or waiting in a pull request, says so on its page. - **Not on the site yet** lists what is written that readers can't see: a failed build, every open docs pull request, the agent's suggestions, and edits not published. Each has a button to where you deal with it. - **What changed for readers** lists what went live, newest first, each change once. A merged pull request shows there when its build is live, not before. - The four tiles, the activity list and the Site health and Docs agent cards are gone. What they said is in those four parts, and **Deploy now** is on **Deploys**. ## 2026-12-03 *Each page checked on its own, and a choice of model* - The check of your pages against your code now takes one page at a time, with the page in hand, and finds the code by file name. Before, it took five pages at once and left most of them unread. - A page with no code to compare says why, in the agent's words. A check that doesn't finish leaves its page not checked, says why, and is tried again within a few days. Earlier results that came from an unread page are gone, so those pages are checked again. - The checks run on Haiku 5.5 by default. An admin can pick Sonnet 5.5 or Opus 5.5 under **Model** in **Docs agent › Settings**. - A site whose docs live in the repo it watches: its own pages are never taken for the code. - The dashboard carries Specly's mark, in the sidebar and in the browser tab. The site menu shows each site's address, marks the site you are on, and offers **New site** only to admins. - A job is named by what it is for: its pull request or its page. ## 2026-12-03 *Docs agent, rebuilt around what needs you* - **Docs agent › Needs you** is one queue of what the agent needs from a person: docs changes to review, pages found wrong, and the agent itself when it is stuck. Each item shows what is known and what you can do. - A page found wrong has **Fix with the agent**: it opens a pull request with the page corrected. - **Docs agent › Pages** shows every page with its last check against your code, in your docs' own folders, with **Check this page** and **Check every page**. It replaces Audit. - **Docs agent › History** replaces Runs. Jobs that failed the same way are one line, and a failed job can be run again. - Editors can ask the agent for checks and fixes, as admins can. Viewers are told why they can't. - When the AI service refuses a job, the job now says why: the key, the credit or the model. The sidebar says **Stuck** beside Docs agent when its jobs keep failing the same way. - A check that can't start says why, and a failed check no longer uses the day's one. ## 2026-12-02 *Checks that need no AI, an audit of every page, safer editing together, and a second look* - A code pull request that removes an endpoint from your OpenAPI file lists, in its Specly check, the pages that still name that endpoint. No AI run is used. - Every build checks your JavaScript, TypeScript and Python examples against the newest version of each package your docs tell readers to install. An import, a method or an argument count the package no longer has is listed on the build's page, and the page is marked found wrong on Home. The build still passes. - **Docs agent › Pages** lists every page's last check against your code, the pages found wrong first, with why. An admin can run an audit to check up to 50 pages now, once a day. - Check-only sites: connect your docs and code repos without moving your hosting. You get the check on code pull requests, the nightly check and the count on Home. Pick it in the last step of setup; start hosting later in **Settings › General**. - In the editor, a save never writes over someone else's newer save. Changes to different parts of a page merge on their own; for a part you both changed, you pick yours, theirs or both. - The editor says who else has the page open, on the page and in the page tree. - Setup can match your product: give its web address in step 4 and your docs start with its colours, fonts and logo. - On a background colour of your own, the grey text and the rules take its tone. A Mintlify `docs.json` background colour is used when `theme.json` names none. - A second look, Product: sans-serif text on a white page with a plainer, closer sidebar. Pick it in **Theme › Colours and fonts › Look**, or set [`"look": "product"`](/customize/theme-json#look) in `theme.json`. ## 2026-11-22 *A page says when its code has changed since it was checked* - When the code a page was checked against changes, the line under the page's title says so: "Code changed since this was checked against `payments.ts`". Before, it kept saying "Checked". - That page stops counting as matching the code on Home, and the nightly check takes it first. - On a site with the nightly check on, a page with no check yet says "Not confirmed against the code yet". - Theme › Match your product picks your accent from your page's main button, and reads sites it used to get wrong: ones built with Tailwind v4, Astro or Vue components, and ones that are dark only. - "On this page" lists a step that has an icon without a number, as the page shows it, and a `>` in a step's title no longer cuts the title short. - The analytics API and the analytics export give a page's address without the trailing slash, as readers see it. ## 2026-11-21 *Addresses without a trailing slash, and picture backgrounds as a band* - A page's address no longer ends in a slash: `/guides/setup`, not `/guides/setup/`, the same as on Mintlify. Canonical links, the sitemap, search results and every link Specly writes use it. Sites change over as they are next built. - Old addresses keep working. `/guides/setup/` sends readers on to the page, with their query and anchor. - A relative link or image is read from the page's folder, as the files sit in your repo: on `guides/setup.mdx`, `./img.png` is `guides/img.png` and `other` is `guides/other`. Relative links that worked before still do. - A gradient or image background shows as a band across the top of every page, under the header, fading into the page. Before, it was a faint tint behind the text. - Text never sits on the picture, so it is as readable as on plain paper, whatever the image. ## 2026-10-29 *A fuller page layout* - Docs sites fill the window: a wider reading column with the right column beside it, centred together. Past 1920 px the whole page scales up. - **On this page** is back in the right column, with the section in view marked. Reading time and "Updated…" sit on one line under the title. - Groups inside a chapter are folders in the sidebar. They open on the current page and show how many pages they hold while closed. - `` get a new look, and each titled step is listed in **On this page** with its number. - The footer is shorter: its links sit in an even grid, a column that only repeats the social icons is left out, and the site's name spans the full width. ## 2026-10-26 *A new dashboard* - The dashboard is redesigned: one sidebar in three groups, light and dark themes, and tabs for each section's pages. **Docs agent**, **Assistant** and **Coding agents** are sections of their own, **Navigation** moved out of **Settings**, and **Inbox** and **Publish** are pages. Old addresses redirect. - Settings save card by card, and switches save as soon as you flip them. - Mintlify's pairs of light and dark images show one image per theme. - Screen readers hear names for scrollable code blocks, Run outputs, the old-version banner, and the Ask AI and close buttons. Done boxes are easier to see in dark mode. - Fixed: in setup, a repo with a long description no longer widens the page. ## 2026-10-25 *Versions, languages, API reference and tutorials* - Every version and language in `docs.json` builds, with switchers, a banner on old versions, and search per version and language. The reader's interface comes in 8 languages. - API reference from OpenAPI: endpoint pages, request examples in cURL, JavaScript, Python and Go, Try it from the browser, and endpoints in search and `llms.txt`. - Code examples: one language choice across the whole site, runnable JavaScript and Python, Open in StackBlitz or CodeSandbox, and "Your values" for placeholders. - Changelog pages get tag filters. Tutorials get Done boxes, a progress bar and a next page. - Returning readers see what changed since their last visit. - Search corrects typos and offers an Ask AI row. Readers can select text to ask AI about it or copy a link to it. - Docs sites use the whole window, with a home page at `/` and Mintlify's page modes. - The docs agent fixes a passage from a comment thread, as suggestions you accept or reject in the editor. In **Analytics**, **Write this page** turns a search that found nothing into a draft. - The docs agent can translate pages, fix a failed build, and check for stale pages each night. The last two start off. Set them in **Docs agent › Settings**. - The search button's name includes its shortcut, and the accent colour stays readable on highlighted items. ## 2026-10-24 *Setup, access, analytics and the assistant* - Setup is new: six steps from connecting GitHub to a live site. Drafts come only from your repo, and files that may hold a secret are never read. - Choose who can read a site: anyone, **One shared password**, or **People you allow**. Private sites aren't indexed, and they turn off `llms.txt`, the Markdown copies, and the assistant. - **Ask AI** (⌘I) answers readers from your pages and shows which ones it used. You can add it to your own product as a widget. - **Analytics** shows readers, views, searches that found nothing, AI agents' reads and reader feedback, with no cookies. - Organization settings: members, API keys for deploys and analytics, and exports of the built site, comments, analytics and the activity log. - The editor gets comments with @mentions, **Ask agent** (⌘J) with suggestions inline, page icons, an inbox, notifications, and preview links from **Publish**. - Coding agents such as Claude, ChatGPT and Cursor sign in to Specly to read your docs and propose changes. ## 2026-10-23 *The editor and Mintlify's components* - Organizations with roles and invites. Sign in with GitHub, a password or an emailed link. - The editor: **Write**, **Markdown** and **Preview** modes, a page tree, drafts that save as you type, and each page's history. - Publish shows the diff and the checks, then opens a pull request or commits. A media library holds your images. - Each docs pull request gets a preview site, and each build lists its problems with links into the editor. - **Home** shows each site's state at a glance, and **Changes** lists the docs pull requests waiting for review. - Docs sites render Mintlify's components, code blocks with Mintlify's options, and ⌘K search. - Every page gets a Markdown copy and a page menu, and each site gets `llms.txt`, `llms-full.txt` and a docs MCP server for AI tools. - Each page shows when it last changed and why, with an optional one-line note for readers. A changelog page gets an RSS feed. ## 2026-10-22 *The first release* - Sign in, connect the Specly app on GitHub, and create a site. - Specly builds the site on every push and serves it at `https://.specly.xyz`. - The theme editor, with a live preview. - Docs drafted by AI when a code pull request changes what they describe. - Personal tokens and MCP tools for coding agents. # Pages and frontmatter Source: https://doc.specly.xyz/write/pages > Write a page as an MDX file, list it in docs.json, and set how it looks with frontmatter. A page is one `.md` or `.mdx` file in your docs folder. It goes on your site when you list it in `docs.json`. ## List a page Each entry in a group's `pages` is a file path from the docs folder, with no extension: ```json docs.json { "navigation": { "tabs": [ { "tab": "Documentation", "groups": [ { "group": "Get started", "pages": ["introduction", "guides/install"] } ] } ] } } ``` `guides/install` is the file `guides/install.mdx`. The order of the list is the order in the sidebar. A file that no group lists isn't published. ## Frontmatter Frontmatter is a block of YAML at the top of the file: ```mdx guides/install.mdx --- title: "Install" description: "Add the package to your project." icon: "download" --- Your content starts here. ``` - `title` (string): The page's title. Without one, Specly uses the file name: `rate-limits.mdx` becomes "Rate limits". - `description` (string): One sentence, shown under the title. It also describes the page in search results and when the link is shared. - `sidebarTitle` (string): A shorter name for the sidebar, when the title is long. - `icon` (string): An icon beside the page in the sidebar, by its [Lucide](https://lucide.dev/icons) name. - `mode` (string, default: `default`): The page's layout: `default`, `wide`, `center`, `frame` or `custom`. See below. - `tutorial` (boolean): Adds a Done box to every step, a progress bar and a finish panel. See [Tutorials with progress](/write/tutorials). - `next` (string | string[]): The pages a finished tutorial offers next, as paths from the docs folder. Without it, the tutorial offers the next page in the same tab. - `rss` (boolean): Makes the page a changelog with an RSS feed, before its first ``. See [Changelog with RSS](/write/changelogs). - `openapi` (string): Makes the page an endpoint from an OpenAPI file, such as `"GET /users"`. - `api` (string): Makes the page a hand-written endpoint, such as `"GET /users"`, with the page's own text as its description. - `playground` (string): How this endpoint page's Try it shows: `interactive`, `simple` or `none`. ## Modes `mode` changes what surrounds the page's content. | Mode | Sidebar | Right column | Title | Content width | | --- | --- | --- | --- | --- | | `default` | Yes | Yes | Yes | Reading width | | `wide` | Yes | No | Yes | Reading width | | `center` | No | No | Yes | Reading width | | `frame` | Yes | No | No | Full | | `custom` | No | No | No | Full | The right column holds the page's actions, its contents (**On this page**) and its margin notes. With `custom`, the page owns everything between the header and the footer. ```mdx --- title: "Compare plans" mode: "wide" --- ``` # Text, code and math Source: https://doc.specly.xyz/write/formatting > Format text, show code with highlights and diffs, document a shell session, write math, and add margin notes. Pages are Markdown with MDX on top, so everything in [CommonMark](https://commonmark.org) works: headings, lists, tables, links, `inline code`, **bold** and *italic*. This page covers what Specly adds for code, math and notes. ## Code blocks Start a block with three backticks and a language. Add a title and options after it, in any order: ```js server.js {2,4-5} lines import http from 'node:http'; const port = 3000; http.createServer((req, res) => { res.end('ok'); }).listen(port); ``` That block's first line is ` ```js server.js {2,4-5} lines `. | Option | What it does | | --- | --- | | `server.js` | A bare word or a quoted string is the block's title. `title="server.js"` works too. A title that looks like a file name shows as one. | | `{2,4-5}` | Highlights those lines. `highlight={2}` does the same. | | `lines` | Shows line numbers. `showLineNumbers` does the same. | | `wrap` | Wraps long lines. Readers can also switch wrapping on with the **Wrap lines** button when a line is cut off. | | `focus={2-3}` | Dims every line except the ones listed. | Every block has a **Copy** button. Specly also knows `run` and `norun`, which are for [runnable code](/write/runnable-code). ### Mark lines in the code To mark a line from inside the code, end it with a comment. Use `// [!code ++]` to show an added line, `// [!code --]` for a removed one, `// [!code highlight]` to highlight it and `// [!code focus]` to focus it. Add a count, as in `// [!code focus:3]`, to mark that many lines from the line down. Use the comment syntax of the language, for example `# [!code ++]` in Python or YAML. ```js config.js export default { retries: 3, // [!code --] retries: 5, // [!code ++] timeout: 30, // [!code highlight] }; ``` The markers are removed from the page. **Copy** takes the code as it ends up, without the removed lines. ## Shell sessions Start the commands in a `bash` or `shell` block with `$ `. The prompt is drawn for you and isn't copied, and every other line is output. A command that ends in `\` continues on the next line. ```bash $ npm install specly-example added 1 package in 2s $ npm run build \ -- --verbose ``` **Copy** takes the commands only. ## Math Write LaTeX between dollar signs, and it's typeset when the site is built: `$E = mc^2$` gives $E = mc^2$ inline. A block between `$$` lines is shown on its own: $$ \int_0^1 x^2 \, dx = \frac{1}{3} $$ A dollar sign before a number is a price, not math: a plan costs $5 a month, or $50 a year. ## Margin notes A margin note is an aside that sits in the right column beside the text it belongs to. On a narrow screen, it moves into the text. Write one with `:::margin`: ```mdx :::margin Notes can hold `code` and [links](/write/pages). ::: ``` :::margin A margin note sits in the right column. It can hold `code` and [links](/write/pages). ::: Margin notes are for side remarks. Anything the reader needs belongs in the text. Margin notes work in `.md` pages. In an `.mdx` page, `:::margin` isn't read, so the note doesn't show. # Snippets Source: https://doc.specly.xyz/write/snippets > Write text once in a snippet and use it on as many pages as you like. A snippet is an MDX file in the `snippets/` folder. Put it on a page with ``, and it shows there as if you had written it in place. Hello, Ada. This line lives in `snippets/hello.mdx`. That line comes from `snippets/hello.mdx`: ```mdx snippets/hello.mdx Hello, {name}. This line lives in `snippets/hello.mdx`. ``` and the page includes it like this: ```mdx ``` ## Import a snippet You can also import a snippet and use it as a component. Imports go after the frontmatter: ```mdx import Hello from '/snippets/hello.mdx'; ``` Both forms work with the files in your docs folder's `snippets/` folder. A path that starts with `/` begins at the docs folder. - `file` (string, required): The snippet's file, as `hello.mdx` or `/snippets/hello.mdx`. - `any other prop` (string): Each prop you add is a value the snippet reads by name in curly braces, as `{name}` above. A snippet can include other snippets. It's published on every page that includes it, and never on its own, so you don't list it in `docs.json`. # Images and files Source: https://doc.specly.xyz/write/images-and-files > Add images, show a different one in light and dark mode, and serve files such as PDFs. Put an image in your docs folder and show it with Markdown. Specly copies it to your site. ## Add an image ```mdx ![Specly's mark, in ink](/logo/light.svg) ``` ![Specly's logo](/logo/light.svg) Always write the text between the brackets. It's what a screen reader says, and what readers see if the image doesn't load. The path starts at the docs folder, or at `public/`, so `/logo/light.svg` is the file `logo/light.svg`. You can also use an HTML `` tag, to set a size: ```mdx Specly's logo ``` ## Light and dark images An image made for a light page can disappear on a dark one. Give each mode its own image, and readers see the one for their mode. Specly reads Mintlify's pair of classes, `block dark:hidden` and `hidden dark:block`: Specly's logo, for light mode Specly's logo, for dark mode ```mdx Specly's logo, for light mode Specly's logo, for dark mode ``` Switch your site to dark mode to see the other image. ## Other files Any image, font, PDF, audio or video file in your docs folder is served at its path. Link to a file the way you link to a page: ```mdx [Download the checklist](/files/checklist.pdf) ``` Specly serves these types: PNG, JPEG, GIF, SVG, WebP, AVIF, ICO, WOFF, WOFF2, TTF, OTF, PDF, MP4, WebM, MOV, MP3, WAV, TXT and ZIP. Pages, `docs.json` and code files are never served this way. ## `public/` Files in a `public/` folder are served from the root of your site: `public/favicon.svg` is at `/favicon.svg`. A `public/CNAME` file holding your site's address sets its canonical links and sitemap. See [SEO](/customize/seo). > **Note:** A file in a folder that looks internal, such as `plans/` or `notes/`, is left out unless a page links to it. # Runnable code Source: https://doc.specly.xyz/write/runnable-code > Let readers run JavaScript and Python in the page, and fill in their own values once. Add `run` to a code block, and readers get a **Run** button that runs it in the page and shows the output. ```js run const total = [3, 4, 5].reduce((sum, n) => sum + n, 0); console.log(`Total: ${total}`); total * 2; ``` Run shows what the code logs, then the value of its last line. The code runs in a sandbox that can't reach your page or your reader's data, stops after 10 seconds, and has a **Stop** button. ## Write one Put `run` right after the language, or after a file name: ````mdx ```js run console.log('Hello'); ``` ```js client.js run console.log('Hello from a file'); ``` ```` - `run` (flag): Makes the block runnable. In JavaScript and Python, readers get **Run**. In JavaScript and TypeScript, they also get **Open in StackBlitz** and **Open in CodeSandbox**, which open the code as a small project. Packages the code imports are added to it. - `norun` (flag): Keeps one block from running, when its language runs everywhere. JavaScript can use top-level `await`. Python loads the first time a reader runs it. TypeScript isn't run in the page, so a TypeScript block only gets the two Open buttons. Run can't load packages. If a JavaScript block imports one, Run says “Imports need packages: open the example in StackBlitz or CodeSandbox.” ### Run every block of a language To make every block in a language runnable, list it in `docs.json`: ```json docs.json { "specly": { "run": ["python"] } } ``` JavaScript and Python are the languages that run in the page. ## Your values An example with a placeholder, like an API key, is easier to use with a real value. List the placeholders in `docs.json`: ```json docs.json { "specly": { "placeholders": ["YOUR_API_KEY"] } } ``` Any block that holds one of those names gets a **Your values** button: ```bash curl https://.specly.xyz/api/example \ -H "Authorization: Bearer YOUR_API_KEY" ``` A reader chooses **Your values** and types a value once. **Copy** and **Run** then use it in every example on the site. It's kept in that reader's tab, and the page doesn't change for anyone else. **Open in StackBlitz** and **Open in CodeSandbox** never include it. - `specly.placeholders` (string[]): The names to replace: 1 to 64 characters each, and up to 30 names. Filling in values from your own sign-in (`specly.personalization.endpoint`) needs your docs on your own domain, which is coming. # Tutorials with progress Source: https://doc.specly.xyz/write/tutorials > Turn a list of steps into a tutorial readers can tick off, with a progress bar and a next page. Add `progress` to ``, and readers get a Done box on each step, a bar that counts them, and a panel when they finish. Their progress is kept in their own browser, page by page. 1. **Write the page** Create the file and give it a title. 2. **List it** Add its path to a group in `docs.json`. 3. **Publish it** Open a pull request, and merge it. Tick the boxes. The bar stays at the top as you scroll, and when every step is done, the panel at the foot of the page offers the next page. **Start over** clears the boxes. ## Write one ```mdx Create the file and give it a title. Add its path to a group in `docs.json`. ``` To make every `` on a page a tutorial, set `tutorial: true` in the page's frontmatter instead: ```mdx --- title: "Quickstart" tutorial: true next: ["guides/deploy"] --- ``` The [Quickstart](/get-started/quickstart) is a tutorial. Each box is named after its step's `title`, so give every step one, or a screen reader only hears "Step 1". - `progress` (boolean): On ``: gives that list's steps Done boxes. The bar counts every box on the page. - `tutorial` (boolean): In frontmatter: tracks every `` on the page. - `next` (string | string[]): In frontmatter: the pages the finish panel links to, as paths from the docs folder, such as `guides/deploy`. Without it, the panel links to the next page in the same tab. A page the reader finishes is marked as read in the sidebar. Plain `` on a page that isn't a tutorial has no boxes, no bar and no panel. # Changelog with RSS Source: https://doc.specly.xyz/write/changelogs > Publish release notes as dated entries, with tag filters and an RSS feed readers can follow. A changelog is a page of `` blocks, newest first. Specly adds tag filters to the page and an RSS feed beside it. [Specly's own changelog](/changelog) is a live example. ## Write an entry Each entry is an `` with a `label`. Put the newest on top: ````mdx changelog.mdx --- title: "Changelog" description: "What's new, newest first." --- ## Three-day retries Failed deliveries are retried for three days. Listing items no longer skips the last page. Fixed: the search box now opens with `/` on every page. ```` An `` takes Markdown and any component. Add it to the page's source, not to a snippet, so the feed can read it. - `label` (string, required): What names the entry: a date, a month ("August 2026") or a version. It's also the entry's link, `#2026-10-20`, and a date in it dates the feed item. - `description` (string): A short line under the label. - `tags` (string[]): Each tag becomes a filter above the entries. A reader who chooses **Fix** sees only the entries with that tag. - `rss` (object): Overrides how the entry appears in the feed: `rss={{ title: "…", description: "…", date: "…" }}`. Each key is optional. > **Note:** This page only shows `` as code. Specly's [changelog](/changelog) is the one that renders it. ## The RSS feed A page with at least one `` is a changelog, and so is a page with `rss: true` in its frontmatter. Its feed is at the page's address with `/rss.xml` added: for the page `changelog`, `https://.specly.xyz/changelog/rss.xml`. The page links to it, and its "Updated" line has an **RSS feed** link. Each entry is a feed item. The item's body is the entry as HTML, and its tags are the item's categories. Its links are full addresses when `public/CNAME` names your site's address (see [SEO](/customize/seo)), and start from the root otherwise. The label is the item's title, unless `rss.title` sets another. Each entry needs its own label. When two share one, the second gets a number at the end of its link. # Updated dates and change notes Source: https://doc.specly.xyz/write/freshness > Show readers when each page last changed and why, from your Git history, and add a note in your own words. Every page says when it last changed: **Updated 3 days ago**, under the page's introduction. You write nothing for it. Specly reads it from your docs folder's Git history. ## What it says The date is when the page's last change reached the branch the site is built from. A merge counts when it lands, so the date is the merge's, not the day you started the pull request. A page that has never been committed has no date. Beside the date, the page can say why: - **docs PR #12**: the pull request that changed the page. - **code PR #34**: a pull request in your code repo that the docs change came from. A commit names it with a `Specly-Code-Change: owner/repo#34` line. `Specly-Code-Change: private` says the change came from code, without naming it, and the page says "a code change". - **A change note**: a sentence in your words. ## Add a change note A change note tells readers what is different, in one sentence. When you publish from the dashboard, add it under **What changed, for readers** in **Publish**. Specly puts it in the pull request, and it shows beside the date on every page that pull request changed. You can also add it yourself, as a line at the end of a commit message or a squash-merge message: ```text Move the retry settings to their own page Specly-Change-Note: Retries are now set per endpoint. ``` A note: - is one line of plain text, at most 140 characters; - has no links, no `#123` references and no @names; - is shown as written, never as Markdown. A note that breaks a rule isn't shown. The page falls back to the date alone. ## Private repos Specly Cloud knows whether your docs repo is public. When it's private, a reader can't open what GitHub would show, so the pages leave it out: - no pull request numbers, since in a repo that holds code and docs they can point at private code; - no **Edit this page on GitHub** or **Report an issue** links, because they'd go to a page GitHub shows as not found. The date and a change note still show. A `code PR` still shows when its commit names a public repo. To change this, set `freshness.prNumbers` in `theme.json`: ```json theme.json { "freshness": { "prNumbers": "auto" } } ``` - `freshness.prNumbers` (string, default: `auto`): `auto` names docs PRs, and links them, only when the docs repo is public. `always` names them even when it's private, as text with no link, for readers who are all your team. `never` never names a pull request. Even with `always`, a private repo has no GitHub links. # Components Source: https://doc.specly.xyz/components/overview > The components you can use in any page, with no imports, and what happens when you use one Specly doesn't have. Write a component's tag in an `.mdx` page and it renders. You don't import anything. `.md` pages don't render components; use `.mdx`. ```mdx This renders as a tip. ``` ## The components | For | Components | | --- | --- | | Notes in the text | [Note, Info, Tip, Check, Warning, Danger and Callout](/components/callouts) | | Links and layouts | [Card, CardGroup, Columns and Tile](/components/cards) | | Sequences | [Steps and Step](/components/steps) | | Alternatives | [Tabs and Tab](/components/tabs), [CodeGroup](/components/code-groups) | | Hiding detail | [Accordion and AccordionGroup](/components/accordions) | | Images and embeds | [Frame](/components/frames) | | Words in a sentence | [Badge, Icon and Tooltip](/components/badges-icons-tooltips) | | API pages | [ParamField, ResponseField, Expandable, RequestExample, ResponseExample and Panel](/components/api-fields) | | Release notes | [Update](/components/updates) | | Files | [Tree, Tree.Folder and Tree.File](/components/trees) | | Diagrams | [Mermaid](/components/mermaid) | ## Icons Wherever a component takes an `icon`, the name can be a [Lucide](https://lucide.dev/icons) icon, such as `zap`, or a Font Awesome name, such as `bolt`. Specly maps Font Awesome names to the nearest Lucide icon, so a repo written for Mintlify keeps its icons. It also knows common brands, like `github`, and takes an image path or URL. A name Specly can't find leaves the icon out and adds a warning to the build. ## A component Specly doesn't have If a page uses a component that isn't on this list, Specly draws its content inside a dashed frame and adds a warning to the build, so nothing disappears. For example, this tag: ```mdx Yes. ``` shows `Yes.` in a dashed frame, and the build says that `` isn't a component Specly knows yet. # Callouts Source: https://doc.specly.xyz/components/callouts > Set a note, tip or warning apart from the text with Note, Info, Tip, Check, Warning, Danger or a custom Callout. Use a callout for something the reader shouldn't miss. Each of the six kinds has its own name and icon. > **Note:** Notes add context. > **Info:** Info points to something related. > **Tip:** Tips save the reader time. > **Check:** Check confirms that something worked. > **Warning:** Warnings say what can go wrong. > **Danger:** Danger is for what can't be undone. ```mdx Notes add context. Info points to something related. Tips save the reader time. Check confirms that something worked. Warnings say what can go wrong. Danger is for what can't be undone. ``` ## Make your own `Callout` makes a custom one. Give it an `icon` and a `color`: > A custom callout, with its own icon and color. ```mdx A custom callout, with its own icon and color. ``` ## Props - `icon` (string): On `Callout`: a Lucide or Font Awesome icon name, or an image path. Without a `title`, the icon stands alone. - `color` (string): On `Callout`: the callout's color, as hex (`#FFC107`), a color name, or `rgb()` or `hsl()`. Anything else is ignored. - `title` (string): On `Callout`: the label above the text. A kind's own name is the label by default, and `title` replaces it. - `type` (string): On `Callout`: `note`, `info`, `tip`, `check`, `warning` or `danger` makes it that kind. `warn` and `caution` mean `warning`, `error` means `danger`, and `success` means `check`. `Note`, `Info`, `Tip`, `Check`, `Warning` and `Danger` take no props. You can still set a `title` on them. # Cards and columns Source: https://doc.specly.xyz/components/cards > Link to other pages with Card, lay cards out with CardGroup or Columns, and show a preview with Tile. A card is a box with an icon, a title and some text. Put it in a `CardGroup` to set the cards side by side. - [Quickstart](/get-started/quickstart): Publish your first site. - [Write pages](/write/pages): The icon sits beside the text. ```mdx Publish your first site. The icon sits beside the text. ``` `bolt` is a Font Awesome name, shown as Lucide's `zap`. See [icons](/components/overview#icons). ## Tile A tile shows a preview, such as an image or an icon, above a title and a short description. - [Pages](/write/pages) - [Components](/components/overview) ```mdx ``` ## Card props - `title` (string): The card's title. - `icon` (string): A Lucide or Font Awesome name, or an image path. - `color` (string): The icon's color, as hex, a color name, or `rgb()` or `hsl()`. - `href` (string): Makes the whole card a link. - `img` (string): An image across the top of the card. - `horizontal` (boolean, default: `false`): Puts the icon beside the text. - `cta` (string): The call to action shown with an arrow after it. It shows only when the card has an `href`. - `arrow` (boolean, default: `false`): With `href`, shows the arrow even without a `cta`. ## CardGroup and Columns props `Columns` is the same component as `CardGroup`. - `cols` (number, default: `2`): Columns across, from 1 to 4. Phones always show one. ## Tile props - `title` (string): The title under the preview. - `description` (string): A line of text under the title. - `href` (string): Makes the whole tile a link. # Steps Source: https://doc.specly.xyz/components/steps > Number a sequence of actions with Steps and Step. Use `Steps` for things the reader does in order. The list numbers the steps for you. 1. **Write the page** Create the file and give it a title. 2. **List it** Add its path to a group in `docs.json`. 3. **Publish it** Open a pull request, and merge it. ```mdx Create the file and give it a title. Add its path to a group in `docs.json`. Open a pull request, and merge it. ``` To let readers tick steps off, see [tutorials](/write/tutorials). ## Steps props - `progress` (boolean, default: `false`): Adds a Done box to each step, a progress bar, and a closing panel. Setting `tutorial: true` in the page's frontmatter does the same for every `Steps` on the page. ## Step props - `title` (string): The step's heading. - `icon` (string): An icon in place of the number. - `stepNumber` (number): A number of your own in place of the step's place in the list. - `titleSize` (string, default: `h2`): The title's heading level: `h2`, `h3` or `h4`. A step titled `h2` or `h3` is listed in **On this page**, numbered. `h4` is a small heading that isn't listed, and `p` keeps the title a plain line, out of the page's outline. # Tabs Source: https://doc.specly.xyz/components/tabs > Show alternatives one at a time with Tabs and Tab. Use tabs when the reader needs one of several versions of the same content, like an operating system. Arrow keys, **Home** and **End** move between tabs. **macOS** Install with Homebrew. **Linux** Install with your package manager. **Windows** Download the installer. ```mdx Install with Homebrew. Install with your package manager. Download the installer. ``` For tabs of code, [CodeGroup](/components/code-groups) is shorter and remembers the reader's choice. ## Props `Tabs` takes no props. Specly ignores any Mintlify props you pass it. - `title` (string, required): On `Tab`: the label on the tab. # Accordions Source: https://doc.specly.xyz/components/accordions > Fold away detail until the reader asks for it with Accordion and AccordionGroup. An accordion is a title that opens to reveal text. Wrap several in `AccordionGroup` to space them as one block. **Where do my pages live?** In your GitHub repo. Specly reads them when you push. **Rate limits** Each endpoint has its own limit. ```mdx In your GitHub repo. Specly reads them when you push. Each endpoint has its own limit. ``` An accordion is a native HTML disclosure, so it works without JavaScript and by keyboard. ## Accordion props - `title` (string, required): The text that is always visible. - `description` (string): A smaller line beside the title. - `icon` (string): A Lucide or Font Awesome name, shown before the title. - `defaultOpen` (boolean, default: `false`): Starts the accordion open. `AccordionGroup` takes no props. # Code groups Source: https://doc.specly.xyz/components/code-groups > Show the same code in several languages or package managers, as tabs or a dropdown. A `CodeGroup` turns the code blocks inside it into tabs. A block's tab is named by its title, or its language when it has none. For block titles and other options, see [formatting](/write/formatting). ```bash npm npm install specly ``` ```bash pnpm pnpm add specly ``` ```bash yarn yarn add specly ``` ````mdx ```bash npm npm install specly ``` ```bash pnpm pnpm add specly ``` ```bash yarn yarn add specly ``` ```` Leave a blank line between the tag and the code blocks. When a reader picks a tab, every group on the site that has that language (or that package manager) switches with it, and Specly remembers the choice for their next visit. ## As a dropdown ```js Node console.log('hello'); ``` ```python Python print('hello') ``` ````mdx ```js Node console.log('hello'); ``` ```python Python print('hello') ``` ```` ## Props - `dropdown` (boolean, default: `false`): Shows a select box in place of the tabs. - `sync` (boolean, default: `true`): Set `sync={false}` to keep a group to itself, so it neither follows nor changes the reader's choice. # Frames Source: https://doc.specly.xyz/components/frames > Put an image or embed in a frame, with a hint above and a caption below. A `Frame` wraps an image or embed, and can add text above and below it. The Specly mark *The Specly mark.* ```mdx The Specly mark ``` Give the image `alt` text. For how images are found and shown in light and dark themes, see [images and files](/write/images-and-files). ## Props - `caption` (string): Text under the frame. - `hint` (string): Text above the frame. # Badges, icons and tooltips Source: https://doc.specly.xyz/components/badges-icons-tooltips > Put a label, an icon or a definition inside a sentence. These three sit in the middle of a line of text. A new endpoint is Beta. Send an idempotency key with it, and look for the in the response. ```mdx A new endpoint is Beta. Send an idempotency key with it, and look for the in the response. ``` ## Badge props - `color` (string, default: `neutral`): The tone. A name containing `red` or `destructive` is red, `yellow` or `orange` is amber, and `blue`, `green` or `purple` is that color. Anything else is neutral. - `size` (string, default: `md`): `xs`, `sm`, `md` or `lg`. - `shape` (string, default: `pill`): `rounded` gives squarer corners. - `icon` (string): An icon before the text. - `stroke` (boolean, default: `false`): Outlines the badge instead of filling it. - `disabled` (boolean, default: `false`): Dims the badge. ## Icon props - `icon` (string, required): A Lucide or Font Awesome name, a brand, or an image path. See [icons](/components/overview#icons). - `size` (number): Size in pixels. Without it, the icon matches the text. - `color` (string): Hex, a color name, or `rgb()` or `hsl()`. ## Tooltip props A tooltip appears on hover and on keyboard focus, and **Esc** hides it. - `tip` (string): The text in the tooltip. - `headline` (string): A bold line above the tip. - `cta` (string): The text of a link shown beside the tip. It needs `href`. - `href` (string): Where the link goes. It needs `cta`. # API fields and examples Source: https://doc.specly.xyz/components/api-fields > Document an endpoint's fields, and show its request and response beside the text. `ParamField` and `ResponseField` describe a field: its name, type, whether it's required, its default, and what it is. `Expandable` folds a field's children away. - `url` (string, required): Where Specly sends the event. - `limit` (integer, default: `10`): How many results to return. - `X-Legacy-Key` (string, deprecated): Use an API key instead. - `retry` (object): How failed deliveries are retried. - `max_age` (integer, default: `259200`): Seconds to keep trying. - `ordered` (boolean): Keep events in order. ```mdx Where Specly sends the event. How many results to return. How failed deliveries are retried. Seconds to keep trying. ``` ## Field props `ParamField` and `ResponseField` are the same component. Name the field with `name`, or with the place it goes: `path`, `query`, `body` or `header`, which also shows that place beside it. - `type` (string): The field's type, shown as given. - `required` (boolean, default: `false`): Shows "required". - `deprecated` (boolean, default: `false`): Shows "deprecated" and dims the field. - `default` (string): The default value. - `pre` (string[]): Tags shown before the name. - `post` (string[]): Tags shown after the details. ## Expandable props - `title` (string, default: `child attributes`): The summary reads "Show" or "Hide", then this text. - `defaultOpen` (boolean, default: `false`): Starts it open. ## Request and response examples `RequestExample` and `ResponseExample` hold code blocks. Specly gathers them into a panel in the right-hand column, beside the text, and each block becomes a tab named by its title or language. The page then drops its table of contents. The panel is on this page, to the right. On a phone it sits below the text. ```bash cURL curl https://api.yourcompany.dev/events -d '{"url":"https://hooks.yourcompany.dev"}' ``` ```js Node await fetch('https://api.yourcompany.dev/events', { method: 'POST' }); ``` ```json 201 { "id": "evt_1", "status": "pending" } ``` ````mdx ```bash cURL curl https://api.yourcompany.dev/events -d '{"url":"https://hooks.yourcompany.dev"}' ``` ```js Node await fetch('https://api.yourcompany.dev/events', { method: 'POST' }); ``` ```json 201 { "id": "evt_1", "status": "pending" } ``` ```` A request's tabs follow the reader's language, as a [code group](/components/code-groups) does. A response's tabs, such as status codes, stay its own. ## Panel `Panel` puts any content you choose in the same right-hand column. Use it for something other than code. Place it at the top level of the page, not inside another component. ```mdx Anything that belongs beside the text. ``` # Updates Source: https://doc.specly.xyz/components/updates > Write a changelog entry with Update. Specly turns a page of them into a changelog with a feed. `Update` is one entry in a changelog. A page that holds `Update` entries becomes a changelog page, with an RSS feed. This page shows the component as code only, because a site has one changelog feed. [Specly's own changelog](/changelog) is the live example. ```mdx - Pages load faster. - Fixed: search no longer misses new pages. ``` For how the changelog page and its feed work, see [changelogs](/write/changelogs). ## Props - `label` (string): The entry's heading, usually a date or version. It also becomes the entry's link: `October 2026` is `#october-2026`, and a second entry with the same label gets `#october-2026-1`. - `description` (string): A short line beside the label. - `tags` (string[]): Tags listed with the entry. A single string works too. # File trees Source: https://doc.specly.xyz/components/trees > Show a folder structure with Tree, Tree.Folder and Tree.File. A tree shows files and folders. Folders open and close. - docs/ - docs.json - guides/ - receive-webhooks.mdx - verify.mdx - theme.json ```mdx ``` Folders are native disclosures, so they work by keyboard. `Tree` takes no props. ## Tree.Folder props - `name` (string): The folder's name. - `defaultOpen` (boolean, default: `false`): Starts the folder open. - `openable` (boolean, default: `true`): With `openable={false}`, the folder is a plain label with its files always shown, and can't be closed. - `highlight` (boolean): Marks the folder. ## Tree.File props - `name` (string): The file's name. - `highlight` (boolean): Marks the file. # Mermaid diagrams Source: https://doc.specly.xyz/components/mermaid > Draw a flowchart, sequence or other diagram from text. Start a code block with `mermaid`, and write the diagram in [Mermaid](https://mermaid.js.org) syntax. Anything after the word is the diagram's title. ```mermaid Publishing a page flowchart LR A[Edit page] --> B[Push to GitHub] B --> C[Specly builds] C --> D[Site is live] ``` ````mdx ```mermaid Publishing a page flowchart LR A[Edit page] --> B[Push to GitHub] B --> C[Specly builds] C --> D[Site is live] ``` ```` The diagram is drawn in the reader's browser, using their theme's colors, when it scrolls near the screen. Its source sits under it in a **Diagram source** disclosure, so screen readers and search read the text. If Mermaid can't read the source, the source opens in place of the drawing. Diagrams are drawn in `.mdx` pages. In a `.md` page, the source shows and the build warns. ## Props A `mermaid` block becomes a `Mermaid` component with these props. - `chart` (string): The diagram's source. - `title` (string): A caption above the diagram. # Writing in the editor Source: https://doc.specly.xyz/editor/writing > Write and edit pages in the dashboard, in a visual editor or as Markdown, with your edits saved as drafts until you publish. Open **Editor** in the dashboard to write pages without touching Git. You edit in the browser, Specly keeps your edits as drafts, and nothing reaches your repo or your site until you [publish](/editor/publishing). > **Note:** The editor needs a window at least 900 pixels wide. On a narrower one it says "Writing needs a wider screen." You can > still read pages, review changes and publish. ## The page tree The sidebar lists your pages in the order `docs.json` gives them, under its tabs and groups. Use **Filter pages** to find one. - Choose **New page** (the **+** button) to add a page. Give it a **Title**, choose the group it **Goes in**, and check its **Address**. The address comes from the title until you change it, and the file is that address with `.mdx` on the end. Choose **Create the page**. - Drag a page to move it, or press Alt+↑ or Alt+↓ on it. The new order is saved as a draft of `docs.json`. - A dot beside a page means it has unpublished edits. - A page marked "(no file)" is listed in `docs.json`, but its file doesn't exist yet. The page and its place in the navigation stay drafts until you publish. In **Settings › Site › Editor**, **New pages start from** sets the starting text (**A blank page**, **Guide: intro, steps, next steps** or **API endpoint**), and **Pages open in** sets whether pages open in **Write** or **Markdown**. ## Three ways to see a page The switch above the page has three modes over the same text. **Write** Edit the page as it reads. The title and description sit above the text. Select text for a bar with **Bold**, **Italic**, **Inline code** and **Link**. **Markdown** Edit the file itself. It's exactly what **Publish** writes to the file, and edits here and in **Write** stay in sync. A link to a line of a file opens this mode. **Preview** A quick read of your edits. Components show as their text. For the built page with your theme, open a [preview link](/editor/publishing#share-a-preview-link). If **Write** can't read a page, it opens **Markdown** and says why. Fix the problem there, and **Write** opens again once the page parses. ## Add blocks with / In **Write**, type `/` on an empty line, or choose **Add a block** in the toolbar. Type to filter, then press Enter or click. Each block inserts the same Markdown and components you'd write by hand. | Group | Blocks | | --- | --- | | Media | Image, Video, Embed, File | | Text | Heading, Table, Quote, Divider | | Components | Callout, Code group, Cards, Steps, Tabs, Accordion, API field, Diagram, Math, Changelog entry | | Reuse | Snippet | The components are the ones in [Components](/components/overview). **Snippet** lists the pages in your `snippets/` folder and inserts one; see [Snippets](/write/snippets). Select a component or a media block to change its settings in the first tab of the side panel, which carries the block's name. ## Images, video and files Choose **Image**, **Video** or **File** from the menu to open the media picker. It has three tabs: - **Library** has what you've already uploaded. - **Upload** takes files you drop or choose. - **Video link** takes a YouTube, Loom, Vimeo or Wistia link, and plays it in a privacy-respecting player. Every image needs **Alt text**, and every video needs a **Description**. The picker won't insert one without it, so every reader, and every AI agent, gets the picture. Images go into your repo when you publish. Videos are stored by Specly. To embed anything else, such as a Figma file, choose **Embed** and give it an https address and a title. ## The side panel The **Page** tab edits the page's **Sidebar title** and **Description**, and shows its file and a link to its history. The **Comments** tab holds [comments and mentions](/editor/comments). **Ask agent** is there too, for editors and admins. ## Drafts save as you type Specly saves your edits about two and a half seconds after you stop. The status beside the toolbar says where you are: | Status | Meaning | | --- | --- | | Unsaved changes | You've typed since the last save. | | Saving… | Specly is saving the draft. | | Saved · not published yet | The draft is saved and differs from your repo. | | Saved · same as published | The draft matches your repo. | | Not saved | Specly couldn't save. Your edits stay in the editor, and it tries again. | Leaving the page saves what's left. Drafts live in Specly, not in your repo, until you publish. # Comments and mentions Source: https://doc.specly.xyz/editor/comments > Discuss a passage with your team in the editor, mention a teammate, and follow what needs you in the Inbox. Select a passage, comment on it, and mention the person who can answer. Comments stay in Specly. They never go into your repo or onto your site. ## Comment on a passage 1. In **Write** or **Preview**, select some text. 2. Choose **Comment on the selection**, or press Cmd+Alt+M (Ctrl+Alt+M on Windows and Linux). 3. Write your comment in the **Comments** tab and choose **Comment**. The passage is highlighted in the page, and the thread opens beside it. Choose **Reply** to answer, **Resolve** when it's settled, and **Reopen** to bring it back. **Show resolved** lists the settled ones. If a passage has changed since the comment, the thread says "On text that changed". Select text inside one part of the page, up to 500 characters. **Markdown** mode shows no comments, because comments start from the page as shown. ## Mention a teammate Type `@` in a comment to see your organization's members. Pick one, and the comment names them. They get a **Mention** in their [Inbox](#the-inbox), even if they only have the Viewer role. When you reply in a thread, everyone who commented earlier is told too. ## The Inbox **Inbox** in the sidebar collects what needs you, from every site you're in. It has tabs: | Tab | What it holds | | --- | --- | | **All** | Everything. | | **Mentions** | Mentions of you, and replies to your comments. | | **Changes** | Docs changes ready to review, and what the docs agent or a coding agent proposed. | | **Builds** | Failed builds, pages that may be stale, and a GitHub connection that stopped working. | Following a notification marks it read. Choose **Mark all as read** to clear the rest. **What you get** opens **Settings › Your account › Notifications**, where you pick what reaches you and where. > **Note:** Email comes from pratik@specly.xyz, within a minute, one email for whatever arrived together. Only what reaches your inbox is emailed, so email needs the inbox on too. # History and restore Source: https://doc.specly.xyz/editor/history > See who changed a page and when, compare an old version with the page now, and bring it back as a draft. Open **History** in the editor's toolbar, or **History of this page** in the **Page** tab, to see every commit that touched the page. History comes from your repo's commits, newest first, up to the latest 30. ## Read a version The list on the right shows each version with who made it: - **You**, when the commit is yours. - **Specly**, for a commit Specly's GitHub App made. - A coding agent's name, such as Claude Code or Cursor, when one made it or is named as a co-author. - Anyone else, by their GitHub name. Choose a version to see its message, commit and age. Below it, a diff shows what restoring that version would change in the page as it is now, or in your draft if you have one. Lines added are marked `+` and lines removed `-`. If the version matches, it says “This is the version readers see now.”, or “This version is the same as your draft.” when you have one. ## Restore a version Choose **Restore this version as a draft**. Specly makes that version your draft and says "Restored as a draft. It goes live only when you publish it." Nothing changes on your site until you [publish](/editor/publishing). Choose **Open the commit on GitHub ↗** to see the full commit, or **Back to editing** to return to the page. A page that exists only as a draft has no history yet. # Publishing changes Source: https://doc.specly.xyz/editor/publishing > Review your edits, run the checks, and send them to your repo as a pull request or a direct commit. Your edits stay drafts until you choose **Publish** in the top bar. Publishing writes them to your repo, and your repo is where your site comes from. The button shows how many edits are waiting. Its menu, **More ways to publish**, has three choices: - **Open a pull request**: someone reviews it on GitHub, and merging deploys the site. Checks run first. - **Commit to** your published branch: the site goes live after the build. This one shows when the branch takes direct commits, or when **When you press Publish** in **Settings › Site › Git** is set to commit. - **Share a preview link**: opens a pull request and builds it at its own address. Nothing goes live. ## Review what changes The page opens on "Publish" and the number of edits. **What changes** lists each file as **New**, **Edited**, **Deleted** or **No change**, with the lines added and removed. Open a file to see its diff. Uploaded media is listed too. If someone changed the same page in the repo while you edited, Specly combines the changes when they touch different parts, and says "Combined with what changed in the repo meanwhile." When they touch the same part, it stops, writes nothing over theirs, and asks what to keep for each part. ## Checks **Checked before you publish** runs on the files you changed. Each result is **Passed**, a **Warning** or **Must be fixed**: - The names of your files are valid. - `docs.json` and `theme.json` are valid JSON, and your colours pass AA contrast in light and dark. - Media you inserted is from your library, with a name that fits its type. - Links to pages and files resolve. A broken one is a warning. - Images and videos have alt text or a title. A missing one is a warning. A result marked **Must be fixed** blocks publishing: the button stays off and the page says "Fix what's marked first." ## How it reaches your repo Under **How it reaches your repo**, choose **Open a pull request** (recommended) or **Commit to** your published branch. **Title** names the pull request or commit. Specly fills it in from the pages you changed. **What changed, for readers** is optional. Write one sentence of at most 140 characters. It shows beside the date on the pages this changes, on the public site too, so leave out links, #numbers and @names. See [Freshness](/write/freshness). Choose **Open pull request** or **Commit and deploy**. Both open a "Published." page with a link to the pull request or commit on GitHub, and **Watch the build** for a commit. If your published branch only takes pull requests, a direct commit can fail, so choose a pull request. ### Share a preview link With **Share a preview link**, Specly opens the pull request and shows a link to share. It works once the preview build passes, in a minute or two. Nothing goes live until the pull request merges. ## Set your default **Settings › Site › Git** has **When you press Publish**, which sets the choice the **Publish** button starts on. **Ask for review from** adds GitHub people or teams as reviewers on every pull request Publish opens. > **Note:** If Specly can't see your repo, the page says "Reconnect GitHub to publish." and your edits wait. They aren't lost. # Navigation Source: https://doc.specly.xyz/customize/navigation > Shape your sidebar and header with tabs, groups, anchors, versions and languages in docs.json. Your navigation lives in the `navigation` key of `docs.json`. A page is on your site only if it's listed there. To reorder pages, drag them in the editor's page tree. To add tabs, groups, versions or languages, edit `docs.json`. ## Tabs and groups A tab is a row in the header. A group is a numbered chapter in the sidebar. Groups hold pages, and can hold other groups. ```json docs.json { "navigation": { "tabs": [ { "tab": "Guides", "groups": [ { "group": "Get started", "icon": "rocket", "expanded": true, "pages": [ "introduction", "quickstart", { "group": "Install", "pages": ["install/macos", "install/linux"] } ] } ] }, { "tab": "Blog", "href": "https://github.com/your-org/your-repo/discussions" } ] } } ``` - A page is its file path from the docs folder, with no extension. A page that doesn't exist is left out, with a warning. - A group with `expanded: true` starts open. The group holding the current page is always open. - A tab with an `href` and no pages is a link, shown beside the other tabs. - A tab with no `groups` can list `pages` directly. - With no tabs at all, put `groups` or `pages` straight under `navigation`. Chapter numbers come from the theme. See [Theme and fonts](/customize/theme). ## Anchors An anchor is a link with an icon at the top of the sidebar, such as a changelog or a community. Give an anchor `groups` or `pages` instead of an `href`, and it becomes a tab. ```json docs.json { "navigation": { "anchors": [{ "anchor": "Community", "icon": "users", "href": "https://github.com/your-org/your-repo/discussions" }], "global": { "anchors": [{ "anchor": "Support", "icon": "life-buoy", "href": "https://github.com/your-org/your-repo/issues" }] }, "groups": [{ "group": "Start", "pages": ["introduction"] }] } } ``` `global.anchors` appear on every version and language. The others belong to the one they're in. ## Versions and languages List `versions` or `languages` at the top of `navigation`, each with its own tabs, groups or pages. Readers get a switcher when there's more than one. ```json docs.json { "navigation": { "versions": [ { "version": "v2", "default": true, "groups": [{ "group": "Start", "pages": ["v2/introduction"] }] }, { "version": "v1", "groups": [{ "group": "Start", "pages": ["v1/introduction"] }] } ] } } ``` Languages work the same way, with a `language` code such as `en` or `es` in place of `version`. You can nest languages and versions in each other. - The version or language marked `default: true` comes first, or the first listed if none is marked. - The switcher goes to the same page in the other version or language when it has one, and to its first page when it doesn't. - Each version and language is its own tree, so write its pages as separate files, such as `v1/introduction` and `v2/introduction`. - Inside a tab, only the default version or language is built, with a warning that the others aren't. ## What Specly warns about Specly builds what it can and warns about the rest: | You wrote | What happens | | --- | --- | | `dropdowns`, `products` or `menu` | They show as tabs, with a warning. | | An entry with `$ref`, which splits navigation into other files | It's left out, with a warning. | | A page that doesn't exist | It's left out, with a warning. | | Navigation with no page that exists | The build stops. | ## In the dashboard **Navigation › Tabs and groups** shows your tabs, the groups in each and how many pages they hold, as `docs.json` has them, including moves you haven't published. It's read-only. Pages move in the editor's page tree, and **Open docs.json** opens the file itself. See [Writing in the editor](/editor/writing). **Navigation › Languages** appears when `docs.json` lists more than one language. It compares each with the default one, and counts pages with no translation yet and translations older than the page they translate. Editors and admins can choose **Translate with the agent** on a language, and the docs agent opens one pull request with up to 20 missing or out-of-date pages for you to review. For every key, see the [`docs.json` reference](/customize/docs-json). # Theme and fonts Source: https://doc.specly.xyz/customize/theme > Set your colours, background, fonts and light and dark modes in the dashboard, or match them to your product, with a contrast check before anything goes live. Open **Theme** in the dashboard to change how your site looks. The preview beside the controls is your own docs. Choose **Commit theme.json** to save, and Specly commits the file to your repo, so the repo stays the source of truth. The site rebuilds and switches over once the build passes. If your published branch only takes pull requests, Specly opens one with the theme instead, and the site rebuilds once it merges. **Discard** drops your changes, and **What Save commits** shows the diff first. ## Colours and fonts **Theme › Colours and fonts** has seven cards. **Theme › Colours and fonts › Match your product** reads your product's website and fills in the other cards from it, so your docs look like your product. Enter its address, such as `yourcompany.com`, and choose **Match**. Specly shows what it found: your brand colour and where it came from, your light and dark backgrounds, your fonts, and whether your product has a dark mode. Choose **Use these** to fill them in, change anything you like, then commit as usual. **Undo** puts back the theme you had, and nothing is saved until you commit. Specly reads the page and its stylesheets the way a browser would, so it only sees what a visitor sees: a page behind a sign-in shows it the sign-in page. Fonts come from Google Fonts, so when your product uses a font Google doesn't have, Specly uses the closest one it does and says which. A brand colour too light or too dark for text keeps its exact shade where it's readable and moves to the nearest readable shade where it isn't. **Look** picks the layout: **Editorial**, serif text on paper like a book, or **Product**, sans-serif text on white like product docs. Each starts from its own colours and fonts, and the cards below change them. The preview shows the new colours and fonts at once; the layout itself changes when the site rebuilds. See [Look](/customize/theme-json#look). **Light and dark** sets which modes your site offers: **Light only**, **Dark only** or **Both, reader picks**. **Accent** colours links, the drop cap and the current page. **Second accent** colours chapter labels. Pick a swatch, or type any colour as a six-digit hex such as `#2b3a8c`. Under each, Specly shows the contrast on light and dark pages, for example "#2f47c5 is 6.8:1 on light pages and 7.3:1 on dark pages," for the default accent. **Background** is **Paper** (the default, warm with a light grain), **Warm**, **Cool**, **Gradient** or **Image**. A gradient takes a CSS gradient. An image takes a path to a file in `public/`, and saving checks it's there. Both show as a band across the top of every page, under the header. No text sits on the band, so text stays readable. **Fonts** picks **Headings**, **Body**, **Interface** and **Code** fonts from a short list. Fonts come from Google Fonts, and Specly downloads them into your site at build time. ## Contrast is checked Text on your background needs a contrast ratio of 4.5:1 (WCAG AA). If a colour falls short, the card says so, names the ratio, and offers a button, **Use** a colour and its ratio, to move to the nearest colour that passes. While the theme fails, saving is off, because the build would stop. Pick a passing colour to turn it back on. A single accent that fails on dark pages is lightened for them automatically, and the card says "Lightened to … for dark pages, automatically." ## Pages and checks **Theme › Pages and checks** sets: - **Chapter numbers**: the small number over each page title. **Guide tabs only (not API or reference)**, **Every tab** or **None**. - **Pull request numbers**: whether a page's "what changed" names the pull request. See [Freshness](/write/freshness). - **Broken links in a build**: **Stop the build** keeps a broken page from going live, and **Only report them** doesn't. The default stops the build, or only reports for a site that came from Mintlify. - **A banner across every page**: a line of text across the top, with Markdown links allowed. Tick **Readers can close it** to let readers dismiss it. ## The file The dashboard writes `theme.json` in your docs folder. You can edit it yourself, in the editor or in your repo, and the dashboard reads it back. Every key is in the [`theme.json` reference](/customize/theme-json). Your colours can also come from `docs.json`: its `colors.primary` and `colors.light` fill in the accents when `theme.json` has none, moved to pass contrast if they need it. See [Logo, navbar, footer and banner](/customize/branding). # Logo, navbar, footer and banner Source: https://doc.specly.xyz/customize/branding > Set your logo and favicon, the links in your header and footer, and a banner across every page. Branding lives in `docs.json`, apart from the banner, which can also live in `theme.json`. Edit the file in the editor or in your repo, and publish. ## Logo and favicon ```json docs.json { "logo": { "light": "/logo/light.svg", "dark": "/logo/dark.svg", "href": "https://your-product.dev" }, "favicon": "/favicon.svg" } ``` `logo` takes one path for both modes, or a `light` and a `dark` one. When you give one, Specly uses it for both. `href` is where clicking the logo goes. `favicon` is a path, or a `{ "light", "dark" }` pair, where Specly uses the light one. Paths start at your docs folder or at `public/`, and the files go in your repo. See [Images and files](/write/images-and-files). ## Navbar The header holds your logo, your tabs, search, then your navbar links, a button and the light and dark switch. ```json docs.json { "navbar": { "links": [ { "label": "Dashboard", "href": "https://app.your-product.dev" }, { "type": "github", "href": "https://github.com/your-org/your-repo" } ], "primary": { "type": "button", "label": "Get started", "href": "https://your-product.dev/start" } } } ``` - `navbar.links` (array): Links in the header. Each has a `label` and an `href`. A link with a `type` of `github`, `discord`, `slack`, `x` or `linkedin` and no label takes the brand's name. - `navbar.primary` (object): One highlighted button, with a `label` and an `href`. ## Footer ```json docs.json { "footer": { "links": [ { "header": "Company", "items": [ { "label": "About", "href": "https://your-product.dev/about" }, { "label": "Blog", "href": "https://your-product.dev/blog" } ] } ], "socials": { "github": "https://github.com/your-org", "x": "https://x.com/your-handle" }, "copyright": "© Your Company" } } ``` - `footer.links` (array): Columns of links. Each has a `header` and its `items`, each a `label` and an `href`. A column with no links is left out. - `footer.socials` (object): Each key names a network, and its value is the address. - `footer.copyright` (string): A line of text in the footer. ## Banner A banner is a line across the top of every page, for an announcement. Its content is inline Markdown, so it can link. ```json theme.json { "banner": { "content": "New: [the changelog](/changelog) is live.", "dismissible": true } } ``` Only web, `mailto:`, site (`/path`) and `#` links work in a banner. With `dismissible`, readers can close it, and it stays closed for that text. The same `banner` key works in `docs.json`. If both set one, `theme.json` wins. You can also set it in the dashboard, under **Theme › Pages and checks**. ## Light and dark ```json docs.json { "appearance": { "default": "light", "strict": true } } ``` `default` is `system`, `light` or `dark`. With `strict`, a `light` or `dark` default is fixed and readers get no switch. Without it, readers start on your default and can switch. `theme.json`'s `mode` wins when it sets one. See [Theme and fonts](/customize/theme). Every key is in the [`docs.json` reference](/customize/docs-json). # Custom CSS and static files Source: https://doc.specly.xyz/customize/custom-css > Add your own styles with a custom.css file, and serve fonts and other static files from your docs folder. Add a file named `custom.css` at the top of your docs folder, and Specly loads it on every page, after its own styles, so your rules can override them. ```css custom.css .ed-banner { letter-spacing: 0.02em; } .brand { font-family: "Brand Sans", system-ui, sans-serif; } ``` Then use your own classes in a page: ```mdx Welcome to your product. ``` > **Warning:** Set colours and fonts in [`theme.json`](/customize/theme), where Specly checks contrast and the build stops on a > failure. `custom.css` isn't checked, so test the contrast of anything you change. The classes that start with `ed-` > are Specly's own and can change between releases. ## Static files Any image, font, PDF, audio or video file in your docs folder is served at its path, so a font can be loaded from `custom.css`: ```css custom.css @font-face { font-family: "Brand Sans"; src: url("/fonts/brand-sans.woff2") format("woff2"); font-weight: 400; font-display: swap; } ``` That's the file `fonts/brand-sans.woff2` in your docs folder. Files in `public/` are served from the root of your site too. For the types Specly serves, and for what it leaves out, see [Images and files](/write/images-and-files). Pages, `docs.json` and code files are never served as static files. # Page menu Source: https://doc.specly.xyz/customize/page-menu > Choose which ways readers get at a page: copy it as Markdown, open it in Claude or ChatGPT, or connect your docs to Cursor. Every page has a **Copy page** button beside its title, with a menu for more ways to use the page. They're for readers who work with an AI assistant. By default you get all of them, and `contextual.options` in `docs.json` picks which stay. ## What readers get - **Copy page** copies the page as Markdown. The button says "Copied as Markdown" when it works. - **More ways to use this page** opens a menu: - **View as Markdown** opens the page's `.md` file. - **Open in Claude** and **Open in ChatGPT** open a new chat that asks the assistant to read the page, so the reader can ask about it. - **Connect to Cursor** adds your docs to Cursor as an MCP server. It appears on Specly Cloud sites. - **llms.txt** opens the list of every page, for any agent. ## Choose the options List the options you want, and only those show: ```json docs.json { "contextual": { "options": ["copy", "view", "claude", "chatgpt"] } } ``` | Option | Shows | | --- | --- | | `copy` | The **Copy page** button. | | `view` | **View as Markdown**. | | `claude` | **Open in Claude**. | | `chatgpt` | **Open in ChatGPT**. | | `cursor`, `mcp` or `add-mcp` | **Connect to Cursor**, where it's available. | With no list, readers get everything, **llms.txt** included. A list you write replaces that, and doesn't show **llms.txt**. Options are case-insensitive. Specly ignores `perplexity`, `vscode` and any other name it doesn't know. If nothing you list is one it knows, the page shows no menu. For the files behind these buttons, see the [`docs.json` reference](/customize/docs-json). # SEO Source: https://doc.specly.xyz/customize/seo > Set how your pages appear in search results and link previews, and what the build writes for search engines. Set how your pages show in search results and link previews, add your own meta tags, and choose who can find your site. ## Title and description A page's `title` and `description` in its frontmatter become its search result and its link preview. Specly writes the description into `description` and `og:description`, and the title into `og:title`. Write one sentence of description for every page. See [Pages and frontmatter](/write/pages). ## Meta tags for the whole site `seo.metatags` in `docs.json` adds tags to every page's head. Each key is a tag's name, and its value is its content. A key that starts with `og:` becomes an Open Graph tag. ```json docs.json { "seo": { "metatags": { "og:image": "https://your-product.dev/social.png", "twitter:site": "@your-handle" } } } ``` Only text values are read. Older Mintlify files keep these under `metadata`, and Specly reads that too. ## Canonical links and the sitemap When your docs folder has a `public/CNAME` file, the build treats its address as your site's address. It writes canonical links, a sitemap at `/sitemap-index.xml`, `hreflang` links for languages and full addresses in your changelog feed. Specly Cloud serves your site at `.specly.xyz`, and on your own domain once you add one under **Deploys › Domains** (see [Deploys](/publish/deploys#your-own-domain)). Put the address your readers use in the file. ## Who can find your site **Settings › Site › Access** sets who can read your docs. **Public** lets search engines and AI tools index them. With **One shared password** or **People you allow**, readers see a sign-in page first, and search engines can't read your pages. Preview links for pull requests are always kept out of search engines. # docs.json reference Source: https://doc.specly.xyz/customize/docs-json > Every key Specly reads from docs.json, with its type and what it does, including the older Mintlify keys. `docs.json` sits at the top of your docs folder. Specly reads Mintlify's format, in its current shape and in the older keys sites still use, and adds a few keys of its own. It builds what it can and warns about the rest, so a key Specly doesn't build yet never stops a build. Only a file that isn't an object, or a navigation with no page that exists, does. ## Site | Key | Type | Meaning | | --- | --- | --- | | `name` | string | The site's name. Defaults to "Docs". | | `description` | string | The site in a sentence, shown on the default home page. | | `favicon` | string or object | A path, or `{ "light", "dark" }`, where the light one is used. | | `logo` | string or object | A path, or `{ "light", "dark", "href" }`. `href` is where the logo links. | | `colors.primary` | hex colour | The accent in light mode. Moved to the nearest colour that passes contrast, with a warning. | | `colors.light` | hex colour | The accent in dark mode, moved the same way. | | `appearance.default` | `system`, `light` or `dark` | Where readers start. | | `appearance.strict` | boolean | With a `light` or `dark` default, fixes the mode and hides the switch. | | `banner.content` | string | A line across every page, in inline Markdown. | | `banner.dismissible` | boolean | Lets readers close the banner. | | `contextual.options` | array of strings | The page menu's options. See [Page menu](/customize/page-menu). | | `seo.metatags` | object of strings | Tags added to every page's head. See [SEO](/customize/seo). | A hex colour is six digits, such as `#2b3a8c`. `theme.json` wins over `colors` and `appearance` where it sets the same thing. See [Theme and fonts](/customize/theme). ## Navigation | Key | Type | Meaning | | --- | --- | --- | | `navigation` | object | Your tabs, groups and pages. See [Navigation](/customize/navigation). | | `navigation.tabs[].tab` | string | A tab's name. | | `navigation.tabs[].icon` | string | A [Lucide](https://lucide.dev/icons) icon for the tab. | | `navigation.tabs[].href` | string | Makes a tab with no pages a link. | | `navigation.groups[].group` | string | A group's name. | | `navigation.groups[].icon` | string | An icon for the group. | | `navigation.groups[].expanded` | boolean | Starts the group open. | | `navigation.groups[].pages` | array | Page paths, or nested groups, in order. | | `navigation.pages` | array | Pages with no group, in a tab or at the top. | | `navigation.anchors[]` | array | `{ "anchor", "icon", "href" }`: a link at the top of the sidebar. With pages or groups, a tab. | | `navigation.global.anchors[]` | array | Anchors shown on every version and language. | | `navigation.versions[]` | array | `{ "version", "default" }` with its own tabs, groups or pages. | | `navigation.languages[]` | array | `{ "language", "default" }` with its own tabs, groups or pages. | | `navigation.dropdowns`, `products`, `menu` | array | Shown as tabs, with a warning. | | `openapi` | string, list or object | A spec on a tab, group or page entry, whose operations become pages: a path or URL, a list of them, or `{ "source", "directory" }`. `directory` is the folder the pages go in, `api-reference` by default. | An entry that holds `$ref` isn't read: Specly leaves it out and warns. A page that doesn't exist is left out and warned about. If more than one version or language sits inside a tab, only the default builds. ## Navbar and footer | Key | Type | Meaning | | --- | --- | --- | | `navbar.links[]` | array | `{ "label", "href" }`. A `type` of `github`, `discord`, `slack`, `x` or `linkedin` gives a missing label. | | `navbar.primary` | object | The header's button: `{ "label", "href" }`. | | `footer.links[]` | array | Columns: `{ "header", "items": [{ "label", "href" }] }`. `title` works in place of `header`. | | `footer.socials` | object | Network name to address. | | `footer.copyright` | string | A line in the footer. | See [Logo, navbar, footer and banner](/customize/branding). ## API reference | Key | Type | Meaning | | --- | --- | --- | | `api.openapi` | string, list or object | The specs for your API pages. | | `api.playground.display` | `interactive`, `simple`, `none` or `auth` | Whether endpoint pages have Try it. `auth` is read as `simple`. | | `api.baseUrl` | string or list | The address for samples when a spec lists no servers. | | `api.mdx.server` | string or list | Read the same way as `api.baseUrl`. | Only `http` and `https` addresses count. ## Specly's own keys | Key | Type | Meaning | | --- | --- | --- | | `specly.run` | array | The languages whose code blocks can run. Specly runs JavaScript and Python, and opens TypeScript in StackBlitz or CodeSandbox. | | `specly.placeholders` | array of strings | Names that become "Your values", up to 30, each 1 to 64 characters. | See [Runnable code examples](/write/runnable-code). ## Older Mintlify keys Specly reads these so a file written before the current format still builds. | Key | Type | Read as | | --- | --- | --- | | `topbarLinks` | array | `navbar.links`, with `name` for `label` and `url` for `href`. | | `topbarCtaButton` | object | `navbar.primary`. | | `footerSocials` | object | `footer.socials`. | | `modeToggle` | object | `appearance`: `default`, and `isHidden` for `strict`. | | `anchors` | array | `navigation.anchors`, with `name` for `anchor` and `url` for `href`. | | `metadata` | object of strings | `seo.metatags`. | | `api.playground.mode` | `show`, `simple` or `hide` | `api.playground.display`: `interactive`, `simple` or `none`. | | `tabs` | array | With a `navigation` that's a list: `{ "name", "url" }`, where each tab holds the groups whose first page starts with its `url`. | | `$schema`, `theme` | string | Marks the file as Mintlify's own. Broken links then only warn. | ## What Specly warns about instead of building - `dropdowns`, `products` and `menu` show as tabs. - `$ref` navigation is left out. - A listed page with no file is left out. - An OpenAPI operation that no spec has is left out. - More than one version or language inside a tab builds only the default. - A colour that fails contrast is moved to a passing one. - A `specly.run` language Specly can't run, and a placeholder that isn't a name, are ignored. # theme.json reference Source: https://doc.specly.xyz/customize/theme-json > Every key Specly reads from theme.json, with its values and defaults. `theme.json` sits at the top of your docs folder and holds your site's look. The [dashboard](/customize/theme) writes it for you, and you can edit it by hand. Every key is optional, and what you leave out takes Specly's default, or comes from `docs.json` where it has a matching key. A key Specly doesn't know stops the build, with a message that lists the allowed ones. So does a value of the wrong kind. ```json theme.json { "accent": { "light": "#2f47c5", "dark": "#97a3e2" }, "fonts": { "heading": "Fraunces" }, "chapterNumbers": "all", "freshness": { "prNumbers": "never" } } ``` ## Keys | Key | Type | Meaning | | --- | --- | --- | | `look` | `editorial` or `product` | The layout, and the colours and fonts the site starts from. Default `editorial`. See [Look](#look). | | `background` | object | The page background. See [Background](#background). | | `accent` | hex colour or object | Links, the drop cap and the current page. Editorial's default is `#2f47c5` in light mode and `#97a3e2` in dark. | | `accent2` | hex colour or object | Chapter labels. Editorial's default is `#a83f28` in light mode and `#f08f72` in dark. | | `fonts` | object | Fonts by role. See [Fonts](#fonts). | | `mode` | `light`, `dark` or `toggle` | Which modes the site offers. Default `toggle`, or from `docs.json`'s `appearance`. | | `chapterNumbers` | `guides`, `all` or `none` | Which tabs number their chapters. Editorial's default is `guides`: every tab except API and reference ones. Product's is `none`. | | `checks.links` | `error` or `warn` | Whether a broken link stops the build. Default `error`, or `warn` for a site in Mintlify's format. | | `banner.content` | string | A line across every page, in inline Markdown. | | `banner.dismissible` | boolean | Lets readers close the banner. Default `false`. | | `freshness.prNumbers` | `auto`, `always` or `never` | Whether a page names the pull request it last changed in. Default `auto`: only when the docs repo is public. | A hex colour is six digits, such as `#2b3a8c`. ## Look `look` picks one of two layouts. Each brings its own defaults, and every other key in `theme.json` still wins over them. | | `editorial` | `product` | | --- | --- | --- | | Reads like | A book: serif text on paper | Product docs: sans-serif text on white | | Text size | 18 px | 16 px | | Background | Paper, with a grain | White, or near-black in dark mode | | Accent | `#2f47c5`, `#97a3e2` in dark mode | `#1f5fe0`, `#8fb4ff` in dark mode | | Second accent | `#a83f28`, `#f08f72` in dark mode | `#0b7a6b`, `#5fd4c0` in dark mode | | Fonts | Newsreader, Schibsted Grotesk, IBM Plex Mono | Inter, JetBrains Mono | | Sidebar | Chapters, numbered, a dot for each page | A plain tree, closer together | | Chapter numbers | `guides` | `none` | ```json theme.json { "look": "product" } ``` ## Light and dark values `background`, `accent` and `accent2` take one value for both modes, or an object with `light` and `dark`: ```json theme.json { "accent": { "light": "#1f3aa8", "dark": "#b4bdf0" } } ``` For `accent` and `accent2`, an object with any other key is an error. With a single colour, Specly lightens it for dark pages if it fails contrast there. With one for each mode, a failure stops the build. ## Background - `type` (string, required): `paper`, `color`, `gradient` or `image`. - `color` (hex colour): For `color`, the background colour. For `paper`, an optional colour. A single `color` also gives dark pages a matching dark surface. - `value` (string): For `gradient`, a CSS `linear-gradient(...)`, `radial-gradient(...)` or `conic-gradient(...)`, or a repeating one. - `src` (string): For `image`, a path to a file in `public/`. The build stops if it isn't there. `{ "type": "paper" }` with no colour is the default, a warm paper with a light grain. A gradient or an image is a band across the top of every page, under the header, fading into the page. The page itself stays the default paper colour and no text sits on the band, so text is as readable as on plain paper. ```json theme.json { "background": { "type": "gradient", "value": "linear-gradient(135deg, #fde3d1, #e5defc)" } } ``` ## Fonts `fonts` takes `heading`, `body`, `ui` and `code`, each the name of a Google Font. Any other key is an error. Specly downloads the fonts at build time and serves them from your site. | Role | Editorial | Product | | --- | --- | --- | | `heading` | Newsreader | Inter | | `body` | Newsreader | Inter | | `ui` | Schibsted Grotesk | Inter | | `code` | IBM Plex Mono | JetBrains Mono | ## Contrast Specly checks that text, secondary text, muted and faint text, and both accents reach a contrast ratio of 4.5:1 on your background, in each mode. If one doesn't, the build stops, and the message names the colour, its ratio and a colour to try. Docs.json's `colors` are the exception: Specly moves them to the nearest passing colour and warns. # Set up OpenAPI Source: https://doc.specly.xyz/api-docs/openapi > Add an OpenAPI file, and Specly builds a page for every endpoint. Add your OpenAPI file to the docs folder and name it in `docs.json`. Specly builds a page for each operation, with its parameters, request body, responses and request examples. [Specly's own API reference](/api-reference/introduction) is built this way. Specly reads OpenAPI 3.0 and 3.1, in JSON or YAML. A spec can be a file in your docs folder or an `https://` address. ## Add the spec Put the file in your docs folder, then add `openapi` to a group or tab in `docs.json`: ```json docs.json { "navigation": { "tabs": [ { "tab": "API reference", "groups": [ { "group": "Endpoints", "openapi": "openapi.yaml" } ] } ] } } ``` A group with `openapi` and no `pages` lists every operation in the spec. Operations are grouped by their first tag, and each tag becomes a sub-group. An operation with no tag goes straight in the group. Pages are built under `api-reference/`. To use one spec everywhere, set `api.openapi` once instead. Every group that has no spec of its own uses it: ```json docs.json { "api": { "openapi": "openapi.yaml" } } ``` - `openapi` (string | string[]): On a tab, group or other navigation node: the spec's path in your docs folder, or its `https://` address. A list uses several specs. - `api.openapi` (string | string[]): The spec used wherever a navigation node names none. - `api.baseUrl` (string | string[]): The server to use when a spec has no `servers` of its own. Must start with `http://` or `https://`. ## What the spec controls Specly writes each page from the spec, so the page is only as good as the spec. - `summary` (string): The page's title and its sidebar label. Without one, the title is the method and path. - `description` (string): Markdown shown under the title. Raw HTML in it is shown as text, and unsafe links are dropped. - `tags` (string[]): The first tag names the sub-group in the sidebar. - `servers` (object[]): The address requests go to. The first server is the one examples and Try it use. - `example` (any): What the page shows for a request or response. Without one, Specly makes one from the schema. - `x-codeSamples` (object[]): Your own request samples, each with `lang`, `label` and `source`. They come before the generated ones. - `x-hidden` (boolean): Leaves the operation out of the generated pages. `x-excluded` does the same. Use it for an operation you want to document by hand, as in [Hand-written endpoint pages](/api-docs/hand-written). - `deprecated` (boolean): Marks the page and its sidebar entry as deprecated. Fields that are `readOnly` are left out of the request body. Schemas that point to each other are followed, up to a depth limit, past which a field shows its type without its children. ## What isn't built Swagger 2 files aren't read, and webhooks aren't built. Specly warns in the build for each. Convert a Swagger 2 file to OpenAPI 3 first. To choose which operations get pages, and where, see [Endpoint pages and Try it](/api-docs/endpoint-pages). # Endpoint pages and Try it Source: https://doc.specly.xyz/api-docs/endpoint-pages > Choose which operations get pages, add your own text to one, and decide whether readers can send requests. Each operation in your spec becomes an endpoint page: a bar with the method and path, then the description, the authorization, the parameters, the request body and the responses. Beside them, request examples in cURL, JavaScript, Python and Go, and then each response. ## Pick the operations A group with `openapi` and no `pages` lists the whole spec. To list operations yourself, name each one in `pages`, as `" METHOD /path"`: ```json docs.json { "group": "Deploys", "pages": [ "openapi.yaml POST /api/sites/{id}/deploy", "openapi.yaml GET /api/sites/{id}/analytics" ] } ``` When the group names its spec with `openapi`, or `api.openapi` sets one, leave the spec out: `"POST /api/sites/{id}/deploy"`. The sidebar shows each operation's method as a badge. ## Add your own text to one Give a page its own file, and point it at an operation with `openapi` in its frontmatter. What you write shows after the bar and before the parameters. ```mdx guides/start-a-deploy.mdx --- title: "Start a deploy" openapi: "POST /api/sites/{id}/deploy" --- Call this from CI after your docs merge. ``` List the page in `docs.json` like any other page. If the operation isn't in a spec, the page shows a notice with your own content, and the build warns. - `openapi` (string): `"[spec] METHOD /path"`. Leave out the spec when the site has one. To write the page without a spec, see [Hand-written endpoint pages](/api-docs/hand-written). To show your own request and response examples, put `RequestExample` and `ResponseExample` in the page. They replace the generated ones. See [API fields and examples](/components/api-fields). ## Try it On an interactive page, **Try it** opens a dialog with a field for each parameter and for the authorization, and sends the request to the API. The reader's browser sends it, straight to the spec's first server. Specly doesn't see it. That has two limits: - The server must be an `https://` or `http://` address. Without one, Try it says there's no server to send to. - The API must answer requests from your docs site (CORS). If it doesn't, the browser blocks the call. Choose how much readers get for the whole site in `docs.json`: ```json docs.json { "api": { "playground": { "display": "simple" } } } ``` - `api.playground.display` (string, default: `interactive`): `interactive` adds Try it. `simple` shows the endpoint page and the examples, with no Try it. `none` hides the playground. `auth` is read as `simple`, because readers aren't signed in to your API. - `playground` (string): In a page's frontmatter: `interactive`, `simple` or `none`, for that page only. Anything else is ignored with a warning, and the site's setting applies. A request that starts something real, like a deploy, is a good reason to choose `simple`. Specly's own API reference does: a call from a browser would also fail the CORS check. ### Your values If a request example holds a placeholder such as `{{ORG_ID}}` and you've listed it in `specly.placeholders`, readers fill it in once with **Your values**, and Try it uses it. See [Runnable code](/write/runnable-code). # Hand-written endpoint pages Source: https://doc.specly.xyz/api-docs/hand-written > Document an endpoint without a spec: write the page, and add the method bar with one line of frontmatter. If you have no OpenAPI file, or an endpoint isn't in it, write the page yourself. Add `api` to its frontmatter, and the page gets the method bar and a method badge in the sidebar. ```mdx guides/list-projects.mdx --- title: "List projects" api: "GET https://api.your-product.dev/v1/projects" --- Returns the projects in your account. ``` - `api` (string): `"METHOD address"`. The method is get, put, post, delete, options, head, patch or trace. A full address is shown as written. A path that starts with `/` is added to the first address in `api.baseUrl` in `docs.json`. The bar shows the method and address, with **Copy** for the whole address. There's no Try it on a hand-written page, since there's no spec to build the form from. ## Write the rest Everything after the frontmatter is your own. Use [API fields](/components/api-fields) to describe the parameters and the response, and `RequestExample` and `ResponseExample` to show them beside the text: ````mdx Fields How many projects to return. The projects, newest first. ```` ````mdx Examples ```bash curl -H "Authorization: Bearer $API_TOKEN" https://api.your-product.dev/v1/projects ``` ```` ## Mix the two `api` and `openapi` do different jobs. Use `api` when no spec describes the endpoint. Use `openapi` to build the page from a spec, and add your own text. To keep a spec operation out of the generated pages and write it by hand, mark it `x-hidden` in the spec, then add a page with `api`. See [Set up OpenAPI](/api-docs/openapi). # Docs agent Source: https://doc.specly.xyz/ai/docs-agent > Let Specly draft docs for your code changes, fix failed builds and answer in the editor, with you reviewing everything it writes. The docs agent keeps your docs in step with your code. It drafts, fixes and suggests. Unless an admin lets it commit build fixes straight to your docs branch, nothing it writes reaches readers until a person merges or publishes it. Open **Docs agent** in the sidebar. A badge beside its name says in one line what it is doing: on and watching your repo, working, paused, or stuck. The sidebar says **Stuck** beside it too, on every page. It has four tabs: **Needs you**, **Pages**, **History** and **Settings**. ## What starts it | Trigger | Default | What it does | | --- | --- | --- | | A code pull request opens | On: **Draft the docs change** | Writes a docs pull request, linked from a comment on the code one. | | **Ask agent** in the editor | On | Answers about your docs, or suggests changes. Press ⌘J to open it. | | **Ask the agent to fix it**, on a comment | On | Suggests changes in the editor and replies in the thread. | | **Write this page**, from Analytics | On | Suggests changes, or drafts a new page, for a search that found nothing or a reader's feedback. | | **Translate with the agent**, from Navigation | On | Drafts one language's missing and out-of-date pages as a pull request, up to 20 at a time. | | **Fix failed builds** | Off | Opens a pull request that fixes problems a failed build names. | | **Nightly check for stale pages** | Off | Opens at most one pull request a week for pages whose code changed. | The ones that need a person to ask are on from the start. The two that open pull requests by themselves start off. A reader's words never start the agent on their own. ## Code pull requests Go to **Docs agent › Settings**. Under **Code pull requests**, **Repos to watch** lists the code repo you chose when you set up the site. Under **When one opens**, pick what happens: - **Draft the docs change** writes a docs pull request, linked from a comment on the code pull request. It's the default. - **Comment only** lists the pages that need a change, without writing it. - **Do nothing** posts nothing. Specly still reads the change to mark pages that may be stale. To skip some pull requests, type a GitHub label in **Skip pull requests labelled**, such as `no-docs`. A pull request with that label gets no docs, and its check says it was skipped. Leave it empty to skip none. ### The docs check Every code pull request also gets a GitHub check beside your tests, named after your site, such as `Specly docs (your-site)`. It says what happened to the docs the change affects: updated in the pull request, drafted by Specly, suggested on someone's draft in the editor, or not updated. It lists the pages by path. Pages left as they were leave the check neutral, which doesn't stop a merge. To stop one until the docs are done, turn on **Fail the docs check when pages aren’t updated**, then make the check required in your repo's branch protection. Auto-merge Specly won't commit into, and docs that changed while it drafted, count as not updated. Specly's own limits and trouble never fail the check: reaching its daily limit, a paused docs agent, or a docs repo it can't reach leave it neutral. Pull requests Specly opens itself pass it, since they change docs only. When you accept Specly's suggestions in the editor and publish, the check updates by itself; if you discard a draft it waited on instead, push a commit to check again. If your docs live in a repo of their own, pages listed but not drafted leave the check neutral, since it can't see updates made in that repo. **Do nothing** posts no check, so don't make it required then. If your repo uses a merge queue, don't make the check required yet: Specly doesn't check the merge queue's commits. If you installed Specly's GitHub App before the check existed, GitHub asks an owner of the repo to accept its new Checks permission. Until then, pull requests get their docs as before, without a check. **Draft with the agent (beta)** is on by default. It reads the code around a change, checks its own work and can add a page. Its drafts go where they go now. Pull requests from forks, and **Comment only**, work the same either way. ### See every pull request it read **Changes** lists every code pull request Specly has read, and what it did to your docs: a docs pull request, **Couldn't read**, **Reading**, or **No docs change**. It has three tabs: - **Needs you**: docs pull requests waiting for your review, and pull requests Specly couldn't read. - **In progress**: pull requests Specly is reading, docs changes it is still drafting, and pull requests from forks it commented on. - **Done**: docs pull requests merged or closed, and pull requests that needed no docs change. Above the tabs, Changes says whether the agent is on, paused or stuck. When it's stuck, editors and admins can choose **Run all N again** to read every pull request it couldn't read once more. When it's paused, an admin can choose **Turn it on**, unless it was paused for every site in the organization. Pick a pull request Specly couldn't read to see why. Editors and admins can choose **Run it again**; viewers, and everyone while the agent is paused, see the reason instead. A pull request that needed no docs change shows the agent's reason and the pages it read. ## Other work Under **Other work**, each switch saves as you flip it. **Commit build fixes straight to** your docs branch needs **Fix failed builds** on. It commits instead of opening a pull request, and only when every check passes. Where a person's draft of a page isn't published yet, the agent never writes over it. Its change becomes a suggestion on the draft. **Monday email: pages that may be stale** is coming. Specly doesn't send that email yet, and the switch keeps your choice. ## Choose the model that checks pages Under **Model**, an admin picks the AI model that checks your pages against your code. It does the nightly check, **Check every page** and **Check this page**. | Model | What it is | | --- | --- | | Haiku 5.5 | The default. The fastest and the cheapest: a check of one page costs a fraction of a cent. | | Sonnet 5.5 | A larger model, which may catch subtler mistakes. A check costs about 20 times what it does on Haiku. | | Opus 5.5 | The largest. A check costs about 40 times what it does on Haiku. | The next check uses the model you save. Writing and fixing pages always use Opus 5.5. ## Writing rules Under **Writing rules**, write down your voice, the words you use and what never to say, up to 4,000 characters: ```text Write in the second person. Say "workspace", never "project". ``` The agent follows them whenever it writes. It doesn't read `AGENTS.md` or `CLAUDE.md` for this, because those belong to your coding agents. ## Pause it An admin can choose **Pause the agent** at the top of the page. While it's paused, the agent starts nothing, a run stops at its next step, and **Ask agent** waits. **Turn the agent on** brings it back. An admin can also pause it for every site at once with **Docs agent on, for every site** in **Settings › Organization › General**. Only admins change these settings. Editors and viewers can read them. ## Deal with what it needs from you **Docs agent › Needs you** lists what is waiting for a person, and its tab shows how many. Pick an item on the left to see it on the right, with what you can do about it on the bar underneath. There are three kinds: - **Draft**: a docs change the agent wrote for a code pull request, or edits it suggests on a page. Review it, then merge or decide it as usual. - **Wrong**: a page that tells readers something your code no longer does, with the reason. Choose **Fix with the agent** and it opens a pull request with the page corrected; the item then shows that pull request until you merge it. Or edit the page yourself. - **Stuck**: the agent's last three or more runs all failed the same way, so nothing else is moving. It says why, who can fix it and how, and you can run the last one again. An item leaves when it is dealt with: the change merged, the suggestion decided, the page fixed, or the agent working again. An empty list means nothing needs you. Editors and admins can ask the agent for work here and on the other tabs. A viewer sees the same buttons, greyed, with the reason beside them. You can work it from the keyboard: `J` and `K` move between items, and the letter on each button presses it. ## See which pages match your code **Docs agent › Pages** shows your docs as folders of pages, each with its last check against your code: it matches, it is wrong, there is no code to compare it with, or it has not been checked since it was last edited. The agent checks each page on its own. It reads the page, finds the code the page describes and compares the two. Pick a page to see what its check said: what is wrong, or why there was nothing to compare. A check that doesn't finish leaves its page not checked, says why, and is tried again within a few days. Choose **Check this page** to compare a page with your code now. **Check every page** takes up to 50 pages at a time, the ones never checked or edited since first, once a day. A page found wrong has **Fix with the agent** here too. Anyone who can't start a check is told why. **Home** shows the same count beside your live site, with **See every page**. Each page found wrong is under **Needs you** there, with **Fix with the agent**. ## See what it did **Docs agent › History** lists what the agent did, newest first, with how each job ended. Jobs that failed one after another for the same reason are one line with a count, so one cause reads as one entry. Over the list are your organization's runs this month against its allowance, the site's runs in the last 24 hours against its daily limit, and what the month has cost. A run the AI service refused used nothing and doesn't count toward the day. Pick a line to see how it ended and what it took, and open it to see every step. A failed job has **Run it again**. Every member can read this page. # Assistant Source: https://doc.specly.xyz/ai/assistant > Let readers ask your docs a question and get an answer with sources, on your site and in your own product. The assistant answers readers' questions from your published pages. Each answer shows the pages it used. When the docs don't have the answer, it says so instead of guessing. ## Turn it on It's off until you turn it on. Open **Assistant › Settings**, and switch on **Answer readers’ questions on the docs site**. An admin does this; others can read the page. Answers start at once. The **Ask AI** button on every page, and the shortcut ⌘I (Ctrl+I on Windows and Linux), appear with your next deploy. Turn it off and answers stop at once. > **Note:** Docs that aren't public have no assistant. See [Who can read your docs](/publish/access). ## What readers see Under **What readers see**, you set two things: - **Suggested questions**: one a line, up to 6. Readers see them before they type. - **When it can’t answer, send readers to**: a page (https) or an email address. Leave it empty for no link. ## Put it in your product Under **In your product too**, copy the script tag and add it to your app. The same assistant opens from a button there: ```html ``` Type the addresses of the sites that may load it in **Sites allowed to load it**, like `app.yourcompany.com`, up to 10. It answers only there and on the docs themselves. `http://localhost` works for testing. ## See what readers ask **Assistant › Questions** shows, for the last 30 days: - **Questions**, and how that compares with the 30 days before; - **Answered from your pages**, each with its sources; - **Not in the docs**, the questions the assistant said it couldn't answer; - **Answers this month**, against your organization's monthly limit. At the limit, the assistant says so and shows your fallback link until the month turns over. Questions that weren't in the docs show up as gaps. **See what readers looked for** opens **Analytics › Search**, where you can write the missing page. # Coding agents Source: https://doc.specly.xyz/ai/coding-agents > Connect Claude, ChatGPT, Cursor or any MCP client, so it can read your docs and propose changes as you. A coding agent that speaks MCP can search and read your docs, and propose changes next to the code it's working on. It signs in as you and sees only the sites you pick. It can read, search and propose changes. It can't merge, change settings or act as more than an editor. The address to give it is: ```text https://app.specly.xyz/api/mcp ``` ## Connect an agent Open **Coding agents › Connect**, or choose **Connect an agent** at the top of the **Coding agents** page. Pick your client, and follow its steps. 1. **Add the address** Add `https://app.specly.xyz/api/mcp` to your client. The steps for each are below. 2. **Sign in** The agent opens a Specly page. Sign in, and pick the sites it may see. 3. **Ask it to work** Ask it to read a page or document a change. Its work shows up in **Changes**. **Claude** In Claude on the web or desktop, go to Settings, then Connectors, then Add custom connector. Paste the address. In Claude Code, run: ```bash claude mcp add --transport http specly https://app.specly.xyz/api/mcp ``` **ChatGPT** In ChatGPT, go to Settings, then Apps and connectors, then Advanced, and turn on Developer mode. Choose Create, paste the address, and choose OAuth. Sign in when ChatGPT asks, and pick the sites it may see. **Cursor** Choose **Add to Cursor** on the **Connect** page. Or add it to `~/.cursor/mcp.json` yourself: ```json { "mcpServers": { "specly": { "url": "https://app.specly.xyz/api/mcp" } } } ``` **Others** Any agent that speaks MCP over HTTP signs in with OAuth. Give it the address. If it can't sign in, send a personal token as `Authorization: Bearer `. ## What an agent can do | Tool | What it does | | --- | --- | | `list_sites` | Lists your docs sites. | | `list_pages` | Lists a site's pages in navigation order. | | `search_pages` | Finds pages that contain some text. | | `read_page` | Reads one page's Markdown. | | `propose_docs_change` | Proposes new or changed pages to go with a code change. | ## Personal tokens If your client can't sign in with OAuth, use a personal token. Go to **Settings › Your account › Personal tokens**, name the token, and choose **Create token**. Specly shows it once, so copy it then. Keep it in your environment as `SPECLY_TOKEN`, never in a file you commit. For Claude Code, the command with a token is: ```bash claude mcp add --transport http specly https://app.specly.xyz/api/mcp --header "Authorization: Bearer " ``` A token sees every site you can. Revoke it as soon as you stop using it. ## See and stop what's connected **Coding agents › Connected** lists your agents and tokens, which sites each sees, when it was last used, and what it did, with a link to its changes. Choose **Disconnect** or **Revoke** to stop one at once. Everyone sees only their own. ## Rules Everyone can read **Coding agents › Rules**, and only admins change it. Under **When an agent changes your docs**, pick one: - **Open a pull request**: recommended. You review it in **Changes**, and it gets a preview build. - **Save as drafts in the editor**: shows up in **Publish** next to your own edits. It never writes over edits nobody has published yet. - **Push straight to** your docs branch: goes live after the build, for people whose GitHub account can push to it. When the branch doesn't take direct commits, the agent opens a pull request instead. Agents change what readers see without anyone reviewing it. Checks still run, and a failing build keeps the last good version live. Agents can't touch `AGENTS.md`, `CLAUDE.md` or anything outside your docs folder, except `docs.json`. Under **Allowed sign-in addresses**, an agent finishes signing in by sending you back to an address of its own. Specly sends people back only to addresses on this list. Add one with **Add**, as a host with HTTPS, no path or port. The list applies to every site in your organization. # Docs for AI Source: https://doc.specly.xyz/ai/docs-for-ai > Every Specly site gives AI tools Markdown pages, llms.txt and llms-full.txt, and can offer readers an MCP address. Every public Specly site gives AI tools a Markdown copy of each page, `llms.txt` and `llms-full.txt`, with no setup. ## Markdown pages Add `.md` to a page's address and you get that page as Markdown. `https://doc.specly.xyz/ai/docs-for-ai.md` is this page. Components are written out as plain Markdown, and links start from the root. ## llms.txt and llms-full.txt - `/llms.txt` lists every page by navigation group, each linking to its `.md` file, with your site's description at the top. It follows [llmstxt.org](https://llmstxt.org). - `/llms-full.txt` holds every page's Markdown in one file, in navigation order. The page menu's **Copy page**, **View as Markdown**, **llms.txt** and **Connect to Cursor** use these. To choose which stay, see the [page menu](/customize/page-menu). ## Let readers connect their AI tools Readers can add your docs to their AI tool as an MCP server. It can search and read your pages, without signing in. It's on for every public site, and **Connect to Cursor** shows under **Copy page** on every page. **Assistant › Readers’ AI tools** shows **The address readers add**. Readers of other tools can add it themselves. In Claude Code, it's: ```bash claude mcp add --transport http -docs https://app.specly.xyz/api/docs-mcp/ ``` To turn it off, an admin switches off **Let readers connect their AI tools to your docs** on that page. The address then stops answering within a minute, and readers' pages drop the button at the next deploy. This is for your readers' tools. To let your own coding agents propose changes, see [Coding agents](/ai/coding-agents). ## Public docs only When your docs aren't public, search engines can't index them. `llms.txt`, the `.md` pages, the readers' MCP and the assistant are turned off too. See [Who can read your docs](/publish/access). ## See who reads The same page shows how many pages AI tools read in the last 30 days. **See which tools** opens [**Analytics › AI agents**](/publish/analytics). # Deploys Source: https://doc.specly.xyz/publish/deploys > Every merge to your docs branch builds and checks your site, and every docs pull request gets a preview. You don't publish by hand. A merge to your docs branch builds your site, checks it, and puts it live only when every check passes. Open **Deploys** in the sidebar to watch it. 1. **You push or merge** A push to your docs branch that touches your docs folder starts a build. 2. **Specly checks it** Pages, links and colour contrast are all checked before anything is uploaded. 3. **It goes live** When every check passes, readers get the new build in one step. If a check fails, readers keep the last good version. ## Builds **Deploys** opens on **Builds**. The pill at the top says **Live** with the commit the site is on, or **Not live yet**. Filter the list with **All**, **Live**, **Failed** and **Previews**. Each row shows its status, commit, how long it took and when it started. The first build of a new site checks every page and link, then puts the site on `.specly.xyz`. Choose **Build and go live** to start it. Choose a build to see its steps and log. A build that **Failed** explains **Why it stopped**: the end of its error and the broken links that stopped it, with what else the build found. Fix the file and merge, and a new build starts on its own. **Retry build** builds the same commit again, so a check that failed fails again until the docs change. ## Deploy now Choose **Deploy now** at the top of **Deploys** to build the latest commit on your docs branch without a push. Use it after a change that didn't come from a push. CI can do the same with an [organization API key](/api-reference/introduction). ## Previews Every docs pull request into your docs branch gets its own preview at `pr--.specly.xyz`, where `` is the pull request's number. It's built with the same checks, never touches the live site, and goes away when the pull request closes. Open **Deploys › Previews** to see each one as **Building**, **Ready** or **Failed**. **Open preview** opens it, and **See what broke** opens the failed build. A pull request whose address would be longer than DNS allows, 63 characters, has no preview. ## Your own domain **Deploys › Domains** shows your Specly address, `.specly.xyz`, and lets you serve the same site on a domain of your own, like `docs.your-domain.com`. Your Specly address keeps working after you add one. Each site can have one domain, and only an admin can add or remove it. 1. **Add the domain** Under **Your own domain**, type it in **Add a domain** and choose **Add domain**. 2. **Add the DNS record** Specly shows a `CNAME` record: its name is your domain, and its value is `cname.specly.xyz`. Add it where you manage DNS. Until it's found, the domain shows **Waiting for DNS**. 3. **Check again** Choose **Check again**. DNS changes can take a few minutes. Once the record is found, HTTPS turns on by itself and the domain shows **HTTPS on**. When a domain shows **Not set up**, check the record, then choose **Check again**, or remove the domain and add it again. A domain another site already uses can't be added. **Remove** takes your site back to its Specly address only. If a domain that was live stops working, admins hear about it in their [inbox](/team/inbox). ## When a build fails A failed build shows what stopped it: - A broken link or an unknown component is named with its file and line, and the page it's on. - A `theme.json` error, or a colour that fails contrast, is named in the log. - A build that never reports back shows **No result** after 30 minutes. Choose **Retry build**. You can ask the docs agent to fix it. See [Docs agent](/ai/docs-agent). # Who can read your docs Source: https://doc.specly.xyz/publish/access > Keep your docs public, protect them with one password, or let in only the people you name. New sites are public. When they shouldn't be, change who can read them in **Settings › Site › Access**. An admin of your organization makes the change. Others can see it. Changes reach the site and its previews within a minute. Readers who were signed in sign in again after a change. ## Choose a way **Public** **Public**: anyone can read. Search engines and AI tools can index it. **One shared password** **One shared password**: good for a launch preview. Readers type it once per browser. The password needs at least 12 characters. Share it with the people who should read the docs. To change it, type a new one. Leave the field empty to keep the one readers have. A new password signs everyone out. **People you allow** **People you allow**: readers sign in with an emailed link if their email or domain is on your list. Write the list in **Emails and domains allowed in**, with commas or lines between them, up to 200. `@yourcompany.com` lets in every address at that domain. Removing anyone signs everyone out. Your company sign-in (SSO) is coming later. ## When the docs aren't public While your docs are password-protected or limited to people you allow: - search engines can't index them; - `llms.txt`, the `.md` pages, the readers' MCP and the assistant are turned off. See [Docs for AI](/ai/docs-for-ai) and [Assistant](/ai/assistant). Previews follow the same rule as the live site. # Analytics Source: https://doc.specly.xyz/publish/analytics > See what readers and AI agents do on your live site: views, searches, feedback and which AI tools read your pages. Open **Analytics** in the sidebar. It counts what happens on your live site, without cookies, and Specly doesn't keep IP addresses. Numbers catch up every hour, and every member of your organization can read them. Until the site goes live, there's nothing to count. After that, pick **7 days**, **30 days** or **90 days** at the top; the default is 30. ## Overview **Analytics** opens on **Overview**: - **Page views**, with the change against the days before; - **Readers**, counted once a day each; - **Searches**, and how many found nothing; - **Helpful**, the share of thumbs up from readers' feedback; - **Page views per day**, with a mark where a build went live; - **Most read pages**, and **Searches that found nothing**. ## Pages **Analytics › Pages** lists up to the 100 most read pages, with how helpful readers found each one and how often AI agents read it. A page marked **May be stale** has a merged code change with no docs change after it. ## Search **Analytics › Search** shows how many searches **Found a page** and how many **Found nothing**, then the 20 most searched terms that found nothing. Each is a page your readers wanted. - **Write this page** asks the [docs agent](/ai/docs-agent) for a draft you review like any change. - **Write it myself** opens a new page in the editor, titled after the search. Searches that look like an email address or a key are never kept. ## Feedback **Analytics › Feedback** shows the **Helpful** rate, **Not helpful** thumbs and **Notes** readers wrote, newest first. Show **Not helpful** or **With a note** only. On a thumbs down, **Ask the agent to fix it** asks the docs agent, and **Fix it myself** opens the page in the editor. ## AI agents **Analytics › AI agents** counts reads of your `llms.txt`, `.md` pages and readers' MCP, by the tool that asked: ChatGPT, Claude, Perplexity and others. It also lists the pages agents read most. See [Docs for AI](/ai/docs-for-ai). ## What counts A page view counts when the page opens in a reader's browser and its script runs, as most analytics tools count. A crawler or script that only fetches your pages isn't counted, and neither is a page opened in an automated browser, a page in a frame, or a reader with scripts turned off. AI agents are counted when they read a page, under **AI agents**. A reader is counted once a day, from a code that changes every day and can't be traced back to a person. No cookies, and Specly doesn't keep IP addresses. You can pull the numbers into your own tools with the [API](/api-reference/introduction), or download them as CSV in [Exports](/team/exports). # Members and roles Source: https://doc.specly.xyz/team/members > Invite people to your organization and decide what each can do. Everyone who works on your docs belongs to an organization. Open **Settings › Organization › Members** to see who can open its sites in Specly, and what they can do there. ## Roles | Role | Can | | --- | --- | | **Admin** | Everything, including site settings and members. | | **Editor** | Write, review changes, publish and deploy. | | **Viewer** | Read the dashboard. | An organization always needs at least one admin. The last admin can't be removed or made an editor until someone else is an admin. Editors and viewers see the same settings pages, read-only. ## Invite someone 1. In **Members**, type their **Email** under **Invite someone**. 2. Pick a **Role**. **Editor** is selected first. 3. Choose **Send invite**. Specly doesn't email invites yet. Ask them to sign in at `https://app.specly.xyz` with that address. Only invited addresses can sign in, and they join the next time they do. Invites wait in the list as **Invited**. Choose **Cancel invite** to withdraw one. ## Change or remove someone Pick a new role in the person's row, then choose **Change**. **Remove** takes them out of the organization. To leave an organization yourself, use **Leave organization** in **Settings › Organization › General**. The same page renames the organization, lists its sites, and has the switch that pauses the [docs agent](/ai/docs-agent) for all of them. # API keys Source: https://doc.specly.xyz/team/api-keys > Make organization keys for CI and scripts, choose what each may do, and revoke them. An organization API key lets a pipeline or script start a deploy or read analytics, without a person's login. It belongs to the organization, so it keeps working when people leave. Only an admin can see and make keys. For what the keys call, see the [Specly API](/api-reference/introduction). ## Make a key Open **Settings › Organization › API keys**, and fill in **New key**: 1. **Name**: the pipeline that will use it, such as `GitHub Actions`. 2. **It may**: **Start a deploy**, **Read analytics**, or both. 3. **On**: **Every site in** your organization, now and later, or **Only these sites** you tick. 4. Choose **Create key**. Copy the key right away. Specly shows it once, and keeps only a fingerprint of it. Put it in your CI's secrets as `SPECLY_KEY`. The page shows the two `curl` calls to use it. ## Manage keys Your organization's keys are listed with what each may do, which sites, who made it, and when it was last used. Choose **Revoke** to stop one at once. Coding agents don't use organization keys. They use a [personal token](/ai/coding-agents). # Exports Source: https://doc.specly.xyz/team/exports > Download your built site, activity log, comments and analytics. Your pages already live as Markdown in your repo. **Settings › Organization › Exports** has what only Specly holds, for the site you're in. Only an admin can export. | Download | File | What's in it | | --- | --- | --- | | **The built site** | `site.zip` | The live build's HTML, CSS and images. Host it anywhere. | | **Activity log** | `activity.csv` | Every build and docs change: when, what, its status and pull request. | | **Comments** | `comments.json` | Every thread, open and resolved. | | **Analytics** | `analytics.zip` | Views, readers, agent reads, searches and feedback per day, as CSVs. | Choose **Download** beside a file. The analytics files keep the whole site's numbers and each page's in separate files, so a sum never counts a view twice. They also list the searches that found nothing. If nothing is live yet, there's no built site to download. Deploy first. The built site allows a few downloads a minute. If one is refused, wait a minute and try again. # Inbox and notifications Source: https://doc.specly.xyz/team/inbox > See what needs you across every site, and choose what reaches you. **Inbox** in the sidebar collects what needs you, from every site you're in, newest first. The number beside it is how many are unread. ## Tabs | Tab | What it holds | | --- | --- | | **All** | Everything. | | **Mentions** | Someone mentions you or replies to you. | | **Changes** | A docs change is ready to review, and the docs agent or a coding agent proposes or pushes a change. | | **Builds** | A build fails, pages may be stale, or the GitHub connection stops working. | Each notice shows its kind, such as **Ready to review**, **Build failed** or **May be stale**, and its site. Follow it to the thing itself, and it's marked read. **Mark all as read** clears the rest. Mentions come from [comments](/editor/comments). ## Choose what reaches you **What you get** opens **Settings › Your account › Notifications**. Each row is an event, with a box for **Inbox** and a box for **Email**. Choose **Save**. The choices are yours, and the same on every site. | Event | Inbox | Email | | --- | --- | --- | | A docs change is ready to review | On | On | | Someone mentions you or replies to you | On | On | | A build fails | On | On | | The docs agent or a coding agent proposes or pushes a change, or a run fails | On | Off | | Pages may be stale (at most once a week) | On | On | | A domain or the GitHub connection stops working | On | On | A seventh row, **A reader reports a problem on a page**, is for reader reports, which are coming. Those are the starting choices. > **Note:** Email comes from pratik@specly.xyz, within a minute, one email for whatever arrived together, with a link to each > notification. Only what reaches your inbox is emailed, so email needs the inbox on too. # Specly API Source: https://doc.specly.xyz/api-reference/introduction > Start a deploy from CI, or read a site's analytics, with an organization API key. The Specly API has two calls. You can start a deploy of a site, and read its analytics. Both use an organization API key, so CI and scripts can call them without a person's login. The server is `https://app.specly.xyz`. ## Make a key Open **Settings › Organization › API keys** in the [dashboard](https://app.specly.xyz). Only an admin of the organization can make or see keys. 1. Give the key a name, such as the pipeline that uses it. 2. Choose what it may do. Each choice is a scope. 3. Choose where it works: every site in the organization, or only the sites you pick. 4. Select **Create key**, and copy the key. Specly shows it once. A key belongs to the organization, not to a person, so it keeps working when people leave. Revoke it on the same page. - `deploy` (scope): Start a deploy: `POST /api/sites/{id}/deploy`. - `analytics:read` (scope): Read analytics: `GET /api/sites/{id}/analytics`. ## Call the API Send the key as a bearer token. Every key starts with `spk_org_`. `{id}` is the site's ID, which is in its address in the dashboard. ```bash Deploy curl -X POST \ -H "Authorization: Bearer YOUR_API_KEY" \ https://app.specly.xyz/api/sites/{id}/deploy ``` ```bash Analytics curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://app.specly.xyz/api/sites/{id}/analytics?days=30" ``` Answers are JSON. A deploy answers `202` with the build it started. ## Errors - `401` (status): The key is missing, malformed, unknown or revoked. The answer has a `WWW-Authenticate: Bearer` header. - `403` (status): The key can't be used on this site, or doesn't have the scope the call needs. - `429` (status): Too many requests. Wait a minute. A key may start 10 deploys and make 60 analytics calls a minute. Each error has an `error` field that says what went wrong. The pages in this tab show every call's fields and answers. There's no Send button, because the API doesn't accept calls from a browser page. Use curl. # Start a deploy Source: https://doc.specly.xyz/api-reference/deploy/start-a-deploy `POST https://app.specly.xyz/api/sites/{id}/deploy` Builds the site's docs from its docs branch and publishes them. The build runs after the call returns: follow it at the `url` in the response. Needs a key with the `deploy` scope. A key may start 10 deploys a minute. ## Authorization - `Authorization` (header): Bearer token ## Path parameters - `id` (string, required): The site's ID, which is in its dashboard address. ## Responses ### 202 The build has started. `application/json` - `build` (object, required) - `id` (string, required): The build's ID. - `url` (string, required): The build's page in the dashboard. ### 401 The key is missing, malformed, unknown or revoked. `application/json` - `error` (string, required): What went wrong. ### 403 The key can't be used on this site, or doesn't have the scope this call needs. `application/json` - `error` (string, required): What went wrong. ### 429 Too many requests from your address, or with this key. Wait a minute. `application/json` - `error` (string, required): What went wrong. ## Example request ```bash curl --request POST \ --url 'https://app.specly.xyz/api/sites/{id}/deploy' \ --header 'Authorization: Bearer ' ``` ## Example response (202) ```json { "build": { "id": "5b0e6c3a-1f4d-4c1e-9a53-0d8f6f2f7a10", "url": "https://app.specly.xyz/sites/2f6c1b8e-7d3a-4e55-b1c9-3a9d0c4e8f12/deploys/5b0e6c3a-1f4d-4c1e-9a53-0d8f6f2f7a10" } } ``` # Get site analytics Source: https://doc.specly.xyz/api-reference/analytics/get-site-analytics `GET https://app.specly.xyz/api/sites/{id}/analytics` Returns the site's analytics for the last 7, 30 or 90 days, as JSON: one row a day for the whole site, the top 100 pages over the range, and the top 20 searches that found nothing. Needs a key with the `analytics:read` scope. A key may make 60 calls a minute. ## Authorization - `Authorization` (header): Bearer token ## Path parameters - `id` (string, required): The site's ID, which is in its dashboard address. ## Query parameters - `days` (enum, default: 30): How many days to include, counting today. Any other value gives 30. One of: `7`, `30`, `90`. ## Responses ### 200 The site's analytics. `application/json` - `site` (string, required): The site's ID. - `days` (integer, required): The number of days in the range. - `since` (string, required): The first day in the range (UTC). - `daily` (object[], required): One row for each day that has data, oldest first. - `day` (string) - `views` (integer): Page views. - `readers` (integer): Readers - `agent_reads` (object): Reads by AI agents, as a count for each agent. - `searches` (integer) - `searches_found` (integer): Searches that found a page. - `helpful` (integer): "Yes" answers to "Was this helpful?". - `not_helpful` (integer): "No" answers to "Was this helpful?". - `pages` (object[], required): The 100 most viewed pages over the range. - `path` (string) - `views` (integer) - `agent_reads` (integer) - `helpful` (integer) - `not_helpful` (integer) - `searches_without_results` (object[], required): The 20 most searched queries that found nothing. - `query` (string) - `searches` (integer) - `last_day` (string) ### 401 The key is missing, malformed, unknown or revoked. `application/json` - `error` (string, required): What went wrong. ### 403 The key can't be used on this site, or doesn't have the scope this call needs. `application/json` - `error` (string, required): What went wrong. ### 429 Too many requests from your address, or with this key. Wait a minute. `application/json` - `error` (string, required): What went wrong. ## Example request ```bash curl --request GET \ --url 'https://app.specly.xyz/api/sites/{id}/analytics?days=30' \ --header 'Authorization: Bearer ' ``` ## Example response (200) ```json { "site": "2f6c1b8e-7d3a-4e55-b1c9-3a9d0c4e8f12", "days": 7, "since": "2026-10-20", "daily": [ { "day": "2026-10-25", "views": 412, "readers": 138, "agent_reads": { "ChatGPT": 12 }, "searches": 40, "searches_found": 36, "helpful": 9, "not_helpful": 1 } ], "pages": [ { "path": "/get-started/quickstart", "views": 190, "agent_reads": 5, "helpful": 6, "not_helpful": 0 } ], "searches_without_results": [ { "query": "sso", "searches": 4, "last_day": "2026-10-24" } ] } ```