How to add rel attribute to docutils sphinx reference in HTML output?
问题 I have a simple extension for the Sphinx documentation utility (my version in use isSphinx-1.1.3-py2.6). Very much like this excellent example by Doug Hellmann. How can I add a rel='bar' attribute to the final HTML for the tag? There seems to be a few ways to do this, but I couldn't find a simple one. Advise and tips are appreciated. The reference nodes are created in this fashion: node = nodes.reference(rawtext, utils.unescape(text), internal=False, refuri=ref, classes=['foocss'], rel='bar',