check_help_documentation: Fix HelpDocumentationSpider._is_external_url.

Commits d333ddb961 and
a766c092fc (#35621) broke this by
changing the base class from UnusedImagesLinterSpider to
BaseDocumentationSpider.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-09-03 15:44:25 -07:00
committed by Tim Abbott
parent 4540a99959
commit a914c8e53f

View File

@@ -48,6 +48,10 @@ class HelpDocumentationSpider(BaseDocumentationSpider):
deny_domains: list[str] = []
deny = ["/policies/privacy"]
@override
def _is_external_url(self, url: str) -> bool:
return not f"{url}/".startswith("http://localhost:9981/help/") or self._has_extension(url)
class APIDocumentationSpider(UnusedImagesLinterSpider):
name = "api_documentation_crawler"