mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 21:38:03 +02:00
check: Allow unprefix type names in the title
Some documentation sections use the type name as the title, and we don't want to use that title as a link.
This commit is contained in:
parent
f0466ecf7d
commit
8a1944f45b
1 changed files with 1 additions and 3 deletions
|
|
@ -17,8 +17,6 @@ echo Checking documentation for incorrect syntax
|
|||
|
||||
cd "$srcdir"
|
||||
|
||||
# Note: this test is also run from doc/public/ to check the SGML files
|
||||
|
||||
if test "x$SGML_DOCS" = x; then
|
||||
FILES=$all_cairo_files
|
||||
if test "x$FILES" = x; then
|
||||
|
|
@ -44,7 +42,7 @@ else
|
|||
type_regexp='\(.'$type_regexp'\)\|\('$type_regexp'.\)'
|
||||
fi
|
||||
|
||||
if echo $FILES | xargs grep . /dev/null | sed -e '/<programlisting>/,/<\/programlisting>/d' | grep "$type_regexp" | grep -v '#####'; then
|
||||
if echo $FILES | xargs grep . /dev/null | sed -e '/<programlisting>/,/<\/programlisting>/d' | grep -v "@Title" | grep "$type_regexp" | grep -v '#####'; then
|
||||
stat=1
|
||||
echo Error: some type names in the docs are not prefixed by hash sign,
|
||||
echo neither are the only token in the doc line followed by colon.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue