File: builddocs

package info (click to toggle)
pymc 2.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,096 kB
  • ctags: 2,838
  • sloc: python: 14,620; fortran: 6,225; ansic: 614; makefile: 165; sh: 24
file content (29 lines) | stat: -rwxr-xr-x 1,557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# To run the following correctly, you will need a patched version of docutils to enable support for
# math directives.
# There is a dummy module in docs named distributions.py that imports all the PyMC likelihoods.
# By introspection, epydoc finds the related docstrings and creates a tex output. This way,
# we avoid documenting all the stuff that lives in the real pymc.distributions.py

# epydoc --verbose --debug --config epydoc.conf


# Make manual
cd docs

#cat distributions-module.tex | ./extract.py -s '\\subsection\{Functions\}' -o distributions-module.text
#sed -i -e 's/0\.5\\fboxrule/1pt/g' distributions-module.tex

python rst2latex.py ../README.rst --use-latex-toc --no-section-numbering | ./extract.py -s '%___________________________________________________________________________' -e  '\\end\{document\}' -o README.tex
python rst2latex.py ../INSTALL.rst --use-latex-toc --no-section-numbering | ./extract.py -s '%___________________________________________________________________________' -e '\\end\{document\}' -o INSTALL.tex
python rst2latex.py ../pymc/database/README.txt --use-latex-toc --no-section-numbering | ./extract.py -s '%___________________________________________________________________________' -e '\\end\{document\}' -o database.tex

mkdir pdf
# User Guide
pdflatex -output-directory=pdf -interaction batchmode UserGuide
bibtex pdf/UserGuide
pdflatex -output-directory=pdf -interaction batchmode UserGuide
pdflatex -output-directory=pdf -interaction batchmode UserGuide
cp pdf/UserGuide.pdf .

cd ..