The project is in a healthy, maintained state
Jekyll VitePress Theme brings the VitePress default theme look and behavior to Jekyll sites.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 4.3, < 5.0
 Project Readme

Jekyll VitePress Theme

A reusable Jekyll theme gem that reproduces the VitePress default docs experience.

What it includes

  • VitePress-style layout structure (top nav, sidebar, outline, doc footer)
  • Appearance toggle with auto -> dark -> light
  • Local search modal (/, Ctrl/Cmd+K, Cmd+K)
  • Code block copy button, language labels, file-title bars and icons
  • Rouge-native syntax theme config (vp_theme.rouge_theme.light/dark)
  • Last-updated hook via plugin
  • Slot includes for lightweight theme extension (_includes/vp_slots/head.html, doc_footer.html, layout_bottom.html)

Installation

  1. Add the gem to your Gemfile:
gem "jekyll-vitepress-theme"
  1. Enable it in _config.yml:
theme: jekyll-vitepress-theme
plugins:
  - jekyll-vitepress-theme
  1. Add vp_theme configuration:
vp_theme:
  nav:
    - text: Guide
      link: /what-is-jekyll-vitepress-theme/
      collections: [getting_started, core_features, advanced]
  sidebar_collections:
    - id: getting_started
      text: Introduction

Local development (this repo)

bundle install
npm install
bundle exec jekyll serve --livereload

Open http://127.0.0.1:4000.

Local Quality Gates

# one-shot verification
bundle exec rake verify

# regenerate built-in social icon assets after changing icon list
npm run build:social-icons

# install and run git hooks
bundle exec overcommit --install
bundle exec overcommit --sign pre-commit
bundle exec overcommit --sign pre-push
bundle exec overcommit --run

Docs deployment (this repo)

  • main deploys a single docs site at /
  • No secondary version paths are published in default mode (/latest/, /v/*, /next/)
  • Optional multi-version deployment is documented in _advanced/deployment.md

Theme configuration

See docs pages:

Release a gem

gem build jekyll-vitepress-theme.gemspec
gem push jekyll-vitepress-theme-<version>.gem

License

MIT