Skip to main content

Introduction

Write your docs in GitBook's rich editor. Host them anywhere.

GitBook is a great editor for writing documentation, but hosting is limited to GitBook's own platform. If you want full control over your site with custom domains, your own CI/CD pipeline and no vendor lock-in, you need an alternative way to build and publish your content.

How it works

GitBook stores your content as Markdown in a Git repository via GitHub Sync. This plugin lets Docusaurus understand GitBook's custom syntax, so you can build a static site from that same repo.

  1. Write in GitBook's editor. Use rich blocks, tabs, hints, embeds, and more
  2. Sync to GitHub automatically via GitBook's Git Sync feature
  3. Build with Docusaurus + this plugin to produce a static site
  4. Deploy anywhere, like GitHub Pages, Netlify, Vercel, S3, or any static host

Your content stays in Markdown in your Git repo. No lock-in. If you ever want to switch away from GitBook, your content is already in a standard format.

Supported blocks

This plugin handles GitBook-specific syntax that standard Markdown processors don't understand:

BlockDescription
HintsInfo, warning, danger, and success callouts
TabsTabbed content panels
StepperNumbered step-by-step guides
ColumnsSide-by-side column layouts
Code blocksCode blocks with titles and line numbers
EmbedsEmbedded external content (YouTube, etc.)
FilesFile download links
ButtonsPrimary and secondary action buttons
CardsCard grid layouts
IconsFont Awesome icons
OpenAPIOpenAPI/Swagger endpoint documentation