# php tools/fmt-luadoc.php > /tmp/luadoc.html
#
+$options = getopt("m");
+if (isset ($options['m'])) {
+ $HTMLOUTPUT = false; ## set to false to output ardour-manual
+} else {
+ $HTMLOUTPUT = true; ## set to false to output ardour-manual
+}
+
################################################################################
################################################################################
################################################################################
# Start Output
+if ($HTMLOUTPUT) {
+
?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
</p>
</div>
-<!-- #### SNIP #### !-->
+<!-- #### SNIP #### !-->
+
+<?php
+
+} else {
+
+?>
+---
+layout: default
+style: luadoc
+title: Class Reference
+---
+
+<p class="warning">
+This documention is far from complete may be inaccurate and subject to change.
+</p>
+
+<?php
+}
+?>
<div id="luaref">
?>
</div>
<div class="luafooter">Ardour <?=$ardourversion?> - <?=date('r')?></div>
+<?php
-<!-- #### SNIP #### !-->
-
-</body>
-</html>
+if ($HTMLOUTPUT) {
+ echo '<!-- #### SNIP #### !-->'.NL;
+ echo '</body>'.NL;
+ echo '</html>'.NL;
+}