Skip to content

Instantly share code, notes, and snippets.

@godfat
Created February 16, 2012 12:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save godfat/1844622 to your computer and use it in GitHub Desktop.
Save godfat/1844622 to your computer and use it in GitHub Desktop.
kramdown template
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
<title>The API Documentation</title>
<script type="text/javascript" src="http://yandex.st/highlightjs/6.1/highlight.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/default.min.css"/>
<script type="text/javascript">
var hilight_hljs = function(){
$('pre code').each(function(i, e){hljs.highlightBlock(e, ' ');});
};
var hilight_copy = function(){
$('.insert').each(function(index, element){
var e = $(element);
e.html($(e.html() + ' pre').parent().html());
});
};
$(document).ready(function(){
hilight_hljs();
hilight_copy();
});
</script>
</head>
<body>
<%= @body %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment