1
0
forked from GitHub/gf-rgl

Make HTML template a bit more generic

This commit is contained in:
John J. Camilleri
2018-11-13 21:46:28 +01:00
parent 20efc48e21
commit 7acbd54f2d
5 changed files with 18 additions and 10 deletions

View File

@@ -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) \
$@