]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
doc: Use commonmark for documentation format
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 17 Oct 2019 15:23:03 +0000 (17:23 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 17 Oct 2019 15:23:03 +0000 (17:23 +0200)
Markdown format behaves differently and the formatting of some headings
is wrong.

rpp-test-sw/commands/doc/Makefile

index bdd65b519d6060797f2732221c2f36f49e1f6e7a..47dd8521bd1217c17ef58164a3e533f7e0a1a5be 100644 (file)
@@ -22,7 +22,7 @@ docgen: $(OBJS)
 clean::
        rm -f $(OBJS) docgen
 
-markdown = $(shell if pandoc -h|grep -q markdown_strict; then echo markdown_strict; else echo markdown; fi)
+markdown = $(shell if pandoc -h|grep -q markdown_strict; then echo markdown_strict; else echo commonmark; fi)
 
 doc.mw: docgen
        (echo '<div class="toclimit-2" style="float: right; margin-left: 1em;">__TOC__</div>'; ./docgen wiki) | pandoc -f $(markdown) -t mediawiki > $@