generate rst instead of html for reference documentation. This allows for RST markup in comments

This commit is contained in:
Arvid Norberg
2013-07-24 05:04:46 +00:00
parent c0da76ac84
commit e7804d717f
5 changed files with 146 additions and 89 deletions

View File

@@ -22,11 +22,25 @@ TARGETS = index \
running_tests \
utp \
tuning \
hacking
hacking \
reference \
reference-Core \
reference-String \
reference-Network \
reference-Plugins \
reference-Create_Torrents \
reference-Error_codes \
reference-Time \
reference-Storage \
reference-File \
reference-Utility \
reference-Bencoding \
reference-Alerts \
reference-RSS
FIGURES = read_disk_buffers write_disk_buffers troubleshooting
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html reference.html
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
@@ -37,7 +51,7 @@ all: html
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
python gen_todo.py
reference.html:gen_reference_doc.py ../include/libtorrent/*.hpp
reference.rst:gen_reference_doc.py ../include/libtorrent/*.hpp
python gen_reference_doc.py
%.epub:%.rst