diff --git a/contrib/Makefile b/contrib/Makefile index f704378..bfd085b 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,10 +1,13 @@ # Makefile -HTML := $(wildcard *.html) +STATIC_HTML := $(shell grep -xl '' *.html) .PHONY: all docs all: docs -docs: static-html.sh $(HTML) - ./static-html.sh $(HTML) +badges.html: badges.md + markdown $< > $@ + +docs: static-html.sh $(STATIC_HTML) badges.html + ./static-html.sh $(STATIC_HTML) diff --git a/contrib/badges.md b/contrib/badges.md new file mode 100644 index 0000000..24bd205 --- /dev/null +++ b/contrib/badges.md @@ -0,0 +1,6 @@ +[](https://github.com/eworm-de/routeros-scripts/stargazers) +[](https://github.com/eworm-de/routeros-scripts/network) +[](https://github.com/eworm-de/routeros-scripts/watchers) +[](https://mikrotik.com/download/changelogs/) +[](https://t.me/routeros_scripts) +[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J) diff --git a/contrib/logo-color.html b/contrib/logo-color.html index a45ea93..c6fa2ab 100644 --- a/contrib/logo-color.html +++ b/contrib/logo-color.html @@ -1,3 +1,4 @@ +
💡️ Hint: This site or links diff --git a/contrib/notification.html b/contrib/notification.html index a618f22..6d2958b 100644 --- a/contrib/notification.html +++ b/contrib/notification.html @@ -1,3 +1,4 @@ +
RouterOS Scripts :: Notification Generator @@ -16,6 +17,8 @@Notification Generator
+ +💡️ Hint: This site or links diff --git a/contrib/static-html.sh b/contrib/static-html.sh index 2c6f595..41e89de 100755 --- a/contrib/static-html.sh +++ b/contrib/static-html.sh @@ -5,4 +5,7 @@ set -e sed -i \ -e '/href=/s|\.md|\.html|' \ -e '/blockquote/s|/\* display \*/|display: none;|' \ + -e '//d' \ + -e '//r badges.html' \ + -e '//d' \ "${@}"