Skip to content

Commit 1620c2c

Browse files
fix(docs): CRC chapter diagrams render; gate rejects raw-wrapped Liquid links
1 parent 093380b commit 1620c2c

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎_docs/11-running-on-openshift-crc.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ those layers up on top of this same core as an **opt-in** addition — applied v
3838
install` — and reports what's actually verified live for each, rather than just
3939
documenting the OpenShift-native counterpart.
4040

41-
![The chart's topology on CRC — app pods under restricted-v2, infra pods under nonroot-v2, the integrated registry, and two edge-TLS Routes]({% raw %}{{ '/assets/diagrams/18-crc-openshift-topology.svg' | relative_url }}{% endraw %})
41+
![The chart's topology on CRC — app pods under restricted-v2, infra pods under nonroot-v2, the integrated registry, and two edge-TLS Routes]({{ '/assets/diagrams/18-crc-openshift-topology.svg' | relative_url }})
4242

4343
## Prerequisites
4444

@@ -360,7 +360,7 @@ Apicurio needs no such mirror: its image lives on `quay.io`
360360
(`quay.io/apicurio/apicurio-registry:3.3.3`), which CRC's networking reaches directly, so
361361
`apicurio.yaml`'s Deployment references it unmirrored.
362362
363-
![Building and pushing: the host bridges the CRC VM's Docker Hub egress gap; Apicurio pulls from quay.io directly]({% raw %}{{ '/assets/diagrams/19-crc-image-delivery.svg' | relative_url }}{% endraw %})
363+
![Building and pushing: the host bridges the CRC VM's Docker Hub egress gap; Apicurio pulls from quay.io directly]({{ '/assets/diagrams/19-crc-image-delivery.svg' | relative_url }})
364364

365365
## Deploying, and watching it come up
366366

‎scripts/forbidden-syntax.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
# is still scanned). Kafka "Tumbling/Hopping/Sliding/Session/Time/Join/Grace
4242
# Windows" and "Windows of N seconds" are removed before the capitalised
4343
# Windows check; standalone Windows and Windows 11 still fail.
44+
# 7. a {{ ... | relative_url }} link wrapped in raw/endraw tags in Markdown or
45+
# HTML: Jekyll never evaluates it, so the image or link breaks.
4446
#
4547
# A line that states the prohibition (or must mention a forbidden term) carries
4648
# the marker `forbidden-ok` in its text (a marker in the path does not count);
@@ -281,6 +283,13 @@ hits="$(gr -iE "$re5" | filter \
281283
hits="$( { gr -iE "$re6i"; gr -E "$re6cs"; } | filter | sort -u | os_hits)"
282284
[[ -n "$hits" ]] && report "$msg6" "$hits"
283285

286+
# Scan 7: a Liquid link wrapped in {% raw %} is never evaluated, so the page
287+
# ships the literal {{ ... | relative_url }} text and the image or link breaks
288+
# (kramdown even splits it at the | into table cells). Markdown and HTML only.
289+
re7='\{%-? *raw *-?%\}\{\{[^}]*relative_url'
290+
hits="$(gr -E "$re7" | filter | gq -E '^[^:]+\.(md|markdown|html):' || true)"
291+
[[ -n "$hits" ]] && report 'Liquid link wrapped in {% raw %} (renders as literal text; drop the raw tags)' "$hits"
292+
284293
nl=$'\n' # literal newline: portable sed replacement (no GNU-only \n)
285294
# Scan 4: slides, notes, layouts and masters inside pptx files.
286295
pptx=()

0 commit comments

Comments
 (0)