I appreciate the report... that said, I'm a little unclear on what the
Right Way to fix this is. sphinx.ext.pngmath appears to reference a
self.builder.imgpath in render_math, but app.builder.imgpath doesn't
appear to exist when process_graphviz_nodes is called from the doctree-
resolved hook:

WARNING: /home/cduffy/fvte/doc/concepts.rst:53: (ERROR/3) Exception
occured evaluating graphviz expression:
AttributeError: 'StandaloneHTMLBuilder' object has no attribute
'imgpath'

WARNING: /home/cduffy/fvte/doc/index.rst:: (ERROR/3) Exception occured
evaluating graphviz expression:
AttributeError: 'LaTeXBuilder' object has no attribute 'imgpath'

Given such, I'm rather curious about why imgpath is available for
pngmath's use.

On Sep 12, 7:04 am, "Kent Tenney" <[EMAIL PROTECTED]> wrote:
> On my machine I found I had to adjust the path to the img.
>
> The directive generated
> src="_images/graphviz/82395 ...
>
> I had to prepend ../ to the file path;
> src="../_images/graphviz/82395 ...
>
> Thanks,
> Kent
>
> On Tue, Sep 9, 2008 at 3:45 PM, Charles Duffy <[EMAIL PROTECTED]> wrote:
> > Per subject. This is my first attempt at a Sphinx extension, so I'm
> > certain there's plenty of room for improvement; see attached.
>
> > Usage is as follows:
>
> > .. graphviz::
> >  strict digraph {
> >    foo -> bar -> baz;
> >    foo -> qux;
> >  }
>
> > This in rendered into PNG (for use with HTML), PDF (for use with LaTeX)
> > and postscript.
>
> > Please let me know if there are improvements I could make which would
> > allow this extension to be merged into Sphinx proper. Thanks!
>
>
--~--~---------~--~----~------------~-------~--~----~
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