fixed typos in documentation and made makefile build pdfs with rst2pdf

This commit is contained in:
Arvid Norberg 2008-10-17 17:31:20 +00:00
parent 5989c8a527
commit a599d9e8ec
3 changed files with 25 additions and 20 deletions

View File

@ -1,30 +1,34 @@
# this makefile assumes that you have docutils and rst2pdf installed
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
DOCUTILS = ~/docutils
TARGETS = index.html \
udp_tracker_protocol.html \
projects.html \
client_test.html \
manual.html \
building.html \
features.html \
examples.html \
extension_protocol.html \
dht_extensions.html \
libtorrent_plugins.html
all: $(TARGETS)
TARGETS = index \
udp_tracker_protocol \
client_test \
manual \
building \
features \
examples \
extension_protocol \
dht_extensions \
libtorrent_plugins \
python_binding \
projects
%.pdf:%.tex
pdflatex $?
html: $(TARGETS:=.html)
%.tex:%.rst
python $(DOCUTILS)/tools/rst2latex.py $? $@
pdf: $(TARGETS:=.pdf)
all: html
%.pdf:%.rst
rst2pdf $? -o $@
%.html:%.rst
python $(DOCUTILS)/tools/rst2html.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
cp $@ $(WEB_PATH)/$@
clean:
rm -f $(TARGETS) round_trip_distribution.log
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)

View File

@ -219,6 +219,7 @@ pause() resume() is_paused()
----------------------------
::
void pause();
void resume();
bool is_paused() const;

View File

@ -52,9 +52,9 @@ path used when you installed python as a second option. Like this::
The bindings require *at least* python version 2.2.
For more information on how to install and set up boost-build, see the
`building libtorrent`_ section.
`building libtorrent`__ section.
.. _`building libtorrent`: building.html#step-2-setup-bbv2
.. __: building.html#step-2-setup-bbv2
Once you have boost-build set up, you cd to the ``bindings/python``
directory and invoke ``bjam`` with the apropriate settings. For the available