We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 924890e commit 4bb0a4dCopy full SHA for 4bb0a4d
tests/extension/_check.py
@@ -43,6 +43,7 @@ def check_link_targets(root: Path) -> int:
43
total += 1
44
return total
45
46
+
47
def check_reference_targets_exist(root: Path):
48
site_docs = {
49
p: BeautifulSoup(p.read_text("utf-8"), "html.parser")
@@ -61,6 +62,7 @@ def check_reference_targets_exist(root: Path):
61
62
f" link for `{link.string}` in {doc.relative_to(root)!s}!"
63
)
64
65
66
def gather_ids(soup: BeautifulSoup) -> set:
67
"""Gather all HTML IDs from a given page."""
68
return {tag["id"] for tag in soup.find_all(id=True)}
0 commit comments