On 2011-12-08, Martin Bless wrote:

> Q: How can I add a pure Docutils directive - that does not inherit
> from sphinx.util.compat.Directive - to Sphinx? Is that possible?

As the Sphinx config file is Python code, you could try to replicate the
steps otherwise done in a Docutils front-end, i.e. register the directive
with Docutils. I.e. in config.py::

  from docutils.parsers.rst import directives
  from wherever.you.store.it import your_directive

  directives.register_directive('code-block', your_directive)


untested.

Günter


-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to