Compare commits

..

43 commits

Author SHA1 Message Date
Christian Hesse
b751a6d5b6 general/style: make the blockquote darker 2025-11-11 23:01:34 +01:00
Christian Hesse
736c0ac08c contrib/html: add a head with eworm, QR code and caption 2025-11-11 23:01:34 +01:00
Christian Hesse
6fb70fe2a1 README: move the QR code 2025-11-11 23:01:34 +01:00
Christian Hesse
378aad070d Merge branch 'builtin-trust-store' into next 2025-11-11 23:01:34 +01:00
Christian Hesse
b5f6881f3d README: add a line break before command 2025-11-11 23:01:34 +01:00
Christian Hesse
c9cf6b7023 doc/mod/notification-matrix: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
ba89aa229c fw-addr-lists.d/allow: use rsc.eworm.de in the list 2025-11-11 23:01:34 +01:00
Christian Hesse
ca7c72338d CERTIFICATES: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
7a8eecf555 fw-addr-lists.d/{allow,block}: use short url rsc.eworm.de 2025-11-11 23:01:34 +01:00
Christian Hesse
2b4ccfe7aa update-tunnelbroker: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
c25d276d0e Makefile: clean up and add phony targets 2025-11-11 23:01:34 +01:00
Christian Hesse
c50844d46f telegram-chat: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
204977c685 global-functions: $ScriptInstallUpdate: extra actions on 'not found' only 2025-11-11 23:01:34 +01:00
Christian Hesse
ac9dfe4913 netwatch-dns: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
a31f5559aa global-functions: $ScriptInstallUpdate: either or...
... but not both.
2025-11-11 23:01:34 +01:00
Christian Hesse
066ef8cc4a mod/notification-telegram: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
74f343f6d5 global-functions: $ScriptInstallUpdate: give hint on ignore
Fixes: https://github.com/eworm-de/routeros-scripts/issues/112
2025-11-11 23:01:34 +01:00
Christian Hesse
76f9d34a70 mod/notification-ntfy: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
8a908be4e0 contrib/checksums.sh: output to stdout...
... and let the Makefile redirect.
2025-11-11 23:01:34 +01:00
Christian Hesse
e62a19257a fw-addr-lists: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
735c163362 Merge branch 'contrib' into next 2025-11-11 23:01:34 +01:00
Christian Hesse
b6be7ded9a check-certificates: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
a0b4d422b5 contrib: introduce Makefile...
... and update references in links.
2025-11-11 23:01:34 +01:00
Christian Hesse
87f28c234f global-functions: $ScriptInstallUpdate: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
4de0b2e7be contrib/logo-color: place screenshots below each other...
... not side by side.
2025-11-11 23:01:34 +01:00
Christian Hesse
cf375cbdd1 global-functions: $GetMacVendor: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
b20f025fc5 contrib/logo-color: use relative reference in link
... without extra path elements.

This may break, depending on site.
2025-11-11 23:01:34 +01:00
Christian Hesse
0f1f9a467f global-functions: $DownloadPackage: define certificate use 2025-11-11 23:01:34 +01:00
Christian Hesse
5c9825760f doc/mod/notification-telegram: use relative reference in link
This may break, depending on site.
2025-11-11 23:01:34 +01:00
Christian Hesse
daf1cfb381 global-functions: $CertificateAvailable: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-11 23:01:34 +01:00
Christian Hesse
42ad0d310f contrib/notification: format the values italic 2025-11-11 23:01:34 +01:00
Christian Hesse
f7e9f529d0 INITIAL-COMMANDS: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-11 23:01:34 +01:00
Christian Hesse
2e1d59721f contrib/notification: update date format 2025-11-11 23:01:34 +01:00
Christian Hesse
29a82d1a42 README: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-11 23:01:34 +01:00
Christian Hesse
de97ed6f19 contrib/{logo-color,notification}: add navigation structure 2025-11-11 23:01:34 +01:00
Christian Hesse
0f3df0c75d contrib/*: unify html code 2025-11-11 23:01:34 +01:00
Christian Hesse
668f29776b contrib/html.sh: drop comma & ampersand from id/anchor 2025-11-11 23:01:34 +01:00
Christian Hesse
c0e8ee8c9b contrib/html.sh: properly handle anchors 2025-11-11 23:01:34 +01:00
Christian Hesse
1b914274fd contrib/html.sh: link the logo with relative path 2025-11-11 23:01:34 +01:00
Christian Hesse
98343cf8fb contrib/html.sh: increase default line height 2025-11-11 23:01:34 +01:00
Christian Hesse
2aad3add26 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.
2025-11-11 23:01:34 +01:00
Christian Hesse
60a1b98866 contrib/html.sh: include stylesheet via link 2025-11-11 23:01:34 +01:00
Christian Hesse
7560020aff contrib/{logo-color,notification}: use a single style 2025-11-11 23:01:34 +01:00
12 changed files with 62 additions and 28 deletions

1
.gitignore vendored
View file

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

View file

@ -6,7 +6,7 @@ ALL_RSC := $(wildcard *.rsc */*.rsc)
GEN_RSC := $(wildcard *.capsman.rsc *.local.rsc *.wifi.rsc)
MARKDOWN := $(wildcard *.md doc/*.md doc/mod/*.md)
HTML := $(MARKDOWN:.md=.html) style.css
HTML := $(MARKDOWN:.md=.html)
.PHONY: all checksums docs rsc clean
@ -19,10 +19,7 @@ checksums.json: contrib/checksums.sh $(ALL_RSC)
docs: $(HTML)
style.css: contrib/general/style.css
cp $< $@
%.html: %.md style.css 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 $< > $@
rsc: $(GEN_RSC)

View file

@ -404,7 +404,7 @@ immediately remove the link in question.
Upstream
--------
[![upstream](README.d/upstream.png)](https://rsc.eworm.de/)
[![upstream](general/qr-code.png)](https://rsc.eworm.de/)
URL:
[GitHub.com](https://github.com/eworm-de/routeros-scripts#routeros-scripts)

10
contrib/Makefile Normal file
View file

@ -0,0 +1,10 @@
# Makefile
HTML := $(wildcard *.html)
.PHONY: all docs
all: docs
docs: $(HTML)
sed -i '/href=/s|\.md|\.html|' $(HTML)

View file

@ -5,11 +5,13 @@ set -e
RELTO="$(dirname "${1}")"
sed \
-e "s|__TITLE__|$(head -n1 "${1}")|" \
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" style.css)|" \
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
-e "s|__EWORM__|$(realpath --relative-to="${RELTO}" general/eworm-meadow.avif)|" \
-e "s|__QR_CODE__|$(realpath --relative-to="${RELTO}" general/qr-code.png)|" \
< "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
-e '/<h[1234] /s|-2c-||'
-e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g'
printf '</body></html>'

View file

@ -4,3 +4,14 @@
<link rel="stylesheet" type="text/css" href="__STYLE__">
<link rel="icon" type="image/png" href="__LOGO__">
</head><body>
<table>
<tr>
<td rowspan=2><img src="__EWORM__" alt="eworm on meadow"></td>
<td rowspan=2><img src="__QR_CODE__" alt="QR code: rsc.eworm.de"></td>
<td class="head-top">RouterOS Scripts</td>
</tr>
<tr>
<td class="head-bottom">a collection of scripts for MikroTik RouterOS</td>
</tr>
</table>
<hr>

View file

@ -1,14 +1,14 @@
<!DOCTYPE html><html lang="en">
<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="stylesheet" type="text/css" href="../general/style.css">
<link rel="icon" type="image/png" href="../logo.png">
<script src="logo-color.d/script.js"></script>
</head><body>
<h1>Logo Color Changer</h1>
<p><a href="../README.html">⬅️ Go back to main README</a></p>
<p><a href="../README.md">⬅️ Go back to main README</a></p>
<p>You want the logo for your own notifications? But you joined the
<a href="https://t.me/routeros_scripts">Telegram Group</a> and want
@ -24,20 +24,20 @@ something that differentiates? Color it!</p>
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
logo and download it.</p>
<p><img src="logo-color.d/browser-01.avif" width=533 height=482 alt="Screenshot Browser 01">
<img src="logo-color.d/browser-02.avif" width=533 height=482 alt="Screenshot Browser 02">
<img src="logo-color.d/browser-03.avif" width=533 height=482 alt="Screenshot Browser 03"></p>
<p><img src="logo-color.d/browser-01.avif" width=533 height=482 alt="Screenshot Browser 01"></p>
<p><img src="logo-color.d/browser-02.avif" width=533 height=482 alt="Screenshot Browser 02"></p>
<p><img src="logo-color.d/browser-03.avif" width=533 height=482 alt="Screenshot Browser 03"></p>
<p>(This example is with
<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a>. The workflow
for other browsers may differ.)</p>
<p>See how to
<a href="../../about/doc/mod/notification-telegram.md#set-a-profile-photo">Set
<a href="../doc/mod/notification-telegram.md#set-a-profile-photo">Set
a profile photo</a> for your Telegram bot.</p>
<hr />
<p><a href="../README.html">⬅️ Go back to main README</a><br/>
<p><a href="../README.md">⬅️ Go back to main README</a><br/>
<a href="#top">⬆️ Go back to top</a></p>
</body></html>

View file

@ -1,14 +1,14 @@
<!DOCTYPE html><html lang="en">
<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="stylesheet" type="text/css" href="../general/style.css">
<link rel="icon" type="image/png" href="../logo.png">
<script src="notification.d/script.js"></script>
</head><body>
<h1>Notification Generator</h1>
<p><a href="../README.html">⬅️ Go back to main README</a></p>
<p><a href="../README.md">⬅️ Go back to main README</a></p>
<div class="notification">
<img src="../logo.svg" alt="logo" class="logo" width=48 height=48>
@ -33,6 +33,6 @@ notification and download it.</p>
<hr />
<p><a href="../README.html">⬅️ Go back to main README</a><br/>
<p><a href="../README.md">⬅️ Go back to main README</a><br/>
<a href="#top">⬆️ Go back to top</a></p>
</body></html>

View file

@ -107,7 +107,7 @@ chat with [BotFather ↗️](https://t.me/BotFather) and set it there.
![set profile photo](notification-telegram.d/setuserpic.avif)
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

BIN
general/eworm-meadow.avif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

Before After
Before After

View file

@ -5,12 +5,6 @@ body {
font-size: 10pt;
line-height: 1.6;
}
@media only screen and (orientation: landscape) {
body {
margin-left: 10vw;
margin-right: 10vw;
}
}
h2 {
border-bottom: 1px solid #ccc;
color: #000;
@ -24,7 +18,7 @@ a:hover {
blockquote {
border-left: 4px solid #ccc;
padding: 0 10px;
color: #777;
color: #555;
}
code {
margin: 0 2px;
@ -35,7 +29,7 @@ code {
}
div.notification {
position: relative;
float: right;
float: none;
width: 600px;
border: 3px outset #6c5d53;
/* border-radius: 5px; */
@ -74,3 +68,24 @@ pre code {
span.link {
color: #863600;
}
td.head-top {
height: 48px;
vertical-align: bottom;
font-size: 250%;
font-weight: bold;
}
td.head-bottom {
height: 48px;
vertical-align: top;
font-size: 125%;
color: #555;
}
@media only screen and (orientation: landscape) {
body {
margin-left: 10vw;
margin-right: 10vw;
}
div.notification {
float: right;
}
}