Skip to content

Commit

Permalink
check-index
Browse files Browse the repository at this point in the history
  • Loading branch information
jll63 committed Apr 21, 2024
1 parent 485ba96 commit c50fd44
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dev/check-index
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/python3

import mdgen

from pathlib import Path

refs = set("home reference static_object virtual_ptr-final".split())

with open(mdgen.repository.joinpath("docs.in", "README.md")) as ref:
for line in ref.readlines():
if line.startswith("| ->"):
refs.add(line.split()[1].replace("->", ""))

for ref in mdgen.hrefs:
if ref not in refs:
print(ref)

0 comments on commit c50fd44

Please sign in to comment.