From d748c501c98f6ba16c3abd01ee26f385cc514a0f Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 5 Dec 2011 09:08:51 -0800 Subject: [PATCH] Fully automate building final HTML files from docs --- docs/build.sh | 7 +++--- docs/template.txt | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 docs/template.txt diff --git a/docs/build.sh b/docs/build.sh index a087da61..20802497 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -1,8 +1,9 @@ #!/bin/bash -rst2html.py ispc.txt > ispc.html -rst2html.py perf.txt > perf.html -rst2html.py faq.txt > faq.html +for i in ispc perf faq; do + rst2html.py --template=template.txt --link-stylesheet \ + --stylesheet-path=css/style.css $i.txt > $i.html +done #rst2latex --section-numbering --documentclass=article --documentoptions=DIV=9,10pt,letterpaper ispc.txt > ispc.tex #pdflatex ispc.tex diff --git a/docs/template.txt b/docs/template.txt new file mode 100644 index 00000000..a8254010 --- /dev/null +++ b/docs/template.txt @@ -0,0 +1,64 @@ +%(head_prefix)s +%(head)s + +%(stylesheet)s +%(body_prefix)s +
+
+ + +
+ +%(body_pre_docinfo)s +%(docinfo)s +
+%(body)s +
+
+ +
+
+
+%(body_suffix)s