mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
help-documentation-tool: Add tools for checking user help documentation.
- Add spider for documentation crawler, which processes user help documentation on test development server. - Add tool script for help documentation checking launching. Fixes #2639
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
from .common.spiders import BaseDocumentationSpider
|
||||
|
||||
|
||||
class HelpDocumentationSpider(BaseDocumentationSpider):
|
||||
name = "help_documentation_crawler"
|
||||
start_urls = ['http://localhost:9981/help']
|
||||
deny_domains = [] # type: List[str]
|
||||
|
||||
def _is_external_url(self, url):
|
||||
# type: (str) -> bool
|
||||
is_external = url.startswith('http') and 'localhost:9981/help' not in url
|
||||
return is_external or self._has_extension(url)
|
||||
Reference in New Issue
Block a user