mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-01 22:59:31 +00:00
Compare commits
63 commits
d7f9f3eade
...
1c11d77bce
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c11d77bce | ||
|
|
c80dd7d891 | ||
|
|
1e65df49fb | ||
|
|
576f41fc86 | ||
|
|
a9076f760d | ||
|
|
cb82d9b271 | ||
|
|
0a4b963c26 | ||
|
|
b4c3f6c58f | ||
|
|
fbeb1b53bb | ||
|
|
f3e5ba5024 | ||
|
|
ff05d2e95d | ||
|
|
0215c54b4f | ||
|
|
e4eaa31a87 | ||
|
|
7c950b5bc2 | ||
|
|
04fdbf17e7 | ||
|
|
5c7d7e017d | ||
|
|
6e4e3a50e5 | ||
|
|
324a778671 | ||
|
|
af340720cd | ||
|
|
b07f155021 | ||
|
|
22803175ed | ||
|
|
13d8e406a1 | ||
|
|
18782cf247 | ||
|
|
6cae963934 | ||
|
|
4da39b9cbc | ||
|
|
3240d27945 | ||
|
|
25b5423239 | ||
|
|
7a52d17b2a | ||
|
|
f614a92baf | ||
|
|
52fabebd5c | ||
|
|
0f55f1b703 | ||
|
|
0c7ec83d7c | ||
|
|
f9bbe0e7af | ||
|
|
9ac349e170 | ||
|
|
c51c3e7a47 | ||
|
|
3217ad1578 | ||
|
|
6dbdc82e22 | ||
|
|
249706a01c | ||
|
|
bbc4bec966 | ||
|
|
42568988cf | ||
|
|
db19c4cb43 | ||
|
|
bfa0148c9d | ||
|
|
480e36bcf3 | ||
|
|
128dfe0ff1 | ||
|
|
fcc413ea26 | ||
|
|
9ab7d0a43b | ||
|
|
5f0005baaf | ||
|
|
903c4bad41 | ||
|
|
ae560a548c | ||
|
|
c97ba60ca0 | ||
|
|
be362c8da7 | ||
|
|
f7f97a458b | ||
|
|
3e18e645d1 | ||
|
|
e29d9bc603 | ||
|
|
21c19a72a5 | ||
|
|
3c695a6721 | ||
|
|
468e2994c9 | ||
|
|
2d048d6e11 | ||
|
|
25e20dc0ef | ||
|
|
528edb7ea3 | ||
|
|
50d9106e2f | ||
|
|
f78d747226 | ||
|
|
e0e9dd9058 |
11 changed files with 20 additions and 32 deletions
2
Makefile
2
Makefile
|
|
@ -27,7 +27,7 @@ commitinfo: global-functions.rsc
|
|||
|
||||
docs: $(HTML)
|
||||
|
||||
%.html: %.md general/style.css contrib/html.sh contrib/html.sh.d/head.html contrib/html.sh.d/foot.html
|
||||
%.html: %.md general/style.css contrib/html.sh contrib/html.sh.d/head.html
|
||||
contrib/html.sh $< > $@
|
||||
|
||||
rsc: $(GEN_RSC)
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.7 KiB |
|
|
@ -6,5 +6,8 @@ HTML := $(wildcard *.html)
|
|||
|
||||
all: docs
|
||||
|
||||
docs: static-html.sh $(HTML)
|
||||
./static-html.sh $(HTML)
|
||||
docs: $(HTML)
|
||||
sed -i \
|
||||
-e '/href=/s|\.md|\.html|' \
|
||||
-e '/blockquote/s|/\*! display \*/|display: none;|' \
|
||||
$(HTML)
|
||||
|
|
|
|||
|
|
@ -6,14 +6,17 @@ RELTO="$(dirname "${1}")"
|
|||
|
||||
sed \
|
||||
-e "s|__TITLE__|$(head -n1 "${1}")|" \
|
||||
-e "s|__GENERAL__|$(realpath --relative-to="${RELTO}" general/)|" \
|
||||
-e "s|__ROOT__|$(realpath --relative-to="${RELTO}" ./)|" \
|
||||
-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)|" \
|
||||
-e "s|__CLIPBOARD__|$(realpath --relative-to="${RELTO}" general/clipboard.js)|" \
|
||||
< "${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|-2[7cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||
-e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||
-e '/^<pre>/s|pre|pre onclick="CopyToClipboard(this)"|g' \
|
||||
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<!DOCTYPE html><html lang="en">
|
||||
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>RouterOS Scripts :: __TITLE__</title>
|
||||
<link rel="stylesheet" type="text/css" href="__GENERAL__/style.css">
|
||||
<link rel="icon" type="image/png" href="__ROOT__/logo.png">
|
||||
<script type="text/javascript" src="__GENERAL__/clipboard.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
||||
<link rel="icon" type="image/png" href="__LOGO__">
|
||||
<script type="text/javascript" src="__CLIPBOARD__"></script>
|
||||
</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><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>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<p><a href="../README.md">⬅️ Go back to main README</a></p>
|
||||
|
||||
<blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<p><a href="../README.md">⬅️ Go back to main README</a></p>
|
||||
|
||||
<blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
sed -i \
|
||||
-e '/href=/s|\.md|\.html|' \
|
||||
-e '/blockquote/s|/\* display \*/|display: none;|' \
|
||||
"${@}"
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
/* copy code to clipboard */
|
||||
function CopyToClipboard(pre) {
|
||||
pre.style.filter = 'invert(1)';
|
||||
navigator.clipboard.writeText(pre.firstElementChild.innerHTML);
|
||||
setTimeout(function() {
|
||||
pre.style.filter = 'invert(0)';
|
||||
}, 100);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,12 +69,6 @@ pre code {
|
|||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
pre::before {
|
||||
content: "📋 Copy!";
|
||||
float: right;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 3px;
|
||||
}
|
||||
span.link {
|
||||
color: #863600;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
}
|
||||
|
||||
:if ($AllDone = true && $QueueLen = [ :len $EmailQueue ]) do={
|
||||
/system/scheduler/remove [ find where name="_FlushEmailQueue" ];
|
||||
/system/scheduler/remove $Scheduler;
|
||||
:set EmailQueue;
|
||||
:return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue