mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-03 23:59:32 +00:00
Compare commits
10 commits
a17582e703
...
fd94b7e76b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd94b7e76b | ||
|
|
9079f867f1 | ||
|
|
0be7195371 | ||
|
|
ae1a7cb875 | ||
|
|
1e64bbeccb | ||
|
|
ef5929358e | ||
|
|
9e7d5d1ce3 | ||
|
|
2938c0a716 | ||
|
|
9a39382c93 | ||
|
|
2dd4bc7a39 |
8 changed files with 13 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,6 +7,7 @@
|
|||
*.rej
|
||||
|
||||
# html files (as generated from markdown)
|
||||
style.css
|
||||
*.html
|
||||
|
||||
# checksums file as used by $ScriptInstallUpdate
|
||||
|
|
|
|||
9
Makefile
9
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
|
||||
|
|
@ -33,7 +36,7 @@ all: $(CAPSMAN) $(LOCAL) $(WIFI) $(HTML) checksums.json
|
|||
< $< > $@
|
||||
|
||||
checksums.json: contrib/checksums.sh *.rsc */*.rsc
|
||||
contrib/checksums.sh
|
||||
contrib/checksums.sh > $@
|
||||
|
||||
clean:
|
||||
rm -f $(HTML) checksums.json
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ set -e
|
|||
|
||||
md5sum $(find -name '*.rsc' | sort) | \
|
||||
sed -e "s| \./||" -e 's|.rsc$||' | \
|
||||
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add' > 'checksums.json'
|
||||
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/* stylesheet for RouterOS Scripts */
|
||||
body {
|
||||
font-family: fira-sans, sans-serif;
|
||||
font-size: 10pt;
|
||||
|
|
|
|||
|
|
@ -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)|" \
|
||||
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
|
||||
< "${0}.d/head.html"
|
||||
markdown -f toc,idanchor "${1}" | sed \
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>RouterOS Scripts :: __TITLE__</title>
|
||||
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
||||
<link rel="icon" href="__LOGO__" type="image/png">
|
||||
<link rel="icon" type="image/png" href="__LOGO__">
|
||||
</head><body>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<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="icon" href="../logo.png" type="image/png">
|
||||
<link rel="icon" type="image/png" href="../logo.png">
|
||||
<script src="logo-color.d/script.js"></script>
|
||||
</head><body>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<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="icon" href="../logo.png" type="image/png">
|
||||
<link rel="icon" type="image/png" href="../logo.png">
|
||||
<script src="notification.d/script.js"></script>
|
||||
</head><body>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue