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) $@ mv $(TMP) $@
sed -i.bak "s/<table>/<table class=\"table w-auto\">/" $@ && rm "$@.bak" 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 categories.png: categories.dot
dot -Tpng $^ > $@ dot -Tpng $^ > $@
categories-imagemap.html: categories.dot 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 api-examples.gfs: api-examples.txt MkExx.hs
runghc MkExx.hs < $< > $@ runghc MkExx.hs < $< > $@

View File

@@ -8,7 +8,6 @@ of //C// that takes //D// as an argument. What the constructors exactly are,
and what other arguments they take, is described by separate tables for and what other arguments they take, is described by separate tables for
each category. each category.
[categories.png]
%!include(html): ''categories-imagemap.html'' %!include(html): ''categories-imagemap.html''

View File

@@ -64,15 +64,14 @@ use the resource modules.
Other relevant documents: Other relevant documents:
- [The RGL Status Document ./status.html]: the current status of different languages - [The RGL Status Document ../status.html]: the current status of different languages
and the authors of each grammar and the authors of each grammar
- [The Resource Grammar Library coverage map http://www.postcrashgames.com/gf_world/] - [The Resource Grammar Library coverage map http://www.postcrashgames.com/gf_world/]
- [RGL Documentation and Publications ./rgl-publications.html]: links to publications and other documentation - [RGL Documentation and Publications ../rgl-publications.html]: links to publications and other documentation
- [More modules gfdoc/sources.html]: extra modules, dictionaries, and - [More modules gfdoc/sources.html]: extra modules, dictionaries, and
the internals of the resource grammar the internals of the resource grammar
- [Internal abstract syntax ./absfuns.html]: synopsis of internal - [Internal abstract syntax ../absfuns.html]: synopsis of internal
abstract functions and their Universal Dependency labels abstract functions and their Universal Dependency labels
- [RGL Source Browser ./browse]: look up functions and their source code
- [Minibar http://cloud.grammaticalframework.org/minibar/minibar.html]: - [Minibar http://cloud.grammaticalframework.org/minibar/minibar.html]:
find resource grammar expressions by parsing (select Grammar: LibraryBrowser) find resource grammar expressions by parsing (select Grammar: LibraryBrowser)
or test translations between all languages (select Grammar: ResourceDemo) or test translations between all languages (select Grammar: ResourceDemo)