Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit fea2a5b

Browse files
committed
Hardcode hosted URL for now
1 parent 51760a5 commit fea2a5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hoverxref/domains.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def _inject_hoverxref_data(self, env, refnode, typ, docname, docpath, labelid):
4848
url = refnode.get('refuri')
4949
if url:
5050
refnode._hoverxref.update({
51-
'data-url': url,
51+
# FIXME: data-url requires to use the full URL here. At this
52+
# point, we need to know the domain where the project is hosted
53+
'data-url': f'https://sphinx-hoverxref--146.org.readthedocs.build/en/146/{url}',
5254
})
5355
else:
5456
logger.info(

0 commit comments

Comments
 (0)