Documentation navigation
Anybuild documentation

Jekyll

Build Jekyll projects with Ruby and serve the generated site.

Detection

Jekyll is detected from _config.yml or _config.yaml. A Gemfile strengthens the match, and an explicit Jekyll build command is also recognized.

Output directory

Anybuild reads destination from the Jekyll config and defaults to _site.

Configuration

Jekyll inherits all configuration from the Static Files provider configuration. In addition, it supports the following provider-specific options.

VariablePurposeExample value
ANYBUILD_RUBY_VERSIONSelect the Ruby version used by the builder.3.4.7
ANYBUILD_JEKYLL_VERSIONSelect the Jekyll version.4.3.0
Anybuild
load("//anybuild/tools:jekyll.bzl", "jekyll_build", "jekyll_config")load("//anybuild/tools:staticfile.bzl", "staticfile_serve")
config = jekyll_config(    schema = 1,    sws_version = "2.38.0",    ruby_version = "3.4.7",    jekyll_version = "4.3.0",)
build = jekyll_build(config)
staticfile_serve(config, build, name = "site")