Hi all, I know this is an old thread, but I have a very similar need: how can I add :ref: links in highlighted code?
I'm currently evaluating Sphinx as an authoring tool for the manual of a non-Python code library. In highlighted code blocks I would need to link from the calls to the library's functions to the page in the docs where that function is documented. Any idea whether that is possible in Sphinx? It would be similar to the Qt example mentioned in this thread, but the difference is that in my case there's no "autodoc" feature used to document the functions in my library's source. Thanks in advance for any pointers, Stephan On Monday, February 27, 2012 11:51:18 PM UTC+1, Bryan A. Jones wrote: > > All, > > Is there some way for hilighted source code to include hyperlinks to > classes/variables/etc that have been documented? So that > > .. function:: foo() > > A function. > > > :: > foo() # Would be nice if foo() were hyperlinked in the resulting .html > > > Bryan > -- > Bryan A. Jones, Ph.D. > Associate Professor > Department of Electrical and Computer Engineering > 231 Simrall / PO Box 9571 > Mississippi State University > Mississippi state, MS 39762 > http://www.ece.msstate.edu/~bjones > bjones AT ece DOT msstate DOT edu > voice 662-325-3149 > fax 662-325-2298 > > Our Master, Jesus Christ, is on his way. He'll show up right on > time, his arrival guaranteed by the Blessed and Undisputed Ruler, > High King, High God. > - 1 Tim. 6:14b-15 (The Message) > > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
