mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
updated docs.docker.com absolute links test
Signed-off-by: Adrien Duermael <adrien@duermael.com>
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user