Files
infix/src/landing/gen.sh
T
Joachim WibergandTobias Waldekranz 22c911f85e package/landing: new package
Relocate the default landing page from the rootfs overlay to a package
so that customer repos can override it.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-05-03 07:54:48 +02:00

13 lines
347 B
Bash
Executable File

#!/bin/sh
# Generate index.html from Infix README.md
BASE=../../../../..
TITLE="Welcome to Infix :-)"
cp $BASE/doc/logo.png .
cat $BASE/README.md \
| tail +2 \
| sed 's/doc\/logo.png/logo.png/' \
| pandoc -f markdown+implicit_figures+link_attributes -o index.html \
--metadata pagetitle="$TITLE" --template=hpstr-template.html