From b0fc50b954c00c1e2ac1f4c0e72888a8f60e0f12 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Tue, 31 May 2016 07:02:37 +0100 Subject: [PATCH] Build HTML versions of the README and CHANGELOG files. --- .gitignore | 3 +++ Makefile.am | 10 ++++++++ _layouts/webpage.html | 54 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 _layouts/webpage.html diff --git a/.gitignore b/.gitignore index 5c0c2bac..02824e99 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,9 @@ tests/*.diff docs/html/ +CHANGELOG.html +README.html + # autotools output: INSTALL diff --git a/Makefile.am b/Makefile.am index c509d1b5..b879b80a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -76,9 +76,19 @@ data/ucd/UnicodeData.txt: ############################# documentation ################################### +SUFFIXES=.html .md + +.md.html: _layouts/webpage.html + cat $< | sed -e 's/\.md)/.html)/g' | \ + kramdown --template _layouts/webpage.html > $@ + html: doxygen docs/ucd-tools.conf +docs: html \ + CHANGELOG.html \ + README.html + ############################# libucd ########################################## tools/ucd.py: data/ucd/PropertyValueAliases.txt diff --git a/_layouts/webpage.html b/_layouts/webpage.html new file mode 100644 index 00000000..bf4677b0 --- /dev/null +++ b/_layouts/webpage.html @@ -0,0 +1,54 @@ + + + + + + + + + +<%= @body %> + +