Skip to content
Snippets Groups Projects
Commit 208592f2 authored by Denis Smirnov's avatar Denis Smirnov Committed by Yaroslav Dynnikov
Browse files

fix: svg reference hook

Previously we returned a false positive warning for references interactive
SVG files like `path`, cause we expected to have only `path#fragment`.
Fixed.
parent b38ea979
No related branches found
No related tags found
1 merge request!363fix: correct svg file paths in the hooks
Pipeline #36336 passed
......@@ -76,7 +76,7 @@ def on_files(files: Files, config: MkDocsConfig):
log.warning(f"PAGE NOT FOUND @ {svg_path}: {path}")
continue
if url.fragment not in config["anchors"][path]:
if url.fragment and url.fragment not in config["anchors"][path]:
log.warning(f"BROKEN ANCHOR @ {svg_path}: #{url.fragment}")
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment