Skip to content

Commit c2571ed

Browse files
chalinymotongpoo
authored andcommitted
[CI] Warn about spec pages without level 1 headings (open-telemetry#6495)
1 parent 1f80696 commit c2571ed

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)