From 7560020affc2cf78281a24f894572bab9ea86093 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 14:31:17 +0100
Subject: [PATCH 01/15] contrib/{logo-color,notification}: use a single style
---
contrib/logo-color.d/style.css | 5 -----
contrib/logo-color.html | 2 +-
contrib/notification.html | 4 ++--
{contrib/notification.d => general}/style.css | 3 ++-
4 files changed, 5 insertions(+), 9 deletions(-)
delete mode 100644 contrib/logo-color.d/style.css
rename {contrib/notification.d => general}/style.css (93%)
diff --git a/contrib/logo-color.d/style.css b/contrib/logo-color.d/style.css
deleted file mode 100644
index eb2ec6a..0000000
--- 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 17942ce..507445b 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 7875036..b7d6764 100644
--- a/contrib/notification.html
+++ b/contrib/notification.html
@@ -3,8 +3,8 @@
RouterOS-Scripts Notification Generator
-
-
+
+
diff --git a/contrib/notification.d/style.css b/general/style.css
similarity index 93%
rename from contrib/notification.d/style.css
rename to general/style.css
index 648ea23..66d44f1 100644
--- a/contrib/notification.d/style.css
+++ b/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;
From 60a1b98866dce0ad741254020969daf9ed1f7ea7 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 14:46:01 +0100
Subject: [PATCH 02/15] contrib/html.sh: include stylesheet via link
---
Makefile | 2 +-
contrib/html.sh | 6 +++++-
contrib/html.sh.d/head.html | 11 +----------
general/style.css | 32 ++++++++++++++++++++++++++++++++
4 files changed, 39 insertions(+), 12 deletions(-)
diff --git a/Makefile b/Makefile
index 0265a51..680d768 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ HTML = $(MARKDOWN:.md=.html)
all: $(CAPSMAN) $(LOCAL) $(WIFI) $(HTML) checksums.json
-%.html: %.md contrib/html.sh contrib/html.sh.d/head.html
+%.html: %.md general/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 bbd8ba8..c494e9b 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}" 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 1b1dd03..50653ae 100644
--- a/contrib/html.sh.d/head.html
+++ b/contrib/html.sh.d/head.html
@@ -1,15 +1,6 @@
RouterOS Scripts :: __TITLE__
-
+
diff --git a/general/style.css b/general/style.css
index 66d44f1..be67afa 100644
--- a/general/style.css
+++ b/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;
From 2aad3add260523e210c255c4f1ff05a946bf7bfc Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Fri, 7 Nov 2025 12:51:34 +0100
Subject: [PATCH 03/15] contrib/html.sh: add a margin on left and right...
... for windows in landscape (wider than high). Also make the
notification float right for landscape only.
---
general/style.css | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/general/style.css b/general/style.css
index be67afa..a9ede5e 100644
--- a/general/style.css
+++ b/general/style.css
@@ -28,7 +28,7 @@ code {
}
div.notification {
position: relative;
- float: right;
+ float: none;
width: 600px;
border: 3px outset #6c5d53;
/* border-radius: 5px; */
@@ -67,3 +67,12 @@ pre code {
span.link {
color: #863600;
}
+@media only screen and (orientation: landscape) {
+ body {
+ margin-left: 10vw;
+ margin-right: 10vw;
+ }
+ div.notification {
+ float: right;
+ }
+}
From 98343cf8fba5930c646417402080b0808345ac25 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Mon, 10 Nov 2025 11:30:49 +0100
Subject: [PATCH 04/15] contrib/html.sh: increase default line height
---
general/style.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/general/style.css b/general/style.css
index a9ede5e..ad25c7c 100644
--- a/general/style.css
+++ b/general/style.css
@@ -3,6 +3,7 @@ body {
background-color: transparent;
font-family: fira-sans, sans-serif;
font-size: 10pt;
+ line-height: 1.6;
}
h2 {
border-bottom: 1px solid #ccc;
From 1b914274fd19fa770d82fbf085f18d8c8e9ec704 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 14:55:00 +0100
Subject: [PATCH 05/15] 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 c494e9b..aafe5a2 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}" general/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 50653ae..779e246 100644
--- a/contrib/html.sh.d/head.html
+++ b/contrib/html.sh.d/head.html
@@ -2,5 +2,5 @@
RouterOS Scripts :: __TITLE__
-
+
From c0e8ee8c9bd689850888db0e003d8e7efdfa87cc Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Fri, 7 Nov 2025 22:34:00 +0100
Subject: [PATCH 06/15] 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 aafe5a2..69c0dba 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 668f29776b4bea246d2de6c0cf65691ec63060a4 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Fri, 7 Nov 2025 22:57:17 +0100
Subject: [PATCH 07/15] contrib/html.sh: drop comma & ampersand 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 69c0dba..5b0b978 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 0f3df0c75dfd7cd0ac65a1ffe49d6dd9e18ef72a Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 15:19:32 +0100
Subject: [PATCH 08/15] 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 779e246..0ce3ff7 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 507445b..eb00492 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 b7d6764..472ce48 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 de97ed6f19bf751873032e011ec24263acd8a4e6 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 15:35:14 +0100
Subject: [PATCH 09/15] 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 eb00492..8ee1ba9 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 472ce48..3bc86fc 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 2e1d59721f06316ba6b139375a6467c7870063cf Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 16:06:42 +0100
Subject: [PATCH 10/15] 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 3bc86fc..c86450c 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 42ad0d310f857ad7b20d791e08c297a3afe86032 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Wed, 29 Oct 2025 16:11:23 +0100
Subject: [PATCH 11/15] 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 c86450c..a4d0486 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 % !
From 5c9825760fb09b9b22dd4c25d7b4b5c785e2e037 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Tue, 11 Nov 2025 16:25:01 +0100
Subject: [PATCH 12/15] doc/mod/notification-telegram: use relative reference
in link
This may break, depending on site.
---
doc/mod/notification-telegram.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/mod/notification-telegram.md b/doc/mod/notification-telegram.md
index 804104f..05180b2 100644
--- a/doc/mod/notification-telegram.md
+++ b/doc/mod/notification-telegram.md
@@ -107,7 +107,7 @@ chat with [BotFather ↗️](https://t.me/BotFather) and set it there.

Have a look at my
-[RouterOS-Scripts Logo Color Changer](https://git.eworm.de/cgit/routeros-scripts/plain/contrib/logo-color.html)
+[RouterOS-Scripts Logo Color Changer](../../contrib/logo-color.html)
to create a colored version of this scripts' logo.
See also
From b20f025fc5ed7681252e770c2effed85d2a237a5 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Tue, 11 Nov 2025 16:27:59 +0100
Subject: [PATCH 13/15] contrib/logo-color: use relative reference in link
... without extra path elements.
This may break, depending on site.
---
contrib/logo-color.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/logo-color.html b/contrib/logo-color.html
index 8ee1ba9..9962e99 100644
--- a/contrib/logo-color.html
+++ b/contrib/logo-color.html
@@ -33,7 +33,7 @@ logo and download it.
for other browsers may differ.)
See how to
-Set
+ Set
a profile photo for your Telegram bot.
From 4de0b2e7be8c831fe4adfb7eca6af2fbf1de5ceb Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Tue, 11 Nov 2025 17:07:01 +0100
Subject: [PATCH 14/15] contrib/logo-color: place screenshots below each
other...
... not side by side.
---
contrib/logo-color.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/logo-color.html b/contrib/logo-color.html
index 9962e99..f824e2d 100644
--- a/contrib/logo-color.html
+++ b/contrib/logo-color.html
@@ -24,9 +24,9 @@ something that differentiates? Color it!
Then right-click, click "Take Screenshot " and finally select the
logo and download it.
-
-
-
+
+
+
(This example is with
Firefox . The workflow
From a0b4d422b5f9e2723d320c22a7f623b38ffd20d8 Mon Sep 17 00:00:00 2001
From: Christian Hesse
Date: Tue, 11 Nov 2025 16:26:05 +0100
Subject: [PATCH 15/15] contrib: introduce Makefile...
... and update references in links.
---
contrib/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 contrib/Makefile
diff --git a/contrib/Makefile b/contrib/Makefile
new file mode 100644
index 0000000..aae3178
--- /dev/null
+++ b/contrib/Makefile
@@ -0,0 +1,10 @@
+# Makefile
+
+HTML := $(wildcard *.html)
+
+.PHONY: all docs
+
+all: docs
+
+docs: $(HTML)
+ sed -i '/href=/s|\.md|\.html|' $(HTML)