From 5e2c9f8ef8dd97f95a6da56ea1d6fea7bd89b611 Mon Sep 17 00:00:00 2001
From: Robin Gareus
Date: Wed, 6 Apr 2016 18:23:25 +0200
Subject: [PATCH] lua-doc: generate ardour-manual (template) directly
---
tools/fmt-luadoc.php | 40 +++++++++++++++++++++++++++++++++++-----
tools/update_luadoc.sh | 12 +++++++++---
2 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/tools/fmt-luadoc.php b/tools/fmt-luadoc.php
index 712c8b0887..2656b7e330 100755
--- a/tools/fmt-luadoc.php
+++ b/tools/fmt-luadoc.php
@@ -16,6 +16,13 @@
# 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
+}
+
################################################################################
################################################################################
@@ -642,6 +649,8 @@ function format_class_members ($ns, $cl, &$dups) {
################################################################################
# Start Output
+if ($HTMLOUTPUT) {
+
?>
@@ -705,7 +714,26 @@ div.luafooter { text-align:center; font-size:80%; color: #888; margin: 2em
-
+
+
+
+---
+layout: default
+style: luadoc
+title: Class Reference
+---
+
+
+This documention is far from complete may be inaccurate and subject to change.
+
+
+
@@ -923,8 +951,10 @@ fwrite (STDERR, "Found $dox_found annotations. missing: $dox_miss\n");
?>
+
-
-
-
+if ($HTMLOUTPUT) {
+ echo ''.NL;
+ echo '