Fix Jekyll build failure caused by Jinja2 syntax in scripts/docs/#2592
Merged
kgeller merged 1 commit intoelastic:mainfrom Mar 24, 2026
Merged
Fix Jekyll build failure caused by Jinja2 syntax in scripts/docs/#2592kgeller merged 1 commit intoelastic:mainfrom
kgeller merged 1 commit intoelastic:mainfrom
Conversation
Add _config.yml to exclude scripts/ and other internal directories from Jekyll processing. The file scripts/docs/markdown-generator.md introduced in elastic#2569 contains Jinja2 {% macro %} tags which are unknown to Liquid, crashing the GitHub Pages build.
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
trisch-me
approved these changes
Mar 24, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The GitHub Pages build on
mainhas been failing since #2569 landed, which addedscripts/docs/markdown-generator.md. That file contains Jinja2 template syntax (e.g.{% macro %}) inside fenced code blocks. Jekyll's Liquid engine processes{% %}delimiters even inside code blocks, andmacrois not a valid Liquid tag, causing the build to crash with:Liquid syntax error (line 189): Unknown tag 'macro'Fix
Add a
_config.ymlat the repo root that excludesscripts/(and other internal directories likevenv/,generated/,experimental/) from Jekyll processing. These directories contain internal developer tooling that was never intended to be published as part of the GitHub Pages site.Test plan
Confirm the GitHub Pages build job passes on
mainafter mergeSample broken build: https://github.com/elastic/ecs/actions/runs/23446341689/job/68211045270