mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-09 11:29:29 +00:00
generate valid HTML, including head & style
This commit is contained in:
parent
2c715096b9
commit
14b51d96b0
3 changed files with 26 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -11,8 +11,8 @@ HTML = $(MARKDOWN:.md=.html)
|
|||
|
||||
all: $(CAPSMAN) $(LOCAL) $(WIFI) $(HTML) checksums.json
|
||||
|
||||
%.html: %.md Makefile
|
||||
markdown $< | sed 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' > $@
|
||||
%.html: %.md contrib/html.sh contrib/html.sh.d/head.html
|
||||
contrib/html.sh $< > $@
|
||||
|
||||
%.capsman.rsc: %.template.rsc Makefile
|
||||
sed -e '/\/interface\/wifi\//d' -e '/\/interface\/wireless\//d' -e 's|%TEMPL%|.capsman|' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue