mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-08 19:09:29 +00:00
contrib/html: include stylesheet via link
This commit is contained in:
parent
619914dcc6
commit
bdf170a7fe
4 changed files with 40 additions and 12 deletions
|
|
@ -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' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue