diff --git a/Makefile b/Makefile index 3f46f27..2e3ba0d 100644 --- a/Makefile +++ b/Makefile @@ -43,4 +43,3 @@ rsc: $(GEN_RSC) clean: rm -f $(HTML) checksums.json - make -C contrib clean diff --git a/contrib/Makefile b/contrib/Makefile index e755a1d..bfd085b 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,17 +1,13 @@ # Makefile -HTML := $(shell grep -xl '' *.html) +STATIC_HTML := $(shell grep -xl '' *.html) -.PHONY: all docs clean +.PHONY: all docs all: docs badges.html: badges.md markdown $< > $@ -docs: static-html.sh $(HTML) badges.html - ./static-html.sh $(HTML) - -clean: - rm -f badges.html - git checkout HEAD -- $(HTML) +docs: static-html.sh $(STATIC_HTML) badges.html + ./static-html.sh $(STATIC_HTML) diff --git a/contrib/logo-color.html b/contrib/logo-color.html index 84365a6..c6fa2ab 100644 --- a/contrib/logo-color.html +++ b/contrib/logo-color.html @@ -1,5 +1,5 @@ - + RouterOS Scripts :: Logo Color Changer diff --git a/contrib/notification.html b/contrib/notification.html index a0580bd..6d2958b 100644 --- a/contrib/notification.html +++ b/contrib/notification.html @@ -1,5 +1,5 @@ - + RouterOS Scripts :: Notification Generator diff --git a/contrib/static-html.sh b/contrib/static-html.sh index 7acf104..41e89de 100755 --- a/contrib/static-html.sh +++ b/contrib/static-html.sh @@ -5,6 +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' \ "${@}"