forked from cloudposse/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htmltest.yml
67 lines (49 loc) · 1.95 KB
/
.htmltest.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Directory to scan for HTML files.
DirectoryPath: "test/"
# The file to look for when linking to a directory.
DirectoryIndex: "index.html"
# Extension of your HTML documents, includes the dot. If FilePath is set we use the extension from that.
FileExtension: ".html"
# Enables checking the document type declaration.
CheckDoctype: true
# Enables checking <a… tags.
CheckAnchors: true
# Enables checking <link… tags.
CheckLinks: true
# Enables checking <img… tags
CheckImages: true
# Enables checking <script… tags.
CheckScripts: true
# Fails when encountering an http:// link. Useful to prevent mixed content errors when serving over HTTPS.
EnforceHTTPS: false
HTTPHeaders:
User-Agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
Referer: "https://docs.cloudposse.com/"
# Turns off image alt attribute checking.
IgnoreAltMissing: true
# Turns off errors for links to directories without a trailing slash.
IgnoreDirectoryMissingTrailingSlash: true
# When true prevents raising an error for links with href="#".
IgnoreInternalEmptyHash: true
# Array of regexs of URLs to ignore.
IgnoreURLs:
# LinkedIn blocks all crawlers and AWS
- "linkedin.com"
# Related to: https://github.com/wjdp/htmltest/issues/89
- "marketplace.visualstudio.com"
# Rate limiting precludes us from testing badge shields
- "img.shields.io"
# Rate limiting precludes us from testing GitHub links
- "github.com/cloudposse/docs/blob"
# Site started blocking us
- "blog.gopheracademy.com"
# Array of regexs of directories to ignore when scanning for HTML files.
IgnoreDirs:
- "revealjs"
# Cache validity period, accepts go.time duration strings (…"m", "h").
# Two-weeks = 336 Hours
CacheExpires: "336h"
# Directory to store cache and log files in. Relative to executing directory.
OutputDir: tmp/.htmltest
# Maximum number of open HTTP connections (keep this low to avoid GitHub rate limits)
HTTPConcurrencyLimit: 2