3 # Perform sanity checks on documentation and build it.
9 sed -e '/^GIT_VERSION=/d' \
10 -e "/constant Gem::ConfigMap is deprecated/d" \
11 -e '/^ \* new asciidoc flags$/d' \
12 -e '/stripped namespace before processing/d' \
13 -e '/Attributed.*IDs for element/d' \
14 -e '/SyntaxWarning: invalid escape sequence/d' \
19 test -s "$1"/Documentation
/git.html
&&
20 test -s "$1"/Documentation
/git.xml
&&
21 test -s "$1"/Documentation
/git
.1 &&
22 grep "<meta name=\"generator\" content=\"$2 " "$1"/Documentation
/git.html
28 # Build docs with AsciiDoc
29 make doc
> >(tee stdout.log
) 2> >(tee stderr.raw
>&2)
31 filter_log stderr.raw
>stderr.log
35 rm -f stdout.log stderr.log stderr.raw
36 check_unignored_build_artifacts
38 # Build docs with AsciiDoctor
40 make USE_ASCIIDOCTOR
=1 doc
> >(tee stdout.log
) 2> >(tee stderr.raw
>&2)
42 filter_log stderr.raw
>stderr.log
44 check_docs . Asciidoctor
46 rm -f stdout.log stderr.log stderr.raw
47 check_unignored_build_artifacts
49 # Build docs with Meson and AsciiDoc
50 meson setup build-asciidoc
-Ddocs=html
,man
-Ddocs_backend=asciidoc
51 meson compile
-C build-asciidoc
52 check_docs build-asciidoc AsciiDoc
55 # Build docs with Meson and AsciiDoctor
56 meson setup build-asciidoctor
-Ddocs=html
,man
-Ddocs_backend=asciidoctor
57 meson compile
-C build-asciidoctor
58 check_docs build-asciidoctor Asciidoctor
59 rm -rf build-asciidoctor