]> git.ipfire.org Git - thirdparty/git.git/blame - ci/test-documentation.sh
Merge branch 'ez/doc-duplicated-words-fix' into maint
[thirdparty/git.git] / ci / test-documentation.sh
CommitLineData
505ad913 1#!/usr/bin/env bash
b98712b9
LS
2#
3# Perform sanity checks on documentation and build it.
4#
5
6set -e
7
8make check-builtins
9make check-docs
b98712b9 10
159e6010 11# Build docs with AsciiDoc
505ad913
LS
12make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
13! test -s stderr.log
b98712b9
LS
14test -s Documentation/git.html
15test -s Documentation/git.xml
16test -s Documentation/git.1
159e6010
LS
17grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
18
19# Build docs with AsciiDoctor
20make clean
505ad913
LS
21make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
22sed '/^GIT_VERSION = / d' stderr.log
23! test -s stderr.log
159e6010
LS
24test -s Documentation/git.html
25grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html