Skip to content

Migrate to Docsheaf

Bring your existing docs from GitBook, a Git repository or a folder of Markdown.

Docsheaf reads GitBook's Markdown format — SUMMARY.md, .gitbook.yaml, nested README.md pages, front matter and the {% hint %}, {% tabs %}, {% stepper %} family of blocks — so most GitBook content moves over without edits.

  1. Export your GitBook space as Markdown, or download your repository as a ZIP (GitHub's Code → Download ZIP works as it is).

  2. In Docsheaf, open the space and choose Import a folder (.zip) from the space menu.

  3. Read the preview: the page outline, the counts, files left out, images the pages point to that the archive lacks, and links that don't lead to an imported page.

  4. Confirm. The pages are added after the ones already in the space — nothing is replaced.

Images and files the pages use are uploaded with them, and links between pages keep working.

What carries over#

From GitBook

In Docsheaf

SUMMARY.md headings

Groups

Nested README.md

A page with sub-pages

Front matter description, cover, hidden, emoji icon

Page fields of the same name

Hints, tabs, steppers, expandables, cards, columns, embeds, files, math

The same blocks

{% content-ref %}

Page link cards

{% openapi %} and the older {% swagger %}

OpenAPI blocks

{% if %} conditions

Conditional content

.gitbook/assets/

Uploads

GitBook icon: values that name an icon (rather than an emoji) are dropped. Set an emoji on those pages after the import.

Limits#

An archive can be up to 20 MB, 5,000 files and 2,000 pages; Markdown files over 2 MB are left out and listed in the preview. A space holds up to 10,000 pages, 16 levels deep.

Was this helpful?

Last updated

View as Markdown