Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolving name conflicts in references in Sphinx with intersphinx

I am writing docs for my python library Using sphinx, I also added another sphinx documentation with intersphinx. And it works pretty nice, but a few my functions are named the same as in referenced documentation, which leads to shadowing their names for :func:... referencing.

Is there any way I can reference shadowed function do_some() in other documentation? (:func:`do_some` creates a link to my function do_some())

like image 547
Suor Avatar asked Feb 03 '13 11:02

Suor


1 Answers

According to the docs you can use the identifier from your intersphinx_mapping as a prefix to the target. Example:

:ref:`comparison manual <python:comparisons>`

I think this should work with work with functions too.

like image 102
bmu Avatar answered Sep 25 '22 11:09

bmu