File: gen_docs.sh

package info (click to toggle)
rst2pdf 0.104-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,036 kB
  • sloc: python: 10,511; sh: 95; makefile: 25
file content (14 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

rst2pdf manual.rst --custom-cover=assets/cover.tmpl -o output/pdf/manual.pdf -s assets/manual.yaml -b1

# Determine correct name for rst2man
RST2MAN="rst2man"
if [ -x "$(command -v rst2man.py)" ]; then
    RST2MAN="rst2man.py"
fi
$RST2MAN rst2pdf.rst output/rst2pdf.1

# set PYTHONPATH so we use the current contents of this repo, rather than our installed rst2pdf
PYTHONPATH=../ python rst2html-manual.py --stylesheet=assets/manual.css manual.rst output/html/manual.html
cp assets/biohazard.png output/html/assets/