tests/check-gendoc
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 29 Oct 2019 11:07:25 +0100
branchstable
changeset 43348 daa3b58906d5
parent 41015 69c99898a48f
permissions -rwxr-xr-x
formatting: drop `grey`, our custom black version Now that the official black has all we want, we can drop this.

#!/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