We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcf98fd commit 112c520Copy full SHA for 112c520
quartodoc/builder/collect.py
@@ -39,10 +39,19 @@ def exit(self, el: layout.Doc):
39
p_el = page_node.value
40
41
uri = f"{self.base_dir}/{p_el.path}.html#{el.anchor}"
42
+
43
+ # item corresponding to the specified path ----
44
+ # e.g. this might be a top-level import
45
self.items.append(
46
layout.Item(name=el.obj.path, obj=el.obj, uri=uri, dispname=None)
47
)
48
49
+ # item corresponding to the canonical path ----
50
+ # this is where the object is defined (which may be deep in a submodule)
51
+ self.items.append(
52
+ layout.Item(name=el.obj.canonical_path, obj=el.obj, uri=uri, dispname=None)
53
+ )
54
55
return el
56
57
@dispatch
0 commit comments