1
0
forked from GitHub/gf-rgl

Fix category imagemap in synopsis by splicing in final html

This commit is contained in:
John J. Camilleri
2018-11-13 09:38:39 +01:00
parent 2875730224
commit b2545333ba
3 changed files with 7 additions and 6 deletions

View File

@@ -43,12 +43,15 @@ index.html: index.txt $(TEMPLATE)
$@
mv $(TMP) $@
sed -i.bak "s/<table>/<table class=\"table w-auto\">/" $@ && rm "$@.bak"
sed -i.bak -e '/img src="categories.png"/r categories-imagemap.html' -e '/img src="categories.png"/d' $@ && rm "$@.bak"
categories.png: categories.dot
dot -Tpng $^ > $@
categories-imagemap.html: categories.dot
dot -Tcmapx $^ > $@
rm -f $@
echo '<img src="categories.png" usemap="#categories">' > $@
dot -Tcmapx $^ >> $@
api-examples.gfs: api-examples.txt MkExx.hs
runghc MkExx.hs < $< > $@