I will give it a try... Thanks.

Am Mittwoch, 6. Juli 2016 18:52:09 UTC+2 schrieb Komiya Takeshi:
>
> Hi,
>
> You can do it by generating `graphviz` node on your directive:
> from sphinx.ext.graphviz import graphviz
>
> class YourDirective(Directive):
>     def run(self):
>         ...
>         graph = graphviz('', code='digraph { ... }')
>         return [graph]
>
> Thanks,
>
> 2016年7月4日月曜日 8時27分09秒 UTC+9 Florian:
>>
>> Hi everyone,
>>
>> is there a way to "inline" replace a directive
>>
>> .. package-diagram::
>>    <some directive options>
>>
>> with
>>
>> .. graphviz::
>>
>>    digraph package_diagram{
>>       <dot representation of the diagram>
>>    }
>>
>> during the build process somehow?
>>
>> My actual use case is to run pylint/pyreverse on a package to generate 
>> the dot representation of the package diagram. I use an extension specific 
>> directive to trigger the pylint invokation (.. package-diagram::). After 
>> the dot code has been generated it needs to be considered with the graphviz 
>> directive (.. graphviz::) instead of the original extension directive (.. 
>> package-diagram::). https://github.com/fkromer/sphinxcontrib-pylint
>>
>> It would be great to get some support.
>>
>> Thanks in advance,
>> Florian
>>
>

-- 
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to