From 7f0da6311b108e4d369c241a76a15e149030f6cb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 18 Nov 2025 18:53:29 +0100 Subject: [PATCH 1/2] contrib/static-html: find static html files by comment --- contrib/Makefile | 6 +++--- contrib/logo-color.html | 1 + contrib/notification.html | 1 + contrib/static-html.sh | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/contrib/Makefile b/contrib/Makefile index f704378..9ed2094 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,10 +1,10 @@ # Makefile -HTML := $(wildcard *.html) +STATIC_HTML := $(shell grep -xl '' *.html) .PHONY: all docs all: docs -docs: static-html.sh $(HTML) - ./static-html.sh $(HTML) +docs: static-html.sh $(STATIC_HTML) + ./static-html.sh $(STATIC_HTML) diff --git a/contrib/logo-color.html b/contrib/logo-color.html index a45ea93..4a29781 100644 --- a/contrib/logo-color.html +++ b/contrib/logo-color.html @@ -1,3 +1,4 @@ + RouterOS Scripts :: Logo Color Changer diff --git a/contrib/notification.html b/contrib/notification.html index a618f22..e9a1965 100644 --- a/contrib/notification.html +++ b/contrib/notification.html @@ -1,3 +1,4 @@ + RouterOS Scripts :: Notification Generator diff --git a/contrib/static-html.sh b/contrib/static-html.sh index 2c6f595..82eb277 100755 --- a/contrib/static-html.sh +++ b/contrib/static-html.sh @@ -5,4 +5,5 @@ set -e sed -i \ -e '/href=/s|\.md|\.html|' \ -e '/blockquote/s|/\* display \*/|display: none;|' \ + -e '//d' \ "${@}" From c8f6f7a4b52b52788e76012f92d7e728ab28b7a6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 18 Nov 2025 19:01:39 +0100 Subject: [PATCH 2/2] contrib/static-html: add badges --- contrib/Makefile | 5 ++++- contrib/badges.md | 6 ++++++ contrib/logo-color.html | 2 ++ contrib/notification.html | 2 ++ contrib/static-html.sh | 2 ++ 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 contrib/badges.md diff --git a/contrib/Makefile b/contrib/Makefile index 9ed2094..bfd085b 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -6,5 +6,8 @@ STATIC_HTML := $(shell grep -xl '' *.html) all: docs -docs: static-html.sh $(STATIC_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 @@ +[![GitHub stars](https://img.shields.io/github/stars/eworm-de/routeros-scripts?logo=GitHub&style=flat&color=red)](https://github.com/eworm-de/routeros-scripts/stargazers) +[![GitHub forks](https://img.shields.io/github/forks/eworm-de/routeros-scripts?logo=GitHub&style=flat&color=green)](https://github.com/eworm-de/routeros-scripts/network) +[![GitHub watchers](https://img.shields.io/github/watchers/eworm-de/routeros-scripts?logo=GitHub&style=flat&color=blue)](https://github.com/eworm-de/routeros-scripts/watchers) +[![required RouterOS version](https://img.shields.io/badge/RouterOS-7.15-yellow?style=flat)](https://mikrotik.com/download/changelogs/) +[![Telegram group @routeros_scripts](https://img.shields.io/badge/Telegram-%40routeros__scripts-%2326A5E4?logo=telegram&style=flat)](https://t.me/routeros_scripts) +[![donate with PayPal](https://img.shields.io/badge/Like_it%3F-Donate!-orange?logo=githubsponsors&logoColor=orange&style=flat)](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 4a29781..c6fa2ab 100644 --- a/contrib/logo-color.html +++ b/contrib/logo-color.html @@ -17,6 +17,8 @@

Logo Color Changer

+ +

⬅️ Go back to main README

💡️ Hint: This site or links diff --git a/contrib/notification.html b/contrib/notification.html index e9a1965..6d2958b 100644 --- a/contrib/notification.html +++ b/contrib/notification.html @@ -17,6 +17,8 @@

Notification Generator

+ +

⬅️ Go back to main README

💡️ Hint: This site or links diff --git a/contrib/static-html.sh b/contrib/static-html.sh index 82eb277..41e89de 100755 --- a/contrib/static-html.sh +++ b/contrib/static-html.sh @@ -6,4 +6,6 @@ sed -i \ -e '/href=/s|\.md|\.html|' \ -e '/blockquote/s|/\* display \*/|display: none;|' \ -e '//d' \ + -e '//r badges.html' \ + -e '//d' \ "${@}"