tests/check-gendoc
author Boris Feld <boris.feld@octobus.net>
Sun, 08 Oct 2017 21:48:40 +0200
changeset 34522 bed1d2eaa108
parent 28809 7a1ad08b9ff5
child 41005 69c99898a48f
permissions -rwxr-xr-x
configitems: register 'merge.checkunknown' and 'merge.checkignored' They both use the same function defining a default, so we need to update them at the same time.

#!/bin/sh
HGENCODING=UTF-8
export HGENCODING

echo ".. -*- coding: utf-8 -*-" > gendoc.txt
echo "" >> gendoc.txt
LANGUAGE=$1 python "$TESTDIR/../doc/gendoc.py" >> gendoc.txt 2> /dev/null || exit

echo "checking for parse errors"
python "$TESTDIR/../doc/docchecker" gendoc.txt
python "$TESTDIR/../doc/runrst" html gendoc.txt /dev/null