1
0
forked from GitHub/gf-rgl

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
2018-11-13 09:50:10 +01:00
parent b2545333ba
commit 20efc48e21
9 changed files with 58 additions and 219 deletions

17
doc/gfdoc/Makefile Normal file
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"