-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 12.02.2010 14:00, schrieb Václav Šmilauer: > Hello, > > I would like to show inheritance information in class signature. I am > currently only inserting plain text (https://www.yade-dem.org/sphinx/ > yade.wrapper.html#yade.wrapper.CpmMat), but the class names should be > hyperlinks to those base classes. I tried (without success) returning > list of nodes, putting markup inside the string etc, but with no > success. > > Can I get some pointers?
This has some layers to it -- autodoc directives generate reST again. Which means that you'd have to override the class directive's behavior when parsing its signature. Look at the parse_signature method of PythonDesc in sphinx.directives.desc. You will have to override that and re-register the "class" directive. Be advised though that these APIs will change dramatically in Sphinx 1.0; you may want to wait for it before experimenting. That said, why don't you add that info in the body? cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAkuBsRIACgkQN9GcIYhpnLAeDgCfRg6wJwrKLgUglvquZO9CDnC+ N/UAoJ09YpBcm1ugWE/AlpANl4uZavvy =zNHw -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
