contrib/html.sh: link the stylesheet from top level...

... and copy it there in Makefile.
This commit is contained in:
Christian Hesse 2025-10-30 10:19:30 +01:00
parent 9a39382c93
commit 2938c0a716
3 changed files with 7 additions and 3 deletions

View file

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