contrib/static-html: add badges

This commit is contained in:
Christian Hesse 2025-11-18 19:01:39 +01:00
parent 7f0da6311b
commit c8f6f7a4b5
5 changed files with 16 additions and 1 deletions

View file

@ -6,5 +6,8 @@ STATIC_HTML := $(shell grep -xl '<!-- static html //-->' *.html)
all: docs 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) ./static-html.sh $(STATIC_HTML)

6
contrib/badges.md Normal file
View file

@ -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)

View file

@ -17,6 +17,8 @@
<h1>Logo Color Changer</h1> <h1>Logo Color Changer</h1>
<!-- badges here //-->
<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 <blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links

View file

@ -17,6 +17,8 @@
<h1>Notification Generator</h1> <h1>Notification Generator</h1>
<!-- badges here //-->
<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 <blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links

View file

@ -6,4 +6,6 @@ sed -i \
-e '/href=/s|\.md|\.html|' \ -e '/href=/s|\.md|\.html|' \
-e '/blockquote/s|/\* display \*/|display: none;|' \ -e '/blockquote/s|/\* display \*/|display: none;|' \
-e '/<!-- static html \/\/-->/d' \ -e '/<!-- static html \/\/-->/d' \
-e '/<!-- badges here \/\/-->/r badges.html' \
-e '/<!-- badges here \/\/-->/d' \
"${@}" "${@}"