mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	check_help_documentation: Fix HelpDocumentationSpider._is_external_url.
Commitsd333ddb961anda766c092fc(#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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							4540a99959
						
					
				
				
					commit
					a914c8e53f
				
			@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user