Docgen-mdwn use title and toc
authorMyhailo Danylenko <isbear@ukrpost.net>
Fri, 15 Jul 2011 19:50:50 +0300
changeset 41 3f6a76c8fbc8
parent 40 33ea13cef185
child 42 61d0ab29f17f
Docgen-mdwn use title and toc * meta-title * toc * these are ikiwiki directives, though
docgen.pl
--- a/docgen.pl	Tue Jul 12 07:28:06 2011 +0300
+++ b/docgen.pl	Fri Jul 15 19:50:50 2011 +0300
@@ -183,6 +183,14 @@
 	print OUTPUT "</body>\n</html>";
 
 } elsif ( $opt_f eq 'mdwn' ) {
+	
+	print OUTPUT <<HEADER
+
+[[!meta title="$opt_t"]]
+
+[[!toc]]
+HEADER
+;
 
 	foreach my $file ( sort keys %docs ) {
 		print OUTPUT "\n\n- - -";