Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2021-03-08 09:35:17 +0300
committerMarcel Amirault <mamirault@gitlab.com>2021-03-08 09:35:17 +0300
commitb3e1e220db24964778da7f9f7deda2d318c3acb2 (patch)
tree38445135e9a04e57f2a39a3a730c5707bccdf22d
parent9de400f759ba793bd5ad71ac7b11038bda8dc430 (diff)
Add exception for youtube due to rate limit
-rw-r--r--nanoc.yaml17
1 files changed, 9 insertions, 8 deletions
diff --git a/nanoc.yaml b/nanoc.yaml
index 9d38b4b6..c7a56596 100644
--- a/nanoc.yaml
+++ b/nanoc.yaml
@@ -90,7 +90,7 @@ checks:
# A list of patterns, specified as regular expressions, to exclude from the check.
# If an external link matches this pattern, the validity check will be skipped.
exclude:
- # Valid links incorrectly reported as broken
+ # Valid links incorrectly reported as broken.
- 'https:\/\/gitlab.com\/api\/v4\/.*'
- 'https:\/\/www\.linkedin\.com\/company\/gitlab-com'
- 'https:\/\/auth0\.com\/auth\/login'
@@ -102,19 +102,20 @@ checks:
- 'https:\/\/downloads\.raspberrypi\.org\/raspbian\/images\/'
- 'https:\/\/wiki\.jenkins\.io\/display\/JENKINS\/'
- 'https:\/\/twitter\.com\/gitlab'
- # Redirected links to ignore
+ # Redirected links to ignore.
- 'https:\/\/www\.jaegertracing\.io\/docs\/latest\/'
- # Don't check links matching the following patterns
+ # Don't check links matching the following patterns.
- 'https?:\/\/\w*\.example\.com.*'
- 'https?:\/\/localhost.*'
- 'https?:\/\/127.0.0.1.*'
- # Don't check gitlab.com links due to cloudflare thinking the link test is a dos attack
- # Temporary solution to enable external link checker
+ # Don't check gitlab.com links. Cloudflare thinks the link test is a DOS attack.
+ # The temporary solution is to exclude them from link testing.
- 'https:\/\/gitlab.com.*'
- # Don't check github.com links due to GitHub rate limiting causing 429 errors
- # Temporary solution to enable external link checker
+ # Some sites rate limit requests, causing 429 errors.
+ # The temporary solution is to exclude them from link testing.
- 'https:\/\/github.com\/.*'
-
+ - 'https:\/\/www.youtube.com\/.*'
+ - 'https:\/\/youtu.be\/.*'
# A list of file patterns, specified as regular expressions, to exclude from the check.
# If a file matches this pattern, the links from this file will not be checked.