diff options
author | Keith Packard <keithp@keithp.com> | 2015-11-13 23:36:02 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-11-13 23:36:02 -0800 |
commit | 19f700f1c99d2f3dcd8775cc629037312d853ee1 (patch) | |
tree | 9a2e77f5f9813ae0b76cf1fff5fb890950f60e24 /doc/make-am-html | |
parent | 688c5ee98565a25e77c8618e1957ed3b8eff5a56 (diff) |
doc: Construct html index for documentation
This gets uploaded to keith's machine as an easy way to see what's available.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc/make-am-html')
-rwxr-xr-x | doc/make-am-html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/make-am-html b/doc/make-am-html new file mode 100755 index 00000000..ad8cb0a2 --- /dev/null +++ b/doc/make-am-html @@ -0,0 +1,30 @@ +#!/bin/sh +cat << 'EOF' +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content= +"text/html; charset=utf-8" /> +<title>Altus Metrum Documentation</title> +<link rel="stylesheet" type="text/css" href="am.css" /> +<meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /> +</head> +<body> +<h1>Altus Metrum Documentation</h1> +EOF + +for i in "$@"; do + echo '<p>' + grep '<title>' $i | head -1 | sed -e 's/.*<title>//' -e 's;</title>.*;;' + pdf=`basename "$i" .html`.pdf + echo '<a href="'$i'">html</a>' + echo '<a href="'$pdf'">pdf</a>' + echo '</p>' +done + +cat << 'EOF' +</body> +</html> +EOF |