Files
Joachim Wiberg e5e97719e8 board/common: override default nginx landing page
This commit adds a landing page, generated from the top README.md.  It
is a temporary fix before adding a proper web ui.

Run ./gen.sh from the directory to update index.html using the template.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-04-15 15:36:41 +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