fixed typos in documentation and made makefile build pdfs with rst2pdf
This commit is contained in:
@@ -1,30 +1,34 @@
|
|||||||
|
# this makefile assumes that you have docutils and rst2pdf installed
|
||||||
|
|
||||||
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
|
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
|
||||||
DOCUTILS = ~/docutils
|
DOCUTILS = ~/docutils
|
||||||
|
|
||||||
TARGETS = index.html \
|
TARGETS = index \
|
||||||
udp_tracker_protocol.html \
|
udp_tracker_protocol \
|
||||||
projects.html \
|
client_test \
|
||||||
client_test.html \
|
manual \
|
||||||
manual.html \
|
building \
|
||||||
building.html \
|
features \
|
||||||
features.html \
|
examples \
|
||||||
examples.html \
|
extension_protocol \
|
||||||
extension_protocol.html \
|
dht_extensions \
|
||||||
dht_extensions.html \
|
libtorrent_plugins \
|
||||||
libtorrent_plugins.html
|
python_binding \
|
||||||
|
projects
|
||||||
|
|
||||||
all: $(TARGETS)
|
html: $(TARGETS:=.html)
|
||||||
|
|
||||||
%.pdf:%.tex
|
pdf: $(TARGETS:=.pdf)
|
||||||
pdflatex $?
|
|
||||||
|
|
||||||
%.tex:%.rst
|
all: html
|
||||||
python $(DOCUTILS)/tools/rst2latex.py $? $@
|
|
||||||
|
%.pdf:%.rst
|
||||||
|
rst2pdf $? -o $@
|
||||||
|
|
||||||
%.html:%.rst
|
%.html:%.rst
|
||||||
python $(DOCUTILS)/tools/rst2html.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
|
python $(DOCUTILS)/tools/rst2html.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
|
||||||
cp $@ $(WEB_PATH)/$@
|
cp $@ $(WEB_PATH)/$@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGETS) round_trip_distribution.log
|
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)
|
||||||
|
|
||||||
|
@@ -219,6 +219,7 @@ pause() resume() is_paused()
|
|||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
void pause();
|
void pause();
|
||||||
void resume();
|
void resume();
|
||||||
bool is_paused() const;
|
bool is_paused() const;
|
||||||
|
@@ -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.
|
The bindings require *at least* python version 2.2.
|
||||||
|
|
||||||
For more information on how to install and set up boost-build, see the
|
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``
|
Once you have boost-build set up, you cd to the ``bindings/python``
|
||||||
directory and invoke ``bjam`` with the apropriate settings. For the available
|
directory and invoke ``bjam`` with the apropriate settings. For the available
|
||||||
|
Reference in New Issue
Block a user