mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-07 02:19:29 +00:00
contrib/static-html: find static html files by comment
This commit is contained in:
parent
c5c9f869d2
commit
7f0da6311b
4 changed files with 6 additions and 3 deletions
|
|
@ -1,10 +1,10 @@
|
|||
# Makefile
|
||||
|
||||
HTML := $(wildcard *.html)
|
||||
STATIC_HTML := $(shell grep -xl '<!-- static html //-->' *.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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<!-- static html //-->
|
||||
<!DOCTYPE html><html lang="en">
|
||||
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>RouterOS Scripts :: Logo Color Changer</title>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<!-- static html //-->
|
||||
<!DOCTYPE html><html lang="en">
|
||||
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>RouterOS Scripts :: Notification Generator</title>
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ set -e
|
|||
sed -i \
|
||||
-e '/href=/s|\.md|\.html|' \
|
||||
-e '/blockquote/s|/\* display \*/|display: none;|' \
|
||||
-e '/<!-- static html \/\/-->/d' \
|
||||
"${@}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue