#!/bin/bash

cat << EOT
<!DOCTYPE html>
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Documentation</title>
<link rel="stylesheet" type="text/css" media="all" href="http://www.entrouvert.com/static/eo/css/eo.css">
<link rel="stylesheet" type="text/css" media="all" href="/skin/eo.css">
<link rel="stylesheet" type="text/css" media="all" href="pandoc.css">
</head>
<body>
<h1 id="logo">
<a href="/"><img src="http://www.entrouvert.com/static/eo/img/logo.png" alt="Entr'ouvert"></a> U-Auth &mdash; Documentation</h1>
<dl class="doc-index">
EOT

for MD in install.md customize.md configuration-pfsense.md
do
	F=`basename $MD .md`
	TITLE=`head -1 $F.md | sed 's/.*-- //'`
cat << EOT
<dt><a href="$F.html">$TITLE</a>
 [<a href="$F.pdf">PDF</a>]</dt>
<dd><p></p></dd>
EOT
done

cat << EOT
</body>
</html>
EOT
