Skip to content

Commit e8704df

Browse files
WispySparksanishathalye
authored andcommitted
Add option to disable the external link checker
1 parent e09d904 commit e8704df

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ See below for a [full example](#full-example).
2727
| `allow_missing_href` | Allow anchors with missing href tags | false |
2828
| `enforce_https` | Require that links use HTTPS | true |
2929
| `swap_urls` | JSON-encoded map of URL rewrite rules | (empty) |
30+
| `disable_external` | Disables the external link checker | false |
3031
| `ignore_url` | Newline-separated list of URLs to ignore | (empty) |
3132
| `ignore_url_re` | Newline-separated list of URL regexes to ignore | (empty) |
3233
| `connect_timeout` | HTTP connection timeout | 30 |

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ inputs:
4848
timeout:
4949
description: HTTP request timeout
5050
required: false
51+
disable_external:
52+
description: Disables the external link checker
53+
required: false
5154
ignore_url:
5255
description: Newline-separated list of URLs to ignore
5356
required: false

proof-html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def get_str(name)
7171
},
7272
:timeout => get_int("TIMEOUT", 120),
7373
},
74+
:disable_external => get_bool("DISABLE_EXTERNAL", false),
7475
:ignore_urls => ignore_url,
7576
:swap_urls => swap_urls,
7677
}

0 commit comments

Comments
 (0)