Compare commits

...

14 commits

Author SHA1 Message Date
Christian Hesse
40147dc1cd doc/mod/scriptrunonce: get script from rsc.eworm.de 2025-11-12 11:54:32 +01:00
Christian Hesse
9fd127eb6d INITIAL-COMMANDS: install from rsc.eworm.de 2025-11-12 11:54:32 +01:00
Christian Hesse
cf7d7f9508 README: install from rsc.eworm.de 2025-11-12 11:54:32 +01:00
Christian Hesse
45f446e688 contrib/Makefile: hide the hint on broken site 2025-11-12 11:54:32 +01:00
Christian Hesse
7b6c18eef3 contrib/notification: hint on possibly broken site 2025-11-12 11:54:32 +01:00
Christian Hesse
d3da397b87 contrib/logo-color: hint on possibly broken site 2025-11-12 11:54:32 +01:00
Christian Hesse
e9cd631be5 contrib/html: hide the hint on broken link 2025-11-12 11:54:32 +01:00
Christian Hesse
d98b9624d3 doc/mod/notification-telegram: hint on possibly broken link 2025-11-12 11:54:32 +01:00
Christian Hesse
58e41d641c README: add a sub-section for code hosting 2025-11-12 11:54:32 +01:00
Christian Hesse
5acdcabcc1 README: add the upstream url verbatim 2025-11-12 11:54:32 +01:00
Christian Hesse
ee62084c56 general/style: make the blockquote darker 2025-11-12 11:54:32 +01:00
Christian Hesse
7b3ad6f86e contrib/notification: add a head with eworm, QR code and caption 2025-11-12 11:54:32 +01:00
Christian Hesse
ed42bef06c contrib/logo-color: add a head with eworm, QR code and caption 2025-11-12 11:54:32 +01:00
Christian Hesse
df3d1f2f54 contrib/html: add a head with eworm, QR code and caption 2025-11-12 11:54:32 +01:00
11 changed files with 69 additions and 12 deletions

View file

@ -17,7 +17,7 @@ Initial commands
Run the complete base installation: Run the complete base installation:
{ {
:local BaseUrl "https://git.eworm.de/cgit/routeros-scripts/plain/"; :local BaseUrl "https://rsc.eworm.de/main/";
:local CertCommonName "ISRG Root X2"; :local CertCommonName "ISRG Root X2";
:local CertFileName "ISRG-Root-X2.pem"; :local CertFileName "ISRG-Root-X2.pem";
:local CertFingerprint "69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470"; :local CertFingerprint "69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";

View file

@ -87,7 +87,7 @@ If you intend to download the scripts from a
different location (for example from github.com) install the corresponding different location (for example from github.com) install the corresponding
certificate chain. certificate chain.
/tool/fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/ISRG-Root-X2.pem" dst-path="isrg-root-x2.pem"; /tool/fetch "https://rsc.eworm.de/main/certs/ISRG-Root-X2.pem" dst-path="isrg-root-x2.pem";
![screenshot: download certs](README.d/01-download-certs.avif) ![screenshot: download certs](README.d/01-download-certs.avif)
@ -125,7 +125,7 @@ date and time is set correctly!
Now let's download the main scripts and add them in configuration on the fly. Now let's download the main scripts and add them in configuration on the fly.
:foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ /system/script/add name=$Script owner=$Script source=([ /tool/fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . ".rsc") output=user as-value]->"data"); }; :foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ /system/script/add name=$Script owner=$Script source=([ /tool/fetch check-certificate=yes-without-crl ("https://rsc.eworm.de/main/" . $Script . ".rsc") output=user as-value]->"data"); };
![screenshot: import scripts](README.d/04-import-scripts.avif) ![screenshot: import scripts](README.d/04-import-scripts.avif)
@ -404,14 +404,15 @@ immediately remove the link in question.
Upstream Upstream
-------- --------
[rsc.eworm.de](https://rsc.eworm.de/)
[![upstream](general/qr-code.png)](https://rsc.eworm.de/) [![upstream](general/qr-code.png)](https://rsc.eworm.de/)
URL: ### Code hosting
[GitHub.com](https://github.com/eworm-de/routeros-scripts#routeros-scripts)
Mirror: * [eworm.de](https://git.eworm.de/cgit/routeros-scripts/about/)
[eworm.de](https://git.eworm.de/cgit/routeros-scripts/about/) * [GitHub.com](https://github.com/eworm-de/routeros-scripts#routeros-scripts)
[GitLab.com](https://gitlab.com/eworm-de/routeros-scripts#routeros-scripts) * [GitLab.com](https://gitlab.com/eworm-de/routeros-scripts#routeros-scripts)
--- ---
[⬆️ Go back to top](#top) [⬆️ Go back to top](#top)

View file

@ -7,4 +7,6 @@ HTML := $(wildcard *.html)
all: docs all: docs
docs: $(HTML) docs: $(HTML)
sed -i '/href=/s|\.md|\.html|' $(HTML) sed -i -e '/href=/s|\.md|\.html|' \
-e '/blockquote/s|/\*! display \*/|display: none;|' \
$(HTML)

View file

@ -7,9 +7,12 @@ sed \
-e "s|__TITLE__|$(head -n1 "${1}")|" \ -e "s|__TITLE__|$(head -n1 "${1}")|" \
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \ -e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \ -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" < "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \ markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \ -e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \ -e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
-e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g' -e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
printf '</body></html>' printf '</body></html>'

View file

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

View file

@ -6,10 +6,23 @@
<script src="logo-color.d/script.js"></script> <script src="logo-color.d/script.js"></script>
</head><body> </head><body>
<table><tr>
<td><img src="../general/eworm-meadow.avif" alt="eworm on meadow" /></td>
<td><img src="../general/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
<td class="head"><span class="top">RouterOS Scripts</span><br />
<span class="bottom">a collection of scripts for MikroTik RouterOS</span></td>
</tr></table>
<hr />
<h1>Logo Color Changer</h1> <h1>Logo Color Changer</h1>
<p><a href="../README.md">⬅️ Go back to main README</a></p> <p><a href="../README.md">⬅️ Go back to main README</a></p>
<blockquote style="/*! display */"><p>💡️ <strong>Hint</strong>: This site or links
on it may be broken on code hosting sites. Use
<a href="https://rsc.eworm.de/main/contrib/logo-color.html">Logo Color Changer</a>
instead.</p></blockquote>
<p>You want the logo for your own notifications? But you joined the <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 <a href="https://t.me/routeros_scripts">Telegram Group</a> and want
something that differentiates? Color it!</p> something that differentiates? Color it!</p>

View file

@ -6,10 +6,23 @@
<script src="notification.d/script.js"></script> <script src="notification.d/script.js"></script>
</head><body> </head><body>
<table><tr>
<td><img src="../general/eworm-meadow.avif" alt="eworm on meadow" /></td>
<td><img src="../general/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
<td class="head"><span class="top">RouterOS Scripts</span><br />
<span class="bottom">a collection of scripts for MikroTik RouterOS</span></td>
</tr></table>
<hr />
<h1>Notification Generator</h1> <h1>Notification Generator</h1>
<p><a href="../README.md">⬅️ Go back to main README</a></p> <p><a href="../README.md">⬅️ Go back to main README</a></p>
<blockquote style="/*! display */"><p>💡️ <strong>Hint</strong>: This site or links
on it may be broken on code hosting sites. Use
<a href="https://rsc.eworm.de/main/contrib/notification.html">Notification Generator</a>
instead.</p></blockquote>
<div class="notification"> <div class="notification">
<img src="../logo.svg" alt="logo" class="logo" width=48 height=48> <img src="../logo.svg" alt="logo" class="logo" width=48 height=48>
<div class="content"> <div class="content">

View file

@ -109,6 +109,10 @@ chat with [BotFather ↗️](https://t.me/BotFather) and set it there.
Have a look at my [Logo Color Changer](../../contrib/logo-color.html) Have a look at my [Logo Color Changer](../../contrib/logo-color.html)
to create a colored version of this scripts' logo. to create a colored version of this scripts' logo.
> 💡️ **Hint**: The above link may be broken on code hosting sites.
> Use [Logo Color Changer](https://rsc.eworm.de/main/contrib/logo-color.html)
> instead.
See also See also
-------- --------

View file

@ -48,7 +48,7 @@ Usage and invocation
The function `$ScriptRunOnce` expects an URL (or name if The function `$ScriptRunOnce` expects an URL (or name if
`ScriptRunOnceBaseUrl` is given) pointing to a script as parameter. `ScriptRunOnceBaseUrl` is given) pointing to a script as parameter.
$ScriptRunOnce https://git.eworm.de/cgit/routeros-scripts/plain/doc/mod/scriptrunonce.d/hello-world.rsc; $ScriptRunOnce https://rsc.eworm.de/main/doc/mod/scriptrunonce.d/hello-world.rsc;
![ScriptRunOnce](scriptrunonce.d/scriptrunonce.avif) ![ScriptRunOnce](scriptrunonce.d/scriptrunonce.avif)

BIN
general/eworm-meadow.avif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -18,7 +18,7 @@ a:hover {
blockquote { blockquote {
border-left: 4px solid #ccc; border-left: 4px solid #ccc;
padding: 0 10px; padding: 0 10px;
color: #777; color: #555;
} }
code { code {
margin: 0 2px; margin: 0 2px;
@ -68,6 +68,18 @@ pre code {
span.link { span.link {
color: #863600; color: #863600;
} }
td.head {
line-height: 1.2;
padding: 0 2em;
}
td.head .top {
font-size: 250%;
font-weight: bold;
}
td.head .bottom {
font-size: 125%;
color: #555;
}
@media only screen and (orientation: landscape) { @media only screen and (orientation: landscape) {
body { body {
margin-left: 10vw; margin-left: 10vw;