111
111
doc/en/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide))
112
112
$(rst2html) --stylesheet=../../default.css doc/en/user-guide/index.txt $@
114
# Set the paper size for PDF files.
115
# Options: 'a4' (ISO A4 size), 'letter' (US Letter size)
117
PDF_DOCS := doc/en/user-guide/user-guide.$(PAPERSIZE).pdf
119
# Copy and modify the RST sources, and convert SVG images to PDF
120
# files for use a images in the LaTeX-generated PDF.
121
# Then generate the PDF output from the modified RST sources.
122
doc/en/user-guide/user-guide.$(PAPERSIZE).pdf: $(wildcard $(addsuffix /*.txt, doc/en/user-guide))
123
mkdir -p doc/en/user-guide/latex_prepared
124
$(PYTHON) tools/prepare_for_latex.py \
125
--out-dir=doc/en/user-guide/latex_prepared \
126
--in-dir=doc/en/user-guide
127
cd doc/en/user-guide/latex_prepared && \
128
$(PYTHON) ../../../../tools/rst2pdf.py \
129
--documentoptions=10pt,$(PAPERSIZE)paper \
130
--input-encoding=UTF-8:strict --output-encoding=UTF-8:strict \
131
--strict --title="Bazaar User Guide" \
132
index.txt ../user-guide.$(PAPERSIZE).pdf
114
134
doc/developers/%.html: doc/developers/%.txt
115
135
$(rst2html) --stylesheet=../default.css $< $@
164
184
$(PYTHON) tools/win32/ostools.py copytree $(WEB_DOCS) $(HTMLDIR)
186
# Produce PDF documents. Requires pdfLaTeX, rubber, and Inkscape.
187
pdf-docs: $(PDF_DOCS)
166
189
# clean produced docs
168
191
$(PYTHON) tools/win32/ostools.py remove $(ALL_DOCS) \
169
$(HTMLDIR) $(derived_txt_files)
192
$(HTMLDIR) $(derived_txt_files)
193
rm -f doc/en/user-guide/*.pdf
194
rm -rf doc/en/user-guide/latex_prepared
172
197
### Windows Support ###