summaryrefslogtreecommitdiff
path: root/doc/make_doc.sh
blob: a76f568bfc15fcaa6e471fa98ca1725bc12f9b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
godotHome=$(dirname "$here")
docTarget=${here}/html/class_list
toolsRoot=${godotHome}/tools

throw() {
    echo "$@" >&2
    exit 1
}

[ -d "$docTarget" ] || mkdir -p "$docTarget" || throw "Could not create doc target $docTarget"

cd "$docTarget"
python ${toolsRoot}/docdump/makehtml.py -multipage ${here}/base/classes.xml
cd "$here"