From 572657393376144f826690c68084e9e0ef36aa60 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 14:31:17 +0100
Subject: [PATCH 01/12] contrib/{logo-color,notification}: use a single style
---
contrib/{notification.d => general}/style.css | 3 ++-
contrib/logo-color.d/style.css | 5 -----
contrib/logo-color.html | 2 +-
contrib/notification.html | 4 ++--
4 files changed, 5 insertions(+), 9 deletions(-)
rename contrib/{notification.d => general}/style.css (93%)
delete mode 100644 contrib/logo-color.d/style.css
diff --git a/contrib/notification.d/style.css b/contrib/general/style.css
similarity index 93%
rename from contrib/notification.d/style.css
rename to contrib/general/style.css
index 648ea23c..66d44f1c 100644
--- a/contrib/notification.d/style.css
+++ b/contrib/general/style.css
@@ -1,7 +1,8 @@
+/* stylesheet for RouterOS Scripts */
body {
+ background-color: transparent;
font-family: fira-sans, sans-serif;
font-size: 10pt;
- background-color: transparent;
}
div.notification {
position: relative;
diff --git a/contrib/logo-color.d/style.css b/contrib/logo-color.d/style.css
deleted file mode 100644
index eb2ec6a1..00000000
--- a/contrib/logo-color.d/style.css
+++ /dev/null
@@ -1,5 +0,0 @@
-body {
- font-family: fira-sans, sans-serif;
- font-size: 10pt;
- background-color: transparent;
-}
diff --git a/contrib/logo-color.html b/contrib/logo-color.html
index 17942cea..802e36cb 100644
--- a/contrib/logo-color.html
+++ b/contrib/logo-color.html
@@ -3,7 +3,7 @@
RouterOS-Scripts Logo Color Changer
-
+
diff --git a/contrib/notification.html b/contrib/notification.html
index 78750362..49bf8bda 100644
--- a/contrib/notification.html
+++ b/contrib/notification.html
@@ -3,8 +3,8 @@
RouterOS-Scripts Notification Generator
-
-
+
+
From ec8a38d67b2d5425269b68e80abacb5fc37765f8 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 14:46:01 +0100
Subject: [PATCH 02/12] contrib/html.sh: include stylesheet via link
---
contrib/general/style.css | 32 ++++++++++++++++++++++++++++++++
contrib/html.sh | 6 +++++-
contrib/html.sh.d/head.html | 11 +----------
3 files changed, 38 insertions(+), 11 deletions(-)
diff --git a/contrib/general/style.css b/contrib/general/style.css
index 66d44f1c..be67afae 100644
--- a/contrib/general/style.css
+++ b/contrib/general/style.css
@@ -4,6 +4,28 @@ body {
font-family: fira-sans, sans-serif;
font-size: 10pt;
}
+h2 {
+ border-bottom: 1px solid #ccc;
+ color: #000;
+}
+a {
+ text-decoration: none;
+}
+a:hover {
+ text-decoration: underline;
+}
+blockquote {
+ border-left: 4px solid #ccc;
+ padding: 0 10px;
+ color: #777;
+}
+code {
+ margin: 0 2px;
+ padding: 2px 5px;
+ border: 1px solid #ccc;
+ background-color: #f8f8f8;
+ border-radius: 3px;
+}
div.notification {
position: relative;
float: right;
@@ -31,6 +53,16 @@ p.hint {
pre {
font-family: fira-mono, monospace;
white-space: pre-wrap;
+ background-color: #f8f8f8;
+ border: 1px solid #ccc;
+ overflow: auto;
+ padding: 6px 10px;
+ border-radius: 3px;
+}
+pre code {
+ margin: 0;
+ padding: 0;
+ border: 0;
}
span.link {
color: #863600;
diff --git a/contrib/html.sh b/contrib/html.sh
index bbd8ba86..194a7cdc 100755
--- a/contrib/html.sh
+++ b/contrib/html.sh
@@ -2,7 +2,11 @@
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}" contrib/general/style.css)|" \
+ < "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \
-e '/| id="\L\1">|'
diff --git a/contrib/html.sh.d/head.html b/contrib/html.sh.d/head.html
index 1b1dd03a..50653ae6 100644
--- a/contrib/html.sh.d/head.html
+++ b/contrib/html.sh.d/head.html
@@ -1,15 +1,6 @@
RouterOS Scripts :: __TITLE__
-
+
From 0af5d516a34add35d50a79c3d0925b0300f9d64c Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Thu, 30 Oct 2025 10:19:30 +0100
Subject: [PATCH 03/12] contrib/html.sh: link the stylesheet from top level...
... and copy it there in Makefile.
---
.gitignore | 1 +
Makefile | 7 +++++--
contrib/html.sh | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index 8abdc284..9d27373a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@
*.rej
# html files (as generated from markdown)
+style.css
*.html
# checksums file as used by $ScriptInstallUpdate
diff --git a/Makefile b/Makefile
index 0265a51a..a741fefc 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/contrib/html.sh b/contrib/html.sh
index 194a7cdc..287119f8 100755
--- a/contrib/html.sh
+++ b/contrib/html.sh
@@ -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' \
From 12b157220859dff69c51ea425d2e797416ab1c1d Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Fri, 7 Nov 2025 12:51:34 +0100
Subject: [PATCH 04/12] contrib/html.sh: add a margin on left and right...
... for windows in landscape (wider than high).
---
contrib/general/style.css | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/contrib/general/style.css b/contrib/general/style.css
index be67afae..304f3f02 100644
--- a/contrib/general/style.css
+++ b/contrib/general/style.css
@@ -4,6 +4,12 @@ body {
font-family: fira-sans, sans-serif;
font-size: 10pt;
}
+@media only screen and (orientation: landscape) {
+ body {
+ margin-left: 10vw;
+ margin-right: 10vw;
+ }
+}
h2 {
border-bottom: 1px solid #ccc;
color: #000;
From 787feedbb59ae3900fcd59893f3c00705d0c1936 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Mon, 10 Nov 2025 11:30:49 +0100
Subject: [PATCH 05/12] contrib/html.sh: increase default line height
---
contrib/general/style.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/general/style.css b/contrib/general/style.css
index 304f3f02..7ee47bbd 100644
--- a/contrib/general/style.css
+++ b/contrib/general/style.css
@@ -3,6 +3,7 @@ body {
background-color: transparent;
font-family: fira-sans, sans-serif;
font-size: 10pt;
+ line-height: 1.6;
}
@media only screen and (orientation: landscape) {
body {
From 6887d816bf772eb5cfe8d09128f83872268cd7da Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 14:55:00 +0100
Subject: [PATCH 06/12] contrib/html.sh: link the logo with relative path
---
contrib/html.sh | 1 +
contrib/html.sh.d/head.html | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/html.sh b/contrib/html.sh
index 287119f8..3b5b420b 100755
--- a/contrib/html.sh
+++ b/contrib/html.sh
@@ -6,6 +6,7 @@ RELTO="$(dirname "${1}")"
sed \
-e "s|__TITLE__|$(head -n1 "${1}")|" \
-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 \
-e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \
diff --git a/contrib/html.sh.d/head.html b/contrib/html.sh.d/head.html
index 50653ae6..779e246c 100644
--- a/contrib/html.sh.d/head.html
+++ b/contrib/html.sh.d/head.html
@@ -2,5 +2,5 @@
RouterOS Scripts :: __TITLE__
-
+
From 4f55808ce06e420a32db7d7bb55a4d39e2028918 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Fri, 7 Nov 2025 22:34:00 +0100
Subject: [PATCH 07/12] contrib/html.sh: properly handle anchors
---
contrib/html.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/html.sh b/contrib/html.sh
index 3b5b420b..dbb40f61 100755
--- a/contrib/html.sh
+++ b/contrib/html.sh
@@ -9,6 +9,6 @@ sed \
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
< "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \
- -e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \
+ -e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
-e '/| id="\L\1">|'
printf ''
From 9a88b6c8782397bb9ff1b7ca8e83c244cfa432c5 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Fri, 7 Nov 2025 22:57:17 +0100
Subject: [PATCH 08/12] contrib/html.sh: drop comman from id/anchor
---
contrib/html.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/html.sh b/contrib/html.sh
index dbb40f61..bd15bf04 100755
--- a/contrib/html.sh
+++ b/contrib/html.sh
@@ -10,5 +10,6 @@ sed \
< "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
- -e '/| id="\L\1">|'
+ -e '/| id="\L\1">|' \
+ -e '/'
From 8a278569e724881a59b5138882cc42cd0c011362 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 15:19:32 +0100
Subject: [PATCH 09/12] contrib/*: unify html code
---
contrib/html.sh.d/head.html | 4 ++--
contrib/logo-color.html | 17 +++++++----------
contrib/notification.html | 17 +++++++----------
3 files changed, 16 insertions(+), 22 deletions(-)
diff --git a/contrib/html.sh.d/head.html b/contrib/html.sh.d/head.html
index 779e246c..0ce3ff73 100644
--- a/contrib/html.sh.d/head.html
+++ b/contrib/html.sh.d/head.html
@@ -1,6 +1,6 @@
-RouterOS Scripts :: __TITLE__
-
+
+RouterOS Scripts :: __TITLE__
diff --git a/contrib/logo-color.html b/contrib/logo-color.html
index 802e36cb..1dc74b01 100644
--- a/contrib/logo-color.html
+++ b/contrib/logo-color.html
@@ -1,14 +1,12 @@
-
-
-
-
-RouterOS-Scripts Logo Color Changer
+
+
+RouterOS Scripts :: Logo Color Changer
+
-
-
+
-RouterOS-Scripts Logo Color Changer
+Logo Color Changer
You want the logo for your own notifications? But you joined the
Telegram Group and want
@@ -36,5 +34,4 @@ for other browsers may differ.)
Set
a profile photo for your Telegram bot.
-
-
+
diff --git a/contrib/notification.html b/contrib/notification.html
index 49bf8bda..1bd1ca53 100644
--- a/contrib/notification.html
+++ b/contrib/notification.html
@@ -1,14 +1,12 @@
-
-
-
-
-RouterOS-Scripts Notification Generator
+
+
+RouterOS Scripts :: Notification Generator
+
-
-
+
-RouterOS-Scripts Notification Generator
+Notification Generator

@@ -31,5 +29,4 @@
Then right-click, click "Take Screenshot" and finally select the
notification and download it.
-
-
+
From ebd84d1540432f24212ad652860ad9c03e803500 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 15:35:14 +0100
Subject: [PATCH 10/12] contrib/{logo-color,notification}: add navigation
structure
---
contrib/logo-color.html | 6 ++++++
contrib/notification.html | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/contrib/logo-color.html b/contrib/logo-color.html
index 1dc74b01..78d19e6c 100644
--- a/contrib/logo-color.html
+++ b/contrib/logo-color.html
@@ -8,6 +8,8 @@
Logo Color Changer
+⬅️ Go back to main README
+
You want the logo for your own notifications? But you joined the
Telegram Group and want
something that differentiates? Color it!
@@ -34,4 +36,8 @@ for other browsers may differ.)
Set
a profile photo for your Telegram bot.
+
+
+⬅️ Go back to main README
+⬆️ Go back to top
diff --git a/contrib/notification.html b/contrib/notification.html
index 1bd1ca53..a0eaa11e 100644
--- a/contrib/notification.html
+++ b/contrib/notification.html
@@ -8,6 +8,8 @@
Notification Generator
+⬅️ Go back to main README
+
@@ -29,4 +31,8 @@
Then right-click, click "Take Screenshot" and finally select the
notification and download it.
+
+
+
⬅️ Go back to main README
+⬆️ Go back to top
From 4102b4963770bf9a92864c09e036173db5a1d2cd Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 16:06:42 +0100
Subject: [PATCH 11/12] contrib/notification: update date format
---
contrib/notification.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/notification.html b/contrib/notification.html
index a0eaa11e..5d761b9b 100644
--- a/contrib/notification.html
+++ b/contrib/notification.html
@@ -16,7 +16,7 @@
[MikroTik] ℹ️ Subject
Message
🔗 https://eworm.de/
- ⏰ This message was queued since oct/18/2022 18:30:48 and may be obsolete.
+ ⏰ This message was queued since 2025-10-29 16:06:18 and may be obsolete.
✂️ The message was too long and has been truncated, cut off 13%!
@@ -25,7 +25,7 @@
Subject:
Message:
Show link:
- Queued since
+ Queued since
Cut-off with percent
Then right-click, click "Take Screenshot" and finally select the
From 96f61be2e2fff96d7c67c3bee1d6f51492cb9deb Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 16:11:23 +0100
Subject: [PATCH 12/12] contrib/notification: format the values italic
---
contrib/notification.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/notification.html b/contrib/notification.html
index 5d761b9b..298e3bdd 100644
--- a/contrib/notification.html
+++ b/contrib/notification.html
@@ -16,8 +16,8 @@
[MikroTik] ℹ️ Subject
Message
🔗 https://eworm.de/
- ⏰ This message was queued since 2025-10-29 16:06:18 and may be obsolete.
- ✂️ The message was too long and has been truncated, cut off 13%!
+ ⏰ This message was queued since 2025-10-29 16:06:18 and may be obsolete.
+ ✂️ The message was too long and has been truncated, cut off 13%!