JekyllNet 0.2.5
dotnet tool install --global JekyllNet --version 0.2.5
dotnet new tool-manifest
dotnet tool install --local JekyllNet --version 0.2.5
#tool dotnet:?package=JekyllNet&version=0.2.5
nuke :add-package JekyllNet --version 0.2.5
JekyllNet
Jekyll-style Static Site Generator for .NET
用 C# 重建 Jekyll / GitHub Pages 风格站点生成体验
JekyllNet is a .NET 10 static site generator for teams that want Jekyll-shaped workflows without leaving the C# ecosystem.
JekyllNet 是一个基于 .NET 10 的静态站点生成器,面向希望保留 Jekyll / GitHub Pages 使用心智、同时在 C# 生态内完成构建与发布的团队。
Intro | 简介
EN
JekyllNet rebuilds practical Jekyll and GitHub Pages behaviors in C#: front matter, layouts, includes, collections, posts, pagination, Sass, multilingual docs, local preview, dotnet tool distribution, and reusable GitHub Actions.
中文
JekyllNet 用 C# 重建 Jekyll / GitHub Pages 的常用行为,覆盖 front matter、layout、include、collections、posts、pagination、Sass、多语文档、本地预览、dotnet tool 分发与可复用 GitHub Action。
Quick Facts | 当前信息
| Item | Value |
|---|---|
| Website | jekyllnet.help |
| Docs | docs/ |
| Roadmap | ROADMAP.md |
| Changelog | CHANGELOG.md |
| NuGet latest | 0.2.5 |
| GitHub Action | JekyllNet/action@v2.5 |
| Default Action CLI version | 0.2.5 |
| Runtime | .NET 10 |
Highlights | 亮点
build、watch、serve三条 CLI 工作流_config.yml、YAML Front Matter、Markdown、layouts、includes、collections、posts、tags、categories- Pagination、excerpt、draft/future/unpublished、static file front matter / defaults
- Sass / SCSS 编译
- AI 多语言翻译管线,支持 OpenAI、DeepSeek、Ollama 与 OpenAI-compatible 服务
dotnet tool包分发- 可复用的
JekyllNet/action@v2.5 - 中英文文档站、博客与新闻栏目
Tested Themes | 已测试主题
以下主题已进入我们当前的构建与兼容性验证范围:
Quick Start | 快速开始
Option 1: Use the NuGet tool | 方式一:直接使用 NuGet 工具
# install
dotnet tool install --global JekyllNet --version 0.2.5
# build
jekyllnet build --source ./my-site
# preview
jekyllnet serve --source ./my-site --port 5055
Option 2: Run from this repo | 方式二:从仓库源码直接运行
dotnet run --project .\JekyllNet.Cli -- build --source .\sample-site
dotnet run --project .\JekyllNet.Cli -- watch --source .\docs
dotnet run --project .\JekyllNet.Cli -- serve --source .\docs --port 5055
Documentation | 文档入口
- docs/zh/:中文文档首页
- docs/en/:English docs home
- docs/zh/blog/complete-usage-guide.md:完整使用说明
- docs/en/blog/complete-usage-guide.md:Complete usage guide
- docs/zh/news/v0-2-5.md:v0.2.5 发布稿
- docs/en/news/v0-2-5.md:v0.2.5 release note
Action | GitHub Action
JekyllNet/action@v2.5 已发布,默认安装 NuGet 上的 JekyllNet 0.2.5。
最小 workflow 示例:
name: build-site
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: JekyllNet/action@v2.5
with:
source: ./docs
destination: ./artifacts/docs-site
upload-artifact: "true"
artifact-name: docs-site
AI Translation | AI 翻译
在 _config.yml 中配置 ai.translate.targets 后,构建时会自动生成目标语言页面,并支持缓存、术语表与增量复用。
lang: zh-CN
ai:
provider: openai
model: gpt-5-mini
api_key_env: OPENAI_API_KEY
translate:
targets: [en, fr]
front_matter_keys: [title, description]
glossary: _i18n/glossary.yml
cache_path: .jekyllnet/translation-cache.json
Development | 开发与验证
常用命令:
dotnet test .\JekyllNet.slnx
dotnet pack .\JekyllNet.Cli\JekyllNet.Cli.csproj -c Release
dotnet run --project .\scripts\JekyllNet.ReleaseTool -- test-theme-matrix --max-parallelism 5
说明:
- 主题矩阵会覆盖
just-the-docs、minimal-mistakes、al-folio、jekyll-theme-chirpy、jekyll-TeXt-theme、jekyll-theme-lumen serve/watch已支持更易读的结构化日志输出- 文档站
docs/同时也是构建回归 fixture 之一
Distribution | 分发
仓库当前提供:
.github/workflows/ci.yml.github/workflows/github-pages.yml.github/workflows/publish-dotnet-tool.yml.github/workflows/release-artifacts.yml- packaging/winget/README.md
这些工作流用于测试、Pages 发布、NuGet 发布、Release 资产打包与 winget 清单生成。
Limits | 当前限制
当前仍在持续增强的范围包括:
- 更细的 Liquid 边角语义对齐
- 更多 pagination 兼容细节
- 更广的 GitHub Pages / Jekyll 插件生态兼容
- 更完整的数据解析与主题细节对齐
Collaboration | 协作说明
本仓库内自动化与工具实现遵循以下约束:
- 仅使用
C#与.NET 10 - 不使用 PowerShell、Python、Node.js、Shell 作为仓库工具实现语言
- 如需偏离约束,先在 PR 或文档中说明原因并获得维护者批准
Links | 相关链接
- Source: JekyllNet/JekyllNet
- Action: JekyllNet/action
- Website: jekyllnet.help
- NuGet: JekyllNet
Built with .NET 10 · GitHub Pages style workflows · MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.