Guide de montage du vhéliotech
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Minimal makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line, and also
|
|
|
|
# from the environment for the first two.
|
|
|
|
SPHINXOPTS ?=
|
|
|
|
SPHINXBUILD ?= sphinx-build
|
|
|
|
SOURCEDIR = source
|
|
|
|
BUILDDIR = build
|
|
|
|
|
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
|
|
|
.PHONY: help Makefile
|
|
|
|
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile
|
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
|
|
|
# Default make weasyprint target has a bug so we have to call it manually on the generated index.html file
|
|
|
|
# After that, extract table of content data from the pdf and generate a .tex file
|
|
|
|
# Then generate a toc.pdf from the .tex file
|
|
|
|
# And put them together in a .pdf file
|
|
|
|
# After all, clean up
|
|
|
|
pdf: weasyprint
|
|
|
|
weasyprint build/weasyprint/index.html build/weasyprint/index.pdf -s source/css/print-theme.css
|
|
|
|
./pdftoc-to-latex build/weasyprint/index.pdf > build/weasyprint/toc.tex
|
|
|
|
- pdflatex -interaction nonstopmode -output-directory=build/weasyprint build/weasyprint/toc.tex
|
|
|
|
pdftk A=build/weasyprint/index.pdf B=build/weasyprint/toc.pdf cat A1 B A2-end output build/weasyprint/vheliotech.pdf
|
|
|
|
rm build/weasyprint/index.pdf build/weasyprint/toc.tex build/weasyprint/toc.pdf build/weasyprint/GuidedemontageVheliotech.pdf
|