diff --git a/doc/Makefile b/doc/Makefile index 4a3d9185a..94c0ee0e6 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -107,11 +107,10 @@ $(manual-pdfs): %.pdf: %.xml $(manual-pages-part-html): %.part.html: %.xml xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml5/docbook.xsl $< | \ perl -pe 'BEGIN {undef $$/} s/.*]*>(.*)<\/body\s*>.*/$$1/si' > $@ - rm -f $(dir $@)docbook.css + @rm -f $(dir $@)docbook.css $(manual-xmls) $(manual-pages-xml): %.xml: %.raw.wiki $(SCRIPTS_DIR)/wikiparser.py - $(SCRIPTS_DIR)/wikiparser.py --begin-marker="## BEGIN_INCLUDE" \ - --end-marker='## END_INCLUDE' $< | xmllint --format - > $@ + $(SCRIPTS_DIR)/wikiparser.py $< | xmllint --format - > $@ %.1: %.xml xmlto man $< diff --git a/doc/scripts/wikiparser.py b/doc/scripts/wikiparser.py index 141046bf2..4f49db34f 100755 --- a/doc/scripts/wikiparser.py +++ b/doc/scripts/wikiparser.py @@ -2047,9 +2047,9 @@ if __name__ == '__main__': help='Skip module doctests') parser.add_argument('--debug', action='store_true', help='Show parser output') - parser.add_argument('--begin-marker', default=None, + parser.add_argument('--begin-marker', default='## BEGIN_INCLUDE', help='Start parsing at this line') - parser.add_argument('--end-marker', default=None, + parser.add_argument('--end-marker', default='## END_INCLUDE', help='Stop parsing at this line') parser.add_argument('input', type=Path, nargs='*', help='input file path(s)')