On 2011-02-05, cognacc wrote:
> On Feb 5, 9:01 pm, Guenter Milde <mi...@users.berlios.de> wrote:
>> On 2011-02-05, cognacc wrote:

>> > .. graphviz::
>> >    :includefile: graph.gviz

...


>> Maybe something similar works for graphviz, too
>> (but as "graphviz" is non-standard anyway, ...).

> Isnt graphviz a sphinx supported extension?

I don't know the level of support, but (in contrast to ``.. raw::``) it
is an extension, not part of the reStructuredText core defined in 
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html
and http://docutils.sourceforge.net/docs/ref/rst/directives.html

However, the proposed extension is already part of the raw directive:

   Raw data can also be read from an external file, specified in a
   directive option. In this case, the content block must be empty. For
   example::
   
    .. raw:: html
       :file: inclusion.html
   
   The following options are recognized:
   
   file: string (newlines removed)
       The local filesystem path of a raw data file to be included.
   url: string (whitespace removed)
       An Internet URL reference to a raw data file to be included.
   encoding: name of text encoding
       The text encoding of the external raw data (file or URL). Defaults
       to the document's encoding (if specified). 
       
   -- 
http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw-data-pass-through
   
If the graphviz extension is adding an option to get the content from a
file or url, it should use the same syntax (i.e. :file:).
File an enhancement ticket.

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