Fully automate building final HTML files from docs
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rst2html.py ispc.txt > ispc.html
|
for i in ispc perf faq; do
|
||||||
rst2html.py perf.txt > perf.html
|
rst2html.py --template=template.txt --link-stylesheet \
|
||||||
rst2html.py faq.txt > faq.html
|
--stylesheet-path=css/style.css $i.txt > $i.html
|
||||||
|
done
|
||||||
|
|
||||||
#rst2latex --section-numbering --documentclass=article --documentoptions=DIV=9,10pt,letterpaper ispc.txt > ispc.tex
|
#rst2latex --section-numbering --documentclass=article --documentoptions=DIV=9,10pt,letterpaper ispc.txt > ispc.tex
|
||||||
#pdflatex ispc.tex
|
#pdflatex ispc.tex
|
||||||
|
|||||||
64
docs/template.txt
Normal file
64
docs/template.txt
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
%(head_prefix)s
|
||||||
|
%(head)s
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var _gaq = _gaq || [];
|
||||||
|
_gaq.push(['_setAccount', 'UA-1486404-4']);
|
||||||
|
_gaq.push(['_trackPageview']);
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
|
})();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
%(stylesheet)s
|
||||||
|
%(body_prefix)s
|
||||||
|
<div id="wrap">
|
||||||
|
<div id="wrap2">
|
||||||
|
<div id="header">
|
||||||
|
<h1 id="logo">Intel SPMD Program Compiler</h1>
|
||||||
|
<div id="slogan">An open-source compiler for high-performance SIMD programming on
|
||||||
|
the CPU</div>
|
||||||
|
</div>
|
||||||
|
<div id="nav">
|
||||||
|
<div id="nbar">
|
||||||
|
<ul>
|
||||||
|
<li id="selected"><a href="index.html">Home</a></li>
|
||||||
|
<li><a href="downloads.html">Downloads</a></li>
|
||||||
|
<li><a href="example.html">Example</a></li>
|
||||||
|
<li><a href="ispc.html">User's Guide</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="content-wrap">
|
||||||
|
<div id="sidebar">
|
||||||
|
<div class="widgetspace">
|
||||||
|
<h1>Resources</h1>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><a href="http://github.com/ispc/ispc/">ispc page on github</a></li>
|
||||||
|
<li><a href="http://groups.google.com/group/ispc-users/">ispc
|
||||||
|
users mailing list</a></li>
|
||||||
|
<li><a href="http://groups.google.com/group/ispc-dev/">ispc
|
||||||
|
developers mailing list</a></li>
|
||||||
|
<li><a href="http://github.com/ispc/ispc/wiki/">Wiki</a></li>
|
||||||
|
<li><a href="http://github.com/ispc/ispc/issues/">Bug tracking</a></li>
|
||||||
|
<li><a href="doxygen/index.html">Doxygen documentation of
|
||||||
|
<tt>ispc</tt> source code</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
%(body_pre_docinfo)s
|
||||||
|
%(docinfo)s
|
||||||
|
<div id="content">
|
||||||
|
%(body)s
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
<div id="footer"> © 2011 <strong>Intel Corporation</strong> | Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | ClearBlue by: <a href="http://www.themebin.com/">ThemeBin</a>
|
||||||
|
<!-- Please Do Not remove this link, thank u -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
%(body_suffix)s
|
||||||
Reference in New Issue
Block a user