From 7f0da6311b108e4d369c241a76a15e149030f6cb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 18 Nov 2025 18:53:29 +0100 Subject: [PATCH] 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' \ "${@}"