ref: 4ef490f3cb4bd875fa03bd63e46c9979b9a9e70b
parent: 8f2a894b886cb9020c7b837170d924c03cdd31d9
author: ISSOtm <eldredhabert0@gmail.com>
date: Mon Dec 14 05:35:30 EST 2020
Avoid interpreting Liquid in doc pages They are auto-generated, so they wouldn't normally contain Liquid (The post-processor may insert some, but it has control over the `raw` tags) Some code introduced as examples contains `{{` due to nested brace expansions, which was interpreted as (invalid) Liquid. This fixes such problems. Additionally, Jekyll generates warnings about excerpts being part of a Liquid block (the `{% raw %}`). This is fine, since doc pages don't use excerpts.
--- a/.github/actions/doc_postproc.awk
+++ b/.github/actions/doc_postproc.awk
@@ -7,6 +7,14 @@
sub(/b><\/td/, "th");
}
+# The whole page is being generated, so it's not meant to contain any Liquid
+BEGIN {
+ print "{% raw %}"
+}
+END {
+ print "{% endraw %}"
+}
+
BEGIN {
in_synopsis = 0
}
--- a/.github/actions/get-pages.sh
+++ b/.github/actions/get-pages.sh
@@ -64,7 +64,7 @@
manpage="${stem%.?}(${stem#*.})"
descr="$(awk -v 'FS=.Nd ' '/.Nd/ { print $2; }' "${PAGES[$page]}")"
- cat - >"$1/$2/$page" <<EOF
+ cat >"$1/$2/$page" <<EOF
---
layout: doc
title: $manpage [$2]