mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-08 02:49:29 +00:00
contrib/html: add a footer
This commit is contained in:
parent
23db61ff7c
commit
6e41f0ae12
4 changed files with 16 additions and 1 deletions
4
Makefile
4
Makefile
|
|
@ -8,6 +8,10 @@ GEN_RSC := $(wildcard *.capsman.rsc *.local.rsc *.wifi.rsc)
|
|||
MARKDOWN := $(wildcard *.md doc/*.md doc/mod/*.md)
|
||||
HTML := $(MARKDOWN:.md=.html)
|
||||
|
||||
DATE ?= $(shell date --rfc-email)
|
||||
VERSION ?= $(shell git symbolic-ref --short HEAD 2>/dev/null)/$(shell git rev-list --count HEAD 2>/dev/null)/$(shell git rev-parse --short=8 HEAD 2>/dev/null)
|
||||
export DATE VERSION
|
||||
|
||||
.PHONY: all checksums docs rsc clean
|
||||
|
||||
all: checksums docs rsc
|
||||
|
|
|
|||
|
|
@ -18,4 +18,7 @@ markdown -f toc,idanchor "${1}" | sed \
|
|||
-e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||
|
||||
printf '</body></html>'
|
||||
sed \
|
||||
-e "s|__DATE__|${DATE:-$(date --rfc-email)}|" \
|
||||
-e "s|__VERSION__|${VERSION:-unknown}|" \
|
||||
< "${0}.d/foot.html"
|
||||
|
|
|
|||
4
contrib/html.sh.d/foot.html
Normal file
4
contrib/html.sh.d/foot.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
<p class="foot">RouterOS Scripts documentation generated on <i>__DATE__</i> for <i>__VERSION__</i></p>
|
||||
|
||||
</body></html>
|
||||
|
|
@ -43,6 +43,10 @@ img.logo {
|
|||
float: left;
|
||||
border-radius: 50%;
|
||||
}
|
||||
p.foot {
|
||||
color: #777;
|
||||
text-align: center;
|
||||
}
|
||||
p.heading {
|
||||
margin: 0px;
|
||||
font-weight: bold;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue