Skip to content
Documentation

Move your docs to Nibleaf

Import documentation from Mintlify, GitBook, Ghost, or a public Git repository, check that nothing was lost, and switch over without breaking links.

  • 5 min read
  • Updated

An import copies your existing docs into Nibleaf and converts them. It is a conversion, so some things will need checking. Keep your old site running until you have checked the new one and know how to switch back.

  • You need to be the site's Owner or an Admin.
  • Record what you have now: the number of pages and images, the navigation structure, redirects, languages, and a few searches that must find a particular page.
  • Keep a copy of the source, and decide who is responsible for the switch and for switching back if needed.
  • Consider importing into a new, separate site first, so you can practice without touching your live docs.

Open Settings → Import and choose a source:

SourceWhat Nibleaf brings inCheck closely
MintlifyFrom a public GitHub repository: docs.json or mint.json, navigation, pages, languages, versions, images, and site branding.Custom components, redirects, and settings that have no Nibleaf equivalent.
GitBookFrom a public GitBook Git Sync repository on GitHub: .gitbook.yaml, SUMMARY.md sections, pages, GitBook blocks, images, and redirects.Embeds, OpenAPI blocks, adaptive content, and blocks with no Nibleaf equivalent.
GhostFrom a Ghost JSON export: published posts and pages, tags, images, and metadata.Language tags, custom cards and embeds, routes, and redirects.

To bring in Markdown files from any other public Git repository, use Settings → Git and open Import a public repository instead. That import is one-way. To keep editing in both Git and Nibleaf, see Connect a GitHub repository.

One import can bring in up to 500 navigation entries, counting groups and pages. Split larger sources into smaller parts.

  1. Enter the GitHub repository as owner/repository, and a Branch (optional).
  2. Decide whether to turn on Replace the current draft with this repository. See Before you import again: with it on, pages that aren't in the repository are deleted from your draft.
  3. Select Import.

Nibleaf can't read a private Mintlify workspace. If your docs aren't in a public GitHub repository, copy them to a temporary public repository first, without any secrets or private content.

Enter the Git Sync GitHub repository and an optional Branch (optional). If the repository holds several GitBook spaces, also enter the Space folder (optional), for example docs/guides. The Replace the current draft with this repository switch works the same way as for Mintlify. Then select Import. GitBook sections become sidebar headings and keep their GitBook addresses.

  1. Give every Ghost post and page exactly one language tag whose slug matches a language on your Nibleaf site, such as en or ar. The import stops if a tagged language doesn't exist on the site yet.
  2. In Ghost Admin, open Settings → Labs → Import/Export and export your content as JSON.
  3. In Nibleaf, choose the Export file (.json) (up to 15 MB) and enter the Ghost site URL, including https://. Nibleaf uses the address to copy your images.
  4. Select Import.

Nibleaf imports published public posts and pages only. It skips drafts, scheduled posts, and members-only or paid content, so private articles never become public docs. Recreate your Ghost redirects yourself in Settings → Appearance → Redirects.

The summary shows how many pages were imported, updated, and skipped, and how many images were copied. Select Show warnings and deal with each one.

If an image couldn't be copied, the page still points to the old address. That image will break when you shut down the old site, so download and upload it again.

Imported pages are drafts. Readers see them only after you publish.

An import can change or remove pages in your draft:

  • An ordinary import overwrites matching pages. When an imported page has the same address and place in the navigation as an existing page, Nibleaf replaces that page's title and text with the source version. Edits you made to it in Nibleaf are lost. Pages that aren't in the source are kept, except untouched starter placeholder pages, such as an unedited welcome page, which the import removes.
  • An import with Replace the current draft with this repository turned on (Mintlify and GitBook) replaces your whole draft with the repository. Pages that aren't in the repository are deleted.

Before you import again, download your drafts: open Settings → Exports → One-time export and select Download the original Markdown ZIP. It contains the text of every page as it is now, including changes you haven't published, but not images, so you can bring back any edits an import overwrites or deletes. A regular export is not enough here, because it contains only your latest published version. Your published site doesn't change until you publish.

  1. Compare the page count and navigation with your notes.
  2. Preview at least one page of each kind: tables, code, images, and components.
  3. Check languages and versions, and open Settings → Languages to find missing translations.
  4. Click through links, images, downloads, and redirects.
  5. Run the searches you recorded, in every language.
  6. Check page titles and descriptions.
  7. Check a few pages on a phone and with a keyboard.
  8. Publish, then repeat the checks in a private browser window.

Connect your domain only when everything above works. See Connect a custom domain. Before you switch, make sure you can point your domain back to the old site, and don't delete the old site until the new one has run without problems for a while.

Before a large migration, download your drafts with Download the original Markdown ZIP. After the final switch and publish, export a copy of the published site. If you will keep using GitHub, set up two-way Git editing in a test repository first. Check the known limitations too.

Was this page helpful?