[doc] Prerender includes in release notes

This commit is contained in:
Andreas Dangel
2024-03-14 13:32:33 +01:00
parent d54b8b3e8f
commit 7668fe23d0
2 changed files with 8 additions and 4 deletions

View File

@ -39,6 +39,10 @@ liquid_env = {
to_render = File.read(release_notes_file)
if to_render.match(/\{%\s*include/)
STDERR.printf("\n\n\e[31;1mERROR\e[0m Detected an include tag - this is jekyll specific and not supported here! Please replace it manually\n\n")
exit 1
end
rendered = Liquid::Template.parse(to_render).render(liquid_env)