Compare commits

..

10 commits

Author SHA1 Message Date
Christian Hesse
fd94b7e76b contrib/checksums.sh: output to stdout...
... and let the Makefile redirect.
2025-10-30 11:07:38 +01:00
Christian Hesse
9079f867f1 Merge branch 'contrib' into next 2025-10-30 10:32:51 +01:00
Christian Hesse
0be7195371 contrib/notification: format the values italic 2025-10-30 10:32:51 +01:00
Christian Hesse
ae1a7cb875 contrib/notification: update date format 2025-10-30 10:32:51 +01:00
Christian Hesse
1e64bbeccb contrib/{logo-color,notification}: add navigation structure 2025-10-30 10:32:51 +01:00
Christian Hesse
ef5929358e contrib/*: unify html code 2025-10-30 10:32:51 +01:00
Christian Hesse
9e7d5d1ce3 contrib/html.sh: link the logo with relative path 2025-10-30 10:32:51 +01:00
Christian Hesse
2938c0a716 contrib/html.sh: link the stylesheet from top level...
... and copy it there in Makefile.
2025-10-30 10:32:51 +01:00
Christian Hesse
9a39382c93 contrib/html.sh: include stylesheet via link 2025-10-30 10:32:51 +01:00
Christian Hesse
2dd4bc7a39 contrib/{logo-color,notification}: use a single style 2025-10-30 10:32:51 +01:00
8 changed files with 13 additions and 8 deletions

1
.gitignore vendored
View file

@ -7,6 +7,7 @@
*.rej
# html files (as generated from markdown)
style.css
*.html
# checksums file as used by $ScriptInstallUpdate

View file

@ -7,11 +7,14 @@ LOCAL = $(wildcard *.local.rsc)
WIFI = $(wildcard *.wifi.rsc)
MARKDOWN = $(wildcard *.md doc/*.md doc/mod/*.md)
HTML = $(MARKDOWN:.md=.html)
HTML = $(MARKDOWN:.md=.html) style.css
all: $(CAPSMAN) $(LOCAL) $(WIFI) $(HTML) checksums.json
%.html: %.md contrib/html.sh contrib/html.sh.d/head.html
style.css: contrib/general/style.css
cp $< $@
%.html: %.md style.css contrib/html.sh contrib/html.sh.d/head.html
contrib/html.sh $< > $@
%.capsman.rsc: %.template.rsc Makefile
@ -33,7 +36,7 @@ all: $(CAPSMAN) $(LOCAL) $(WIFI) $(HTML) checksums.json
< $< > $@
checksums.json: contrib/checksums.sh *.rsc */*.rsc
contrib/checksums.sh
contrib/checksums.sh > $@
clean:
rm -f $(HTML) checksums.json

View file

@ -6,4 +6,4 @@ set -e
md5sum $(find -name '*.rsc' | sort) | \
sed -e "s| \./||" -e 's|.rsc$||' | \
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add' > 'checksums.json'
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add'

View file

@ -1,3 +1,4 @@
/* stylesheet for RouterOS Scripts */
body {
font-family: fira-sans, sans-serif;
font-size: 10pt;

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)|" \
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
< "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \

View file

@ -2,5 +2,5 @@
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>RouterOS Scripts :: __TITLE__</title>
<link rel="stylesheet" type="text/css" href="__STYLE__">
<link rel="icon" href="__LOGO__" type="image/png">
<link rel="icon" type="image/png" href="__LOGO__">
</head><body>

View file

@ -2,7 +2,7 @@
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>RouterOS Scripts :: Logo Color Changer</title>
<link rel="stylesheet" type="text/css" href="general/style.css">
<link rel="icon" href="../logo.png" type="image/png">
<link rel="icon" type="image/png" href="../logo.png">
<script src="logo-color.d/script.js"></script>
</head><body>

View file

@ -2,7 +2,7 @@
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>RouterOS Scripts :: Notification Generator</title>
<link rel="stylesheet" type="text/css" href="general/style.css">
<link rel="icon" href="../logo.png" type="image/png">
<link rel="icon" type="image/png" href="../logo.png">
<script src="notification.d/script.js"></script>
</head><body>