Import with AI
When you import your docs from a web address, a folder or .zip, or a GitHub repository, AI rewrites each page with Typemark's components and checks it against your docs, keeping every code example, heading and table.
Updated Nov 26, 20268 min read
When you import your docs, AI can rewrite each page the way it would have been written on Typemark: callouts, steps, tabs, cards, endpoint pages and a clear navigation. It never changes what your pages say. Every page it rewrites is checked against your docs, and a page that fails the check keeps the version our import rules made.
Turn it on
On the import page at typemark.dev/import, choose Web address, Folder or .zip or GitHub, and fill it in. Rewrite with AI is on. Click Make a draft. To import with our rules alone, turn Rewrite with AI off.
From a folder, a .zip or a GitHub repository, your files go to our AI provider to be rewritten. If you'd rather they didn't, turn Rewrite with AI off. See Your content.
A Typemark or Mintlify site is already in Typemark's format, so its pages work as they are. AI doesn't run on it, and the import page and the draft say Your docs are already in Typemark's format, so AI isn't needed.
If you're signed in, the switch also shows your plan and how many pages AI can still improve on your account this month. See Import while signed in.
What happens
Your draft opens first
Our rules import your docs as they always do, and your draft opens as soon as it's built. You don't wait for AI.
AI plans the site
AI reads the whole site and plans its navigation: the tabs, the groups, their order and their names. When our rules read your site's own navigation, such as GitBook's
SUMMARY.md, Docusaurus's sidebars, MkDocs'navor the page tree of a Notion or Confluence export, AI starts from it. Blog and changelog posts become one Changelog page, and pages that document one API endpoint become endpoint pages. AI never removes a page. Pages it thinks aren't documentation, such as a page with only links to other pages, stay on your site, and the report lists them for you to decide.AI rewrites each page
Each page is rewritten with Typemark's components, given a clear title and description, and checked. Pages change in your draft as AI finishes them, a few at a time.
The import page shows AI's steps under Rewrite with AI: planning the site, rewriting pages, with how many are done and the last pages AI finished, and a final check.
The check
AI may change a page's structure, its components, its title and description, and where it sits in the navigation. It may not change the meaning or the wording of your text. Every rewritten page has to pass a check before it's used:
- It builds. The page compiles like any page on your site.
- Every code example is there, with its code unchanged.
- Every image is there, on a page from a folder, a .zip or a repository. An image may move, but each one on the original page has to be on the rewritten page.
- The text is there. At least 97% of the original words, every heading, and every table cell. The text of every link and the title of every card, callout and tab stay word for word.
- No new links. Links go to your imported pages or to addresses your docs already link to. A link to one of your pages that wasn't imported points at that page on your old site when you imported from a web address, and becomes plain text otherwise.
- No code. No scripts, imports, inline styles or HTML that Typemark doesn't show.
A page that fails gets one more try. If it fails again, it keeps the version our rules made, and the report says why.
AI never fetches anything itself. It only sees what our import already read: your files, or the pages of your site, read through your robots.txt.
Original and With AI
On every page AI rewrote, a bar at the bottom of the draft lets you switch between Original, the page as our rules imported it, and With AI. Changes lists what AI changed on that page.
On other pages, the bar says AI hasn't reached this page yet, or We kept our version, with the reason. A page over 40,000 characters is too long for AI to rewrite in one go, so it keeps our version.
The banner at the top shows AI's progress, such as AI 63 / 119, then Improved with AI when it's done. Click it to open the report.
The report
The report shows how many pages AI rewrote, how many code examples it kept, and how many pages have text missing. It has four parts:
- Needs you: pages AI didn't reach, pages that kept our version and why, links that became plain text, and the import's own notes.
- What AI changed: every rewritten page, with what changed. Each one links to the page.
- AI suggests leaving out: pages AI thinks aren't documentation. They stay on your site until you remove them.
- Left out: pages that weren't imported, and why.
50 pages in the draft
Without an account, a draft gets AI on its first 50 pages. On a larger site, AI plans the whole site, then rewrites the first pages of every tab and group, so you see what it does everywhere. The banner shows AI preview · 50 of 180, and the other pages say AI improves this page when you keep these docs.
When you keep the draft, AI finishes the rest on your account. The Keep these docs page says how many pages are left and about how long they take. You can start editing straight away.
Import while signed in
When you're signed in, AI works on your account from the start. Under Rewrite with AI, the import page says who you're signed in as, your plan, and what AI does, such as Signed in as [email protected] · Pro. AI improves every page, from the 1,000 pages left on your account this month.
- On Pro and Enterprise, AI improves every page of the draft. There's no 50-page preview. The pages count against your account's 1,000 a month.
- On Free, a site of up to 50 pages gets every page improved without using your one AI import, as without an account, and counts toward the 3 imports with AI a day from your IP address. If your IP address has used those 3, it uses your AI import instead. A larger site gets every page too, and uses your one AI import. Once that's used, a draft gets AI on its first 50 pages.
To open the import page from the dashboard, click New project and choose Import your docs.
The draft is still yours alone until you keep it. The Keep these docs page has your site's address filled in, so keeping it is one click. If AI is still working when you keep it, it carries on in the project, without using another AI import.
After you keep it
While AI works on the rest, a strip on the project's overview and above the editor's pages says AI is improving your imported pages, with how many are done. Each batch of pages is a commit by Typemark AI, so the page history shows what changed, and the version our rules made is still in your repository's history. If your deployment branch is protected, AI's pages arrive as a change request for you to review instead.
AI never changes a page you edited. If you change a page before AI reaches it, AI leaves it as it is, and the report says so.
When AI is done, the strip goes away. The report stays on the project's overview, under History, in the line Imported from … with AI.
If you signed up with your email, AI carries on once you've confirmed your address. Until then, the strip says Confirm your email, and has a Resend button. If the address isn't confirmed within 30 days, the other pages stay as our rules made them.
Plans and limits
AI on the first 50 pages of a draft costs nothing, with or without an account. The rest depends on the plan of the account that keeps the draft or, when you're signed in, the account you import with:
| Free | Pro | Enterprise | |
|---|---|---|---|
| AI on the first 50 pages of a draft | Yes | Yes | Yes |
| AI on every page of an import you start signed in | Once | Every import | Every import |
| AI finishes the rest when you keep a draft | Once | Every import | Every import |
| Pages AI improves per month | 1,000 | 1,000 | 1,000 |
| Turn AI off for your imports and kept drafts | No | No | Yes |
On Free, your one AI import goes to whichever comes first: an import with AI of more than 50 pages that you start signed in, or the first draft you keep with pages left. After that, AI works only on the first 50 pages of a draft. The other pages stay as our rules made them, and you can edit them like any page.
The 1,000 pages a month count across all your imports. When they're used up, AI stops where it is, the other pages stay as our rules made them, and the report says how far it got.
Some limits keep AI fair for everyone. When one applies, the import uses our rules alone, and the report says why:
- 3 imports with AI a day from one IP address, unless AI works on your account's pages
- 300 pages in an import
- a daily limit across Typemark: if AI has done all the imports it can for the day, try again tomorrow
Turn AI off for your imports and kept drafts
On Enterprise, you can keep your own imports, and drafts kept into projects you own, away from AI. The setting is yours alone: it doesn't change the imports of other people on your team. Go to Account > AI for imports and turn off Rewrite imports with AI. While it's off:
- The import page has no Rewrite with AI switch when you're signed in, and your imports use our rules alone.
- An import that AI is already working on stops at its next page. The pages AI hadn't reached keep our rules' version.
- A draft kept into a project you own isn't finished with AI, and the Keep these docs page says nothing about AI.
- None of their files go to our AI provider.
You can turn it back on at any time.
Your content
Typemark sends the pages it imported to its AI provider, the same way as for AI writing: the pages of your site, or the files from your folder, .zip or repository. It asks the provider to route requests only to model providers that don't store or train on your data. To keep your files away from AI, turn Rewrite with AI off on the import page, or, on Enterprise, turn AI off for your imports and kept drafts.