Skip to content

Commit 262aa95

Browse files
authored
[CI] Warn about spec pages without level 1 headings (#6495)
1 parent 3c38c33 commit 262aa95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/content-modules/adjust-pages.pl

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ ()
155155
# printf STDOUT "$ARGV Got:$lineNum: $_" if $gD;
156156

157157
if ($file ne $ARGV) {
158+
# Did the previous file not have a title?
159+
warn "WARN: $file: no level 1 heading found, so no page will be generated"
160+
if $file && $lineNum && ! $title;
158161
$file = $ARGV;
159162
$frontMatterFromFile = '';
160163
$title = '';

0 commit comments

Comments
 (0)