Skip to content

Commit

Permalink
fix broken link log message
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsdvl committed Nov 12, 2024
1 parent 6ebc34f commit f04b70c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/mkdocs_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,9 @@ def path_to_url(self, url: str) -> str:
assert target_uri is not None
assert target_file is not None
if target_file.inclusion.is_excluded():
target = target_uri
link_error = LINKED_PAGE_EXCLUDED
self.add_broken_link(LINKED_PAGE_EXCLUDED, target_uri, None)

path = utils.get_relative_url(target_file.url, self.file.url)
self.add_broken_link(link_error, target, None)
return urlunsplit(('', '', path, query, fragment))


Expand Down

0 comments on commit f04b70c

Please sign in to comment.