Skip to content

Commit

Permalink
refactor: Log a debug message for unresolved optional references
Browse files Browse the repository at this point in the history
This can help identify external references that could be resolved by loading additional inventories.
  • Loading branch information
pawamoy committed Jan 10, 2025
1 parent d195e41 commit 9e990d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mkdocs_autorefs/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def inner(match: Match) -> str:
url = _find_url(identifiers, url_mapper)
except KeyError:
if optional:
log.debug("Unresolved optional cross-reference: %s", identifier)
if hover:
return f'<span title="{identifier}">{title}</span>'
return title
Expand Down

0 comments on commit 9e990d7

Please sign in to comment.