JekyllVitePress文档

jekyll-vitepress-theme — Jekyll 文档模板

作者 crmne

基于 Jekyll 的文档主题,借鉴 VitePress 的界面与阅读体验,以 Ruby gem 形式提供,并加入 Turbo Frames 导航、内置 SEO 与 LLM 发现文件等扩展。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-01查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

以 Ruby gem 形式提供,保持 Jekyll 的 Markdown、Liquid、YAML 与静态托管工作流

02

覆盖文档首页、侧边栏、大纲、搜索、暗色模式、代码块、提示块与页脚等核心文档界面

03

使用 Turbo Frames 只替换内容区域,导航、侧边栏与外壳保持挂载

04

内置 SEO 输出:元数据、JSON-LD、sitemap.xml、robots.txt,并支持 canonical 覆盖与 noindex 等配置

05

生成 /llms.txt 与 /llms-full.txt,便于 LLM 读取文档内容

06

提供 GitHub Star/Sponsor、RubyGems 下载量、版本标签、本地搜索与 Copy Page 等扩展

模板详细介绍

jekyll-vitepress-theme 是一个以 Ruby gem 形式发布的 Jekyll 文档主题,目标是在保留 Jekyll 原生工作流(Markdown、Liquid、YAML 与静态文件)的前提下,提供接近 VitePress 的文档界面与阅读体验。它覆盖文档首页、导航、侧边栏、大纲、搜索、暗色模式、代码块、提示块(callouts)和文档页脚等核心文档元素,并宣称在这些方面对标 VitePress,同时提供若干面向 Jekyll 工作流的额外扩展。

导航方式是该主题的一个特点:它使用 Turbo Frames,类似 Rails 应用的做法,只替换内容区域,导航、侧边栏和外壳保持挂载,从而让页面切换不需要整页刷新。构建产物仍是纯静态 HTML,可部署到 GitHub Pages、CDN 或其他静态托管。

在文档之外,主题内置了 SEO 与 LLM 发现相关输出:统一的搜索与社交元数据、JSON-LD(WebSite、WebPage 或 Article、Organization/Person、图片与嵌套面包屑)、sitemap.xml、robots.txt,以及 /llms.txt 和 /llms-full.txt。README 明确提醒不要同时渲染 {% seo %} 或启用其他 sitemap/robots 生成器,以免产生重复或相互矛盾的信号。

使用方式为在 Gemfile 中引入 gem,在 _config.yml 中设置 theme 与 plugins,并配置 branding、语法高亮主题,再通过 _data/navigation.yml 与 _data/sidebar.yml 定义导航和侧边栏数据。README 建议至少设置 title、description 和绝对的线上 url,构建过程会对缺失或重复的元数据给出警告。主题采用 MIT 许可,免费范围限于该版本代码;演示图片、字体、图标等第三方素材需单独核对许可,域名、托管等外部服务可能另行收费。

JekyllVitePress文档

适合你的项目吗?

适用场景

  • 为 Ruby 项目搭建文档站点,同时希望保留 Jekyll 与静态托管方式
  • 需要文档站具备侧边栏、大纲、搜索、暗色模式等常见阅读功能
  • 希望站点自动输出 SEO 元数据、JSON-LD、sitemap 与 robots 配置
  • 希望为 LLM 提供 llms.txt 与 llms-full.txt 形式的文档索引与合集
  • 希望文档页面切换不整页刷新,同时输出仍是静态 HTML

适合人群

  • 使用 Jekyll 构建文档站的开发者
  • 维护 Ruby gem 或 Ruby 项目文档的团队
  • 需要静态托管文档并自带 SEO 基础配置的项目
  • 希望为文档补充 LLM 可读索引的站点维护者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    在 Gemfile 中添加 gem "jekyll-vitepress-theme",并在 _config.yml 中设置 theme 与 plugins

  2. 2

    在 _config.yml 中配置 jekyll_vitepress 的 branding 与语法高亮主题

  3. 3

    通过 _data/navigation.yml 与 _data/sidebar.yml 定义导航和侧边栏数据

  4. 4

    在 _config.yml 中至少设置 title、description 和绝对的线上 url,构建会提示缺失或重复的元数据

  5. 5

    不要同时渲染 {% seo %} 或启用其他 sitemap/robots 生成器,避免重复或矛盾的信号

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 使用该主题时,不应再渲染 {% seo %} 标签或启用其他 sitemap/robots 生成器,否则会产生重复或相互矛盾的 SEO 信号。
  • 需在 _config.yml 中至少配置 title、description 以及绝对的线上 url,否则构建会提示元数据缺失。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Do not also render `{% seo %}` or enable another sitemap/robots generator; that creates duplicated or contradictory signals.

README 原文

Set at least `title`, `description`, and an absolute production `url` in `_config.yml`.

README 原文
https://github.com/crmne/jekyll-vitepress-theme/blob/master/LICENSEhttps://github.com/crmne/jekyll-vitepress-theme/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 92 / 100
技术栈
Jekyll · VitePress
网站类型
文档
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-09-26
截图检查日期
2026-10-01

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Jekyll。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 26214351babdb89701b3d6736c9c84828523e42eb12136acc15114fffc6fda16

2026-10-01T03:50:25.737Z

来源文件 / 仓库
<div align="center">

<img src="assets/images/theme/vitepress-logo-large.svg" alt="Jekyll VitePress Theme" height="96">

# Jekyll VitePress Theme

<strong>Ruby deserves beautiful docs. Jekyll VitePress Theme brings VitePress-level polish to Jekyll, then goes beyond it.</strong>

[![Gem Version](https://img.shields.io/gem/v/jekyll-vitepress-theme.svg)](https://rubygems.org/gems/jekyll-vitepress-theme)
[![CI](https://github.com/crmne/jekyll-vitepress-theme/actions/workflows/main.yml/badge.svg)](https://github.com/crmne/jekyll-vitepress-theme/actions/workflows/main.yml)
[![Docs](https://img.shields.io/badge/docs-jekyll--vitepress.dev-blue)](https://jekyll-vitepress.dev)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

</div>

---

Ruby projects should not need to leave Ruby just to get documentation that feels designed.

`jekyll-vitepress-theme` brings VitePress-level documentation polish to Jekyll: a product-like homepage, familiar navigation, sidebars, outlines, search, dark mode, code blocks, callouts, and doc footers, packaged as a Ruby gem. It targets [VitePress parity](https://jekyll-vitepress.dev/vitepress-parity/) for the core docs experience and adds [extensions to VitePress](https://jekyll-vitepress.dev/extensions-to-vitepress/) for Jekyll-first workflows.

The unusual part is navigation. Jekyll VitePress uses Turbo Frames like a Rails app, swapping only the content frame while the nav, sidebar, and shell stay in place. Page changes feel instant, while the output remains plain Jekyll: Markdown, Liquid, YAML, Ruby, and static files.

## Why Use It

- **[VitePress polish for Jekyll](https://jekyll-vitepress.dev/vitepress-parity/):** match VitePress for the docs homepage, sidebar, outline, search, dark mode, callouts, code blocks, and doc footers.
- **Jekyll-native setup:** keep your Markdown, Liquid, YAML, and static hosting. Add the gem, set a few options, and publish.
- **Fast docs navigation:** Turbo Frames update the content area while the nav, sidebar, and shell stay mounted.
- **Search and AI discovery by default:** ship canonical metadata, social cards, JSON-LD, nested breadcrumbs, sitemap, robots controls, `llms.txt`, and `llms-full.txt` without another discovery plugin.
- **[More than VitePress](https://jekyll-vitepress.dev/extensions-to-vitepress/):** add GitHub Star and Sponsor buttons, RubyGems downloads, versions, labels, generated local search, and Copy Page/View as Markdown for LLM workflows.
- **Static Ruby output:** build with Jekyll and deploy the generated HTML to GitHub Pages, any CDN, or any static host.

## Quick Start

Add the gem:

```rb
gem "jekyll-vitepress-theme"
```

Enable the theme and plugin:

```yaml
theme: jekyll-vitepress-theme
plugins:
  - jekyll-vitepress-theme
```

Add basic theme config:

```yaml
jekyll_vitepress:
  branding:
    site_title: My Docs
  syntax:
    light_theme: github
    dark_theme: github.dark
```

Define navigation and sidebar data:

```yaml
# _data/navigation.yml
- title: Guide
  url: /getting-started/
  collections: [guides]
```

```yaml
# _data/sidebar.yml
- title: Guide
  collection: guides
```

Run Jekyll:

```sh
bundle install
bundle exec jekyll serve --livereload
```

### SEO is built in

Every site using the theme gets one consistent set of search and social metadata, JSON-LD (`WebSite`, `WebPage` or `Article`, `Organization`/`Person`, image, and nested breadcrumbs), `sitemap.xml`, and `robots.txt`. Canonical overrides, `noindex`, language alternates, social images, authors, publishers, and webmaster verification tokens are configurable without another plugin.

Set at least `title`, `description`, and an absolute production `url` in `_config.yml`. The build warns about missing and duplicate metadata. Do not also render `{% seo %}` or enable another sitemap/robots generator; that creates duplicated or contradictory signals.

### LLM discovery is built in

The theme also creates `/llms.txt`, a concise canonical documentation index, and `/llms-full.txt`, a single Markdown bundle containing every eligible page and collection document. Redirects, `404` pages, `noindex` pages, and external-canonical duplicates are excluded. Both files understand `baseurl` and can be configured or disabled without `jekyll-ai-visible-content`.

## Screenshots

| Home | Docs |
| --- | --- |
| ![Home page in light mode](assets/images/screenshots/home-light.png) | ![Docs page in light mode](assets/images/screenshots/getting-started-light.png) |

## Docs

Read the full documentation at **[jekyll-vitepress.dev](https://jekyll-vitepress.dev)**.

Start here:

- [Getting Started](https://jekyll-vitepress.dev/getting-started/)
- [Configuration](https://jekyll-vitepress.dev/configuration/)
- [Navigation and Layout](https://jekyll-vitepress.dev/navigation-layout/)
- [Search and Outline](https://jekyll-vitepress.dev/search-and-outline/)
- [Configuration Reference](https://jekyll-vitepress.dev/configuration-reference/)
- [VitePress Parity](https://jekyll-vitepress.dev/vitepress-parity/)
- [Extensions to VitePress](https://jekyll-vitepress.dev/extensions-to-vitepress/)

## Development

```sh
bundle install
npm install
bundle exec jekyll serve --livereload
```

Run the tests:

```sh
bundle exec rake test
```

Run the full local verification suite (tests, linters, build, smoke test, gem build):

```sh
bundle exec rake verify
```

## License

MIT
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。