contrib/html: include stylesheet via link

This commit is contained in:
Christian Hesse 2025-10-29 14:46:01 +01:00
parent 619914dcc6
commit bdf170a7fe
4 changed files with 40 additions and 12 deletions

View file

@ -2,7 +2,12 @@
set -e
sed "s|__TITLE__|$(head -n1 "${1}")|" < "${0}.d/head.html"
RELTO="$(dirname "${1}")"
sed \
-e "s|__TITLE__|$(head -n1 "${1}")|" \
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
< "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \