From: Ryota MIBU Date: Mon, 21 Dec 2015 10:59:37 +0000 (+0900) Subject: Allow doc-build.sh to ignore D000 of doc8 X-Git-Tag: test-tag~9^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=9523e313ab822e982764cbdaac0cdac15750e64d Allow doc-build.sh to ignore D000 of doc8 http://lists.opnfv.org/pipermail/opnfv-tech-discuss/2015-December/007286.html Change-Id: Icfdb356566918b7d5c55fbf5eb24b4c8570d32f4 Signed-off-by: Ryota MIBU --- diff --git a/utils/docs-build.sh b/utils/docs-build.sh index fc607fa15..5f9eeee69 100755 --- a/utils/docs-build.sh +++ b/utils/docs-build.sh @@ -48,7 +48,7 @@ function check_rst_doc() { # Note: This check may fail in many jobs for building project docs, since # the old sample has lines more than 120. We ignore failures on this # check right now, but these have to be fixed before OPNFV B release. - _out=$(doc8 --max-line-length 120 "$_src") || { + _out=$(doc8 --max-line-length 120 --ignore D000 "$_src") || { _msg='Error: rst validatino (doc8) has failed, please fix the following error(s).' _errs=$(echo "$_out" | sed -n -e "/^$_src/s/^/ /p") echo