Build HTML versions of the README and CHANGELOG files.

This commit is contained in:
Reece H. Dunn
2016-05-31 07:04:43 +01:00
parent e8952108e0
commit b0fc50b954
3 changed files with 67 additions and 0 deletions
+3
View File
@@ -28,6 +28,9 @@ tests/*.diff
docs/html/
CHANGELOG.html
README.html
# autotools output:
INSTALL
+10
View File
@@ -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
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width; initial-scale=1"/>
<meta name="robots" content="all"/>
<style type="text/css">
body
{
font-family: sans-serif;
font-size: 14px;
margin: 1em;
}
*:first-child
{
margin-top: 0;
}
code, pre
{
font-family: monospace;
background: #F7F7F7;
color: navy;
}
code
{
font-size: 85%;
padding: 0.2em;
}
pre
{
margin-left: 3em;
padding: 1em;
}
th
{
text-align: left;
}
hr
{
border: 0;
border-bottom: 1px solid #BBB;
}
</style>
</head>
<body>
<%= @body %>
</body>
</html>