build_docs 225 Bytes
Newer Older
lavado's avatar
lavado committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

flavour=html

if [ "$1" ]; then
    if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
        flavour=help
    else
        flavour="$1"
    fi
    shift
fi

cd docs

sphinx-build -M "$flavour" . _build "$@"