forked from concur/developer.concur.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_links.rb
45 lines (40 loc) · 1.4 KB
/
check_links.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'html-proofer'
SITE_DIRECTORY = './_site'
files_to_ignore = [
'./_site/akamai-sureroute-test-object.html',
'./_site/api-reference-deprecated/v3.html'
]
urls_to_ignore = [
'/docs/overviews/partner-applications.html',
'./_site/akamai-sureroute-test-object.html',
/^https:\/\/github.com\/concur\/developer.concur.com\/blob\/preview\/blog\/tag/,
/^https:\/\/www.concursolutions.com\/api/,
/^https:\/\/jekyllrb.com/,
/^https:\/\/concur.webex.com/,
/^https:\/\/tools.ietf.org/,
/^http:\/\/digitalbush.com\/projects\/masked-input-plugin/,
'https://speakerdeck.com/statik/complianceops-containers-in-regulated-environments',
'https://github.com/concur/developer.concur.com/commit/0',
'https://www.linkedin.com/company/5822',
'https://www.tcconline.com/listNumbersByCode.action?confCode=3608516019',
'https://open.concur.com',
'http://fortawesome.github.com/Font-Awesome/',
'http://fortawesome.github.io/Font-Awesome/icons/',
'http://matoilic.github.com/jquery.placeholder',
'http://runnable.com/UtWlKVi9ZnsnAABx/upload-receipts-to-concur-using-php-curl'
]
options = {
allow_hash_href: true,
check_img_http: true,
parallel: {
in_processes: 10
},
hydra: {
max_concurrency: 50
},
empty_alt_ignore: true,
file_ignore: files_to_ignore,
url_ignore: urls_to_ignore,
checks_to_ignore: ['ImageCheck', 'ScriptCheck']
}
HTMLProofer.check_directory(SITE_DIRECTORY, options).run