Skip to content

Commit 520870c

Browse files
committed
Try rst2html.py too to render the docs
1 parent 580307f commit 520870c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
RST2HTML = $(shell which rst2html || which rst2html.py)
12
RSTCSS = $(shell python -c 'import docutils.writers.html4css1 as m; print m.Writer.default_stylesheet_path')
23
RSTOPTS = --stylesheet-path=style.css,$(RSTCSS) --initial-header-level=2
34

@@ -10,7 +11,7 @@ all : html
1011
html : $(HTML)
1112

1213
%.html: %.rst style.css
13-
rst2html $(RSTOPTS) $< $@
14+
$(RST2HTML) $(RSTOPTS) $< $@
1415

1516
clean:
1617
rm -f $(HTML)

0 commit comments

Comments
 (0)