- Documentation
- Get started
- Move to Specly
Move to Specly
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. This page explains what happens at steps 3 to 5 when you have docs.
What setup finds
Section titled “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
Section titled “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
Section titled “How pages are converted”Specly copies each page and makes it Mintlify’s format:
- Navigation. Docusaurus’s
sidebarsfile and MkDocs’snav:become the navigation indocs.json. A Docusaurus site with several sidebars gets a tab for each. Otherwise, each folder becomes a group, ordered bysidebar_position, Starlight’ssidebar.order, or a number prefix like01-. Docusaurus_category_files name the groups. - Admonitions become callouts:
:::notein Docusaurus,:::note[Title]in Starlight,::: tipin VitePress, and!!! note "Title"or??? notein MkDocs. A title becomes the callout’s first line, in bold. - Frontmatter.
sidebar_labelbecomessidebarTitle. If a page’s frontmatter has notitle, its leading# Titlemoves intotitle, so it isn’t shown twice. - Imports from
@theme/,@site/and@docusaurus/are removed.
| Admonition | Callout |
|---|---|
note, quote, cite |
<Note> |
tip, hint, important |
<Tip> |
info, abstract, summary, tldr, todo, question, help, faq, example |
<Info> |
success, check, done |
<Check> |
warning, caution, attention, danger, error, failure, fail, missing, bug |
<Warning> |
Any other type becomes a <Note>.
Files and folders whose names start with . or _ aren’t copied. Components the conversion doesn’t know, like
Docusaurus’s <TabItem>, show in a dashed frame on the page, and the build warns about each one.
What carries over from Mintlify
Section titled “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
Section titled “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,productsandmenushow as tabs.- Versions and languages at the top of
navigationeach build, with a switcher. Nested inside a tab, only the default one builds. - Navigation split into other files with
$refisn’t read yet.
Components
Section titled “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: <Snippet file="name.mdx" />, 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
Section titled “Frontmatter”title, description, sidebarTitle, icon, mode, openapi, api, playground and rss work as in Mintlify.
mode takes default, wide, center, custom or frame.
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.