Just realized over night that function directive already exists in the default python domain and that's why you get the second error. Try to give it different name.

Vilibald.

On 07/10/2014 12:59 AM, Vilibald wrote:
Hi,
I don't see anything wrong, my code for adding directive looks almost
the same, just to make sure you are actually adding 'function' like this
app.add.directive('function', FunctionDirective) right and the
FunctionDirective has a base class Directive from sphinx.util.compat.

Really just brainstorming as it seems ok. Maybe posting more surrounding
code would help me.

Vilibald

On 07/09/2014 11:04 PM, Deborah Rezanka wrote:
Hi, I am trying to register a directive with a related role.  When I
use app.add.directive (function, FunctionDirective) I get  'KeyError:
u'function'

When I use app.add_crossref_type('function', 'func', 'single: %s',
None, GetRole()) where GetRole is a custom method I get ERROR: Error
in 'function' directive: no content permitted.  has_content = True is
in the FunctionDirective class.

Any ideas?
Thanks, D. Rezanka




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

Reply via email to