I'm creating a Sphinx extension which just adds a custom docutils "role".  A
couple of questions:

1) What's the opinion of the list on whether to use a standard "role
function" or the CustomRole class in docutils.parsers.rst.roles.py?  Which
is better and why?
2) What's the best way to access a Sphinx config variable in my role
function/class?  Pass the Sphinx app object into the function/class in my
extensions setup function? Or is there a better way?

Thanks,
Kevin Horn

-- 
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.

Reply via email to