Merge pull request #100 from t-mat/gh-pages
"Include .md" functionality, by @t-mat
This commit is contained in:
commit
a63d5896fb
24
js/strapdown-hook.js
Normal file
24
js/strapdown-hook.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
$(document).ready(function() {
|
||||||
|
var strapdown = function() {
|
||||||
|
var script = document.createElement('script');
|
||||||
|
script.src = "strapdown/v/0.2/strapdown.js";
|
||||||
|
document.body.appendChild(script);
|
||||||
|
};
|
||||||
|
|
||||||
|
var xmpEl = $("xmp:first");
|
||||||
|
if(xmpEl) {
|
||||||
|
var xmpSrc = xmpEl.attr("src");
|
||||||
|
if(xmpSrc) {
|
||||||
|
$.ajax({
|
||||||
|
url : xmpSrc,
|
||||||
|
dataType : "text",
|
||||||
|
success : function(data) {
|
||||||
|
xmpEl.text(data);
|
||||||
|
strapdown();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
strapdown();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
73
lz4_Block_format.html
Normal file
73
lz4_Block_format.html
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||||
|
<title>LZ4 - Extremely fast compression</title>
|
||||||
|
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||||
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="js/bootstrap-patch.css">
|
||||||
|
</head>
|
||||||
|
<body style="padding-top:0; padding-bottom:0; ">
|
||||||
|
<nav class="navbar navbar-default">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="/">LZ4</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
|
<ul class="nav navbar-nav navbar-nav">
|
||||||
|
<li><a href="https://github.com/Cyan4973/lz4/releases/latest">Latest Release</a></li>
|
||||||
|
<li><a href="#interoperable-lz4">Versions</a></li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Index<span class="caret"></span></a>
|
||||||
|
<ul class="dropdown-menu" role="menu">
|
||||||
|
<li><a href="#benchmarks">Benchmarks</a></li>
|
||||||
|
<li><a href="#interoperable-lz4">Interoperable LZ4 versions</a></li>
|
||||||
|
<li><a href="#other-languages">Other Source versions</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
<li><a href="https://groups.google.com/forum/#!forum/lz4c">Public discussion forum</a></li>
|
||||||
|
<li><a href="https://github.com/Cyan4973/lz4/issues">Issue Tracker</a></li>
|
||||||
|
<li><a href="https://github.com/Cyan4973/lz4"><i class="fa fa-lg fa-github"></i> GitHub</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.navbar-collapse -->
|
||||||
|
</div><!-- /.container-fluid -->
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Add "src" attribute to include external Markdown file -->
|
||||||
|
<xmp theme="sandstone" style="display:none;" src="lz4_Block_format.md"></xmp>
|
||||||
|
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^ -->
|
||||||
|
|
||||||
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||||
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Add preprocess script for strapdown -->
|
||||||
|
<script src="js/strapdown-hook.js"></script>
|
||||||
|
<!-- ^^^^^^^^^^^^^^^^^^^^ -->
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user