Skip to content

Commit b9b7d09

Browse files
authored
[DOCS] Added --nolinkcheck parameter (#261)
* [DOCS] Added --nolinkcheck parameter * [DOCS] Addressed feedback about -nolinkcheck option * [DOCS] Changed nolinkcheck to skiplinkcheck
1 parent 0014b02 commit b9b7d09

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

build_docs.pl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ BEGIN
5151
$Opts, #
5252
'all', 'push', 'update!', #
5353
'single', 'pdf', 'doc=s', 'out=s', 'toc', 'chunk=i',
54-
'open', 'staging', 'procs=i', 'user=s', 'lang=s',
54+
'open', 'skiplinkcheck', 'staging', 'procs=i', 'user=s', 'lang=s',
5555
'lenient', 'verbose', 'reload_template', 'resource=s@'
5656
) || exit usage();
5757

@@ -191,12 +191,15 @@ sub build_all {
191191
write_html_redirect( $build_dir->subdir( $_->{prefix} ),
192192
$_->{redirect} );
193193
}
194-
195-
say "Checking links";
196-
check_links($build_dir);
197-
198-
push_changes($build_dir)
199-
if $Opts->{push};
194+
if ( $Opts->{skiplinkcheck} ) {
195+
say "Skipped Checking links";
196+
}
197+
else {
198+
say "Checking links";
199+
check_links($build_dir);
200+
}
201+
push_changes($build_dir)
202+
if $Opts->{push};
200203
}
201204

202205
#===================================
@@ -625,6 +628,7 @@ sub usage {
625628
--lenient Ignore linking errors
626629
--lang Defaults to 'en'
627630
--resource Path to image dir - may be repeated
631+
--skiplinkcheck Omit the step that checks for broken links
628632
629633
WARNING: Anything in the `out` dir will be deleted!
630634

0 commit comments

Comments
 (0)