|
51 | 51 | $Opts, #
|
52 | 52 | 'all', 'push', 'update!', #
|
53 | 53 | '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', |
55 | 55 | 'lenient', 'verbose', 'reload_template', 'resource=s@'
|
56 | 56 | ) || exit usage();
|
57 | 57 |
|
@@ -191,12 +191,15 @@ sub build_all {
|
191 | 191 | write_html_redirect( $build_dir->subdir( $_->{prefix} ),
|
192 | 192 | $_->{redirect} );
|
193 | 193 | }
|
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}; |
200 | 203 | }
|
201 | 204 |
|
202 | 205 | #===================================
|
@@ -625,6 +628,7 @@ sub usage {
|
625 | 628 | --lenient Ignore linking errors
|
626 | 629 | --lang Defaults to 'en'
|
627 | 630 | --resource Path to image dir - may be repeated
|
| 631 | + --skiplinkcheck Omit the step that checks for broken links |
628 | 632 |
|
629 | 633 | WARNING: Anything in the `out` dir will be deleted!
|
630 | 634 |
|
|
0 commit comments