#!/bin/bash

set -e

parentdir=$(basename $(dirname $(pwd -P)))
currentdir=$(basename $(pwd -P))

test "$currentdir" != Gpxity && (
	echo you must be in Gpxity
	echo you are in "$parentdir/$currentdir"
	exit 2
)

# if you rebuild them, add this to gpxity.activity module:
#	        :exclude-members: loading, isloading

#rm -f build/html/_sources/gpxity*rst.txt
#
#sphinx-apidoc -M -f -o source  ../gpxity

cd doc

make html
