sphinx_gallery.docs_resolv¶
Link resolver objects¶
Functions¶
-
sphinx_gallery.docs_resolv.
embed_code_links
(app, exception)[source]¶ Embed hyperlinks to documentation into example code
Classes¶
-
class
sphinx_gallery.docs_resolv.
SphinxDocLinkResolver
(doc_url, gallery_dir, relative=False)[source]¶ Resolve documentation links using searchindex.js generated by Sphinx
Parameters: -
resolve
(cobj, this_url)[source]¶ Resolve the link to the documentation, returns None if not found
Parameters: - cobj (dict) – Dict with information about the “code object” for which we are resolving a link. cobj[‘name’] : function or class name (str) cobj[‘module_short’] : shortened module name (str) cobj[‘module’] : module name (str)
- this_url (str) – URL of the current page. Needed to construct relative URLs (only used if relative=True in constructor).
Returns: link – The link (URL) to the documentation.
Return type:
-