mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
documentation_crawler: Remove wrongly inverted skip_check_fragment flag.
Due to a missing `not`, this incorrectly skipped checking fragments for everything *other* than the /help documentation! Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a914c8e53f
commit
2bf20e02f2
@@ -184,7 +184,7 @@ class BaseDocumentationSpider(scrapy.Spider):
|
||||
"There is no local directory associated with the GitHub URL: %s", url
|
||||
)
|
||||
return
|
||||
elif getattr(self, "skip_check_fragment", False) and split_url.fragment != "":
|
||||
elif split_url.fragment != "":
|
||||
dont_filter = True
|
||||
callback = self.check_fragment
|
||||
if getattr(self, "skip_external", False) and self._is_external_link(url):
|
||||
|
@@ -75,14 +75,7 @@ with (
|
||||
),
|
||||
):
|
||||
ret_help_doc = subprocess.call(
|
||||
[
|
||||
"scrapy",
|
||||
"crawl_with_status",
|
||||
*extra_args,
|
||||
"-a",
|
||||
"skip_check_fragment=set",
|
||||
"help_documentation_crawler",
|
||||
],
|
||||
["scrapy", "crawl_with_status", *extra_args, "help_documentation_crawler"],
|
||||
cwd="tools/documentation_crawler",
|
||||
)
|
||||
extra_args += ["-a", "validate_html=set"]
|
||||
|
Reference in New Issue
Block a user