Fix making of "sources.html"

Uses same template as synopsis, maybe this shoudl be generalised a bit
This commit is contained in:
John J. Camilleri committed 2018-11-13 09:50:10 +01:00
1 parent b2545333ba
commit 20efc48e21
9 files changed
+58 -219

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
TMP=tmp.html
TEMPLATE=../synopsis/template.html
ROOT=../..
sources.html: sources.txt $(TEMPLATE)
txt2tags --target=html --no-headers --quiet --toc --outfile=$@ --infile=$<
pandoc \
--from=html \
--to=html5 \
--standalone \
--template=$(TEMPLATE) \
--metadata='title:"More modules in the GF Resource Grammar Library"' \
--variable='rel-root:$(ROOT)/..' \
--output=$(TMP) \
$@
mv $(TMP) $@
sed -i.bak "s/<table>/<table class=\"table w-auto\">/" $@ && rm "$@.bak"