-
Notifications
You must be signed in to change notification settings - Fork 20
/
mkdoc
executable file
·29 lines (23 loc) · 657 Bytes
/
mkdoc
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
# Check if one parameter or none
if [ $# == 0 ] ; then
TYPE='html'
elif [ $# == 1 ] ; then
TYPE="$1"
else
echo 'usage: mkdir html | latex | latexpdf'
exit 1
fi
# add root directory to PYTHONPATH so Sphinx will find all the modules
export PYTHONPATH=`pwd`:$PTHONPATH
# generate module stubs
sphinx-apidoc -f -M -o docs/source --tocfile FPIDjango.modules FPIDjango
sphinx-apidoc -f -M -o docs/source --tocfile fpiweb.modules fpiweb
sphinx-apidoc -f -M -o docs/source --tocfile StandaloneTools.modules StandaloneTools
# bash script to run the new Sphinx build
pushd .
cd docs
make $TYPE
popd
# echo $PYTHONPATH
# EOF