Language Also available in 中文

If you want one page that covers the full current toolchain, this is the handbook.

Project entry points

1. Prerequisites

JekyllNet currently targets .NET 10.

Check your environment:

dotnet --version

After cloning the repo, run tests once to verify the environment:

dotnet test .\JekyllNet.slnx

2. Fastest path to first success

1) Build the sample site

dotnet run --project .\JekyllNet.Cli -- build --source .\sample-site

Output is generated under sample-site\_site by default.

2) Build the docs site

dotnet run --project .\JekyllNet.Cli -- build --source .\docs --destination .\artifacts\docs-site

3) Start local preview

dotnet run --project .\JekyllNet.Cli -- serve --source .\docs --port 5055

Open http://localhost:5055.

3. Daily authoring workflow

1) While actively editing

dotnet run --project .\JekyllNet.Cli -- watch --source .\docs

Use watch for fast feedback loops while editing Markdown, layouts, includes, and styles.

2) For a stable preview endpoint

dotnet run --project .\JekyllNet.Cli -- serve --source .\docs --port 5055 --no-watch

3) Preview with drafts and future content

dotnet run --project .\JekyllNet.Cli -- serve --source .\sample-site --drafts --future --unpublished

4. Configuration and content structure

Recommended order:

  1. Define site-level settings in _config.yml.
  2. Set shared shell behavior in _layouts and _includes.
  3. Organize posts, collections, and front matter.
  4. Finalize Sass/SCSS and static asset structure.

Read next:

5. Multilingual workflow and AI translation

JekyllNet supports locale-aware routes and AI-assisted translation with incremental reuse patterns.

Configure provider, targets, cache, and glossary behavior in _config.yml, then generate localized pages from your source language.

Details:

6. Publishing and automation

1) Publish docs directly with GitHub Pages

Use:

  • Deploy from a branch
  • Branch: main
  • Folder: /docs

2) Build artifacts with GitHub Actions

Use JekyllNet/action@v2.5 to build and upload docs artifacts in CI.

See:

3) Pack as a dotnet tool

dotnet pack .\JekyllNet.Cli\JekyllNet.Cli.csproj -c Release

7. Troubleshooting quick list

1) Styles are not compiled

Make sure Sass or SCSS entry files include YAML front matter.

Check whether _config.yml url and baseurl match your deployment shape.

3) Works locally but fails in CI

Verify:

  • .NET SDK version alignment
  • correct build source path
  • workflow trigger coverage for docs and generator changes

8. Read by role

9. One practical recommendation

Validate core behavior with sample-site first, then validate real publishing flow with docs; after build + serve is stable locally, connect CI and multilingual translation.