Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Jekyll theme for hosting documentation on GitHub Pages with configurable table of contents and navigation.
jekyll-theme-documentation is a Jekyll theme for hosting documentation sites on GitHub Pages, offering automatic table of contents and navigation via simple configuration.
A Jekyll theme for hosting documentation on GitHub Pages. It takes a Jekyll site's markdown content and configuration in _config.yml and produces a static documentation site with a table of contents, navigation, and optional Google Analytics. The theme is installed as a remote theme from the marella/jekyll-theme-documentation GitHub repository, so it can be used directly on GitHub Pages without building locally. It supports per-page and global control of ToC and navigation visibility.
remote_theme: marella/jekyll-theme-documentation to _config.yml and GitHub Pages builds the site automatically.toc_min and toc_max in _config.yml to control which heading levels (for example, h2 to h3) appear in the ToC.hide_toc in either _config.yml or a page's YAML front matter to suppress the table of contents.nav list in _config.yml to include custom navigation links across the site.hide_nav in a page's front matter to remove navigation links for that specific page.owner_name and owner_url in _config.yml to display attribution on the site.google_analytics tracking ID in _config.yml to enable analytics.npm install and npm start, then view the site at localhost:4000 for development.remote_theme without additional build steps._config.yml and Markdown files.Install the theme by adding remote_theme: marella/jekyll-theme-documentation to your site's _config.yml. Optionally add gem "github-pages", group: :jekyll_plugins to your Gemfile for local preview. Then configure variables like title, toc_min, toc_max, hide_toc, nav, owner_name, owner_url, and google_analytics in _config.yml, or per-page hide_toc and hide_nav in front matter. For local development, clone the theme's repository, run npm install and npm start, and open localhost:4000.
Add remote_theme: marella/jekyll-theme-documentation to your site's _config.yml. If you want to preview locally, add gem "github-pages", group: :jekyll_plugins to your Gemfile and run bundle install.
Set hide_toc: true in that page's YAML front matter. To hide the ToC on all pages, set hide_toc: true in your _config.yml instead.
Define a nav list in your site's _config.yml. The theme recommends setting permalink: pretty in your config when using nav, and setting permalink: / for the README when nav is set.
Yes, the theme is designed for GitHub Pages. Using remote_theme means GitHub Pages will build your site directly from the repository, with no need to push compiled files.
Add google_analytics: [your Google Analytics tracking ID] to your _config.yml. The theme will include the necessary analytics script when that variable is set.
