forked from GitHub/gf-rgl
Make HTML template a bit more generic
This commit is contained in:
@@ -2,14 +2,16 @@ TMP=tmp.html
|
||||
TEMPLATE=../synopsis/template.html
|
||||
ROOT=../..
|
||||
|
||||
TITLE=$(shell head -n 1 sources.txt)
|
||||
sources.html: sources.txt $(TEMPLATE)
|
||||
txt2tags --target=html --no-headers --quiet --toc --outfile=$@ --infile=$<
|
||||
txt2tags --target=html --no-headers --quiet --outfile=$@ --infile=$<
|
||||
pandoc \
|
||||
--from=html \
|
||||
--to=html5 \
|
||||
--standalone \
|
||||
--template=$(TEMPLATE) \
|
||||
--metadata='title:"More modules in the GF Resource Grammar Library"' \
|
||||
--metadata='title:"$(TITLE)"' \
|
||||
--variable='lang:en' \
|
||||
--variable='rel-root:$(ROOT)/..' \
|
||||
--output=$(TMP) \
|
||||
$@
|
||||
|
||||
Reference in New Issue
Block a user