Skip to content

Commit

Permalink
docs: add a HTML template for markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
rhdunn committed Mar 15, 2015
1 parent 9a9fa4b commit 2a034ca
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ endif
.dot.svg: $<
dot -Tsvg $< | sed -n '4,9999p' > $@

.md.html:
kramdown $< > $@
%.html: %.md _layouts/webpage.html
kramdown --template _layouts/webpage.html $< > $@

############################# libcainteoir ####################################

Expand Down
54 changes: 54 additions & 0 deletions _layouts/webpage.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 2a034ca

Please sign in to comment.