xrfragment/doc/generate.sh

11 lines
477 B
Bash
Raw Normal View History

2023-09-01 14:20:02 +02:00
#!/bin/sh
set -e
2023-09-21 13:05:30 +02:00
for topic in Fragments Macros; do
mmark RFC_XR_$topic.md > RFC_XR_$topic.xml
mmark --html RFC_XR_$topic.md | grep -vE '(<!--{|}-->)' > RFC_XR_$topic.html
xml2rfc --v3 RFC_XR_$topic.xml # RFC_XR_$topic.txt
sed -i 's/Expires: .*//g' RFC_XR_$topic.txt
2024-02-08 19:40:43 +01:00
convert -size 700x2400 xc:white -font "FreeMono" +antialias -pointsize 12 -fill black -annotate +15+15 "@RFC_XR_Fragments.txt" -colorspace gray +dither -posterize 6 RF6_XR_Fragments.png
2023-09-21 13:05:30 +02:00
done