mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-09 11:29:29 +00:00
contrib/html.sh: link the stylesheet from top level...
... and copy it there in Makefile.
This commit is contained in:
parent
9a39382c93
commit
2938c0a716
3 changed files with 7 additions and 3 deletions
|
|
@ -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' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue