mirror of https://github.com/docker/docs.git
updated docs.docker.com absolute links test
Signed-off-by: Adrien Duermael <adrien@duermael.com>
This commit is contained in:
parent
f708addd41
commit
da5c4d2479
|
@ -91,7 +91,7 @@ func testURLs(htmlBytes []byte) error {
|
|||
|
||||
// there's an url to test!
|
||||
if url != "" {
|
||||
if strings.Contains(url, "docs.docker.com") {
|
||||
if strings.HasPrefix(url, "http://docs.docker.com") || strings.HasPrefix(url, "https://docs.docker.com") {
|
||||
return errors.New("found absolute link: " + t.String())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue