Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs check: Check only the file and directory GitHub urls of zulip/zulip.
Vishnu KS9b6d92d322cb
diff --git a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.pyindex ae7d6e6bd6c..dad7ff10865 100644--- a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py+++ b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py@@ -74,12 +74,15 @@ class BaseDocumentationSpider(scrapy.Spider):# homepage, there's no need to check those (which can# cause errors when chat.zulip.org is being updated).return True- if "zulip.readthedocs" in url or "zulip.com" in url or "zulip.org" in url or "github.com/zulip/zulip/" in url:+ if "zulip.readthedocs" in url or "zulip.com" in url or "zulip.org" in url:# We want CI to check any links to Zulip sites.return Falseif (len(url) > 4 and url[:4] == "file") or ("localhost" in url):# We also want CI to check any links to built documentation.return False+ if url.startswith(ZULIP_SERVER_GITHUB_FILE_URL_PREFIX) or url.startswith(ZULIP_SERVER_GITHUB_DIRECTORY_URL_PREFIX):+ # We can verify these links directly in the local git repo without making any requests to GitHub servers.+ return Falseif 'github.com/zulip' in url:# We want to check these links but due to rate limiting from GitHub, these checks often# fail in the CI. Thus, we should treat these as external links for now.