Mercurial > hg
diff doc/Makefile @ 10971:cbe400a8e217
doc: add generic frontend to rst2man and rst2html
This will allow us to easily register new roles and directives.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Thu, 22 Apr 2010 09:57:04 +0200 |
parents | 091dddf05764 |
children | a0c5f531daab |
line wrap: on
line diff
--- a/doc/Makefile Wed Apr 21 01:34:12 2010 +0200 +++ b/doc/Makefile Thu Apr 22 09:57:04 2010 +0200 @@ -6,7 +6,6 @@ MANDIR=$(PREFIX)/share/man INSTALL=install -c -m 644 PYTHON=python -RST2HTML=$(shell which rst2html 2> /dev/null || echo rst2html.py) export LANGUAGE=C export LC_ALL=C @@ -25,11 +24,11 @@ mv $@.tmp $@ %: %.txt common.txt - $(PYTHON) rst2man.py --halt warning \ + $(PYTHON) runrst manpage --halt warning \ --strip-elements-with-class htmlonly $*.txt $* %.html: %.txt common.txt - $(RST2HTML) --halt warning \ + $(PYTHON) runrst html --halt warning \ --link-stylesheet --stylesheet-path style.css $*.txt $*.html MANIFEST: man html