Hi,

Good to know. BTW, you need to declare the dependency using 
app.setup_extension().
http://www.sphinx-doc.org/en/stable/extdev/appapi.html#sphinx.application.Sphinx.setup_extension

2016年7月7日木曜日 21時42分38秒 UTC+9 Florian:
>
> It seems to work (
> https://github.com/fkromer/sphinxcontrib-pylint/commit/a2fc984a6bdab3927031a589d23cb0017629636b
> ).
> Thanks a lot.
>
> Am Donnerstag, 7. Juli 2016 11:36:19 UTC+2 schrieb Florian:
>>
>> 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