Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Jekyll theme that gives your site a GitBook look with sidebar, search, and TOC.
Jekyll Gitbook is an open-source Jekyll theme that renders Markdown sites with the GitBook sidebar style for GitHub Pages deployment.
Jekyll Gitbook is a Jekyll theme that recreates the GitBook frontend style using Jekyll's Markdown-to-HTML rendering. It takes Markdown posts and pages as input and outputs a static site with a collapsible sidebar, table of contents, and full-text search, deployable directly to GitHub Pages. The theme is maintained by Tao He and released under the Apache License 2.0.
remote_theme: sighingnow/jekyll-gitbook to _config.yml to use it on GitHub Pages without forking.?q=generated.colorful), with all Rouge themes supported and custom styles in assets/gitbook/rouge/.toc.enabled: true and set h_min/h_max values.tracker key in _config.yml.disqushandler shortname in the config.ordered_collections to control sidebar order.mermaid: true in a post's front matter._posts folder for blog posts with GitBook's clean typography and search.custom.css and extra_css config keys.mermaid: true..block-tip, .block-warning, and .block-danger to create callout boxes.Add the remote theme to _config.yml, then write Markdown files in _posts (or configured collections). The theme compiles these into HTML using Jekyll, so you can preview locally with jekyll serve or push to GitHub Pages for automatic deployment—no need to build and upload an HTML bundle on every change, unlike the typical GitBook workflow.
Yes, the theme is open source under the Apache License 2.0 and free to use, including for commercial projects.
Yes, it supports GitHub Pages' remote theme mechanism. Add remote_theme: sighingnow/jekyll-gitbook to your _config.yml and push to a GitHub Pages-enabled repository.
TOC is not enabled by default. In _config.yml, set toc.enabled: true and optionally adjust toc.h_min and toc.h_max (for example, h_min: 1, h_max: 3).
Yes, like any Jekyll site, custom domains are configured in the GitHub Pages settings or through a CNAME file; the theme does not impose domain restrictions.
