<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to use a Sphinx extension (PlantUML) for library documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1bd6a04e69/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1bd6a04e69/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1bd6a04e69/</id><updated>2020-06-24T12:36:48.631000Z</updated><subtitle>Recent posts to How to use a Sphinx extension (PlantUML) for library documentation</subtitle><entry><title>How to use a Sphinx extension (PlantUML) for library documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1bd6a04e69/?limit=25#9bb1" rel="alternate"/><published>2020-06-24T12:36:48.631000Z</published><updated>2020-06-24T12:36:48.631000Z</updated><author><name>hhuebner</name><uri>https://forge.codesys.com/u/hhuebner/</uri></author><id>https://forge.codesys.comb5e96d57ef6f32f6c9e2b569ed104cdc40dcfc47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone&lt;br/&gt;
I would like to use PlantUML diagrams as an additional element for the library documentation.&lt;br/&gt;
&lt;a href="https://plantuml.com" rel="nofollow"&gt;https://plantuml.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is a Sphinx extension for this. &lt;br/&gt;
&lt;a href="https://pypi.org/project/sphinxcontrib-plantuml/" rel="nofollow"&gt;https://pypi.org/project/sphinxcontrib-plantuml/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have tried the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A directory "sphinxcontrib" was created in the directory "&amp;lt;Codesys installation directory&amp;gt;\CODESYS\DocScripting\3.5.11.0\contrib".&lt;/li&gt;
&lt;li&gt;The file "plantuml.py" was copied to "&amp;lt;Codesys installation directory&amp;gt;\CODESYS\DocScripting\3.5.11.0\contrib\sphinxcontrib".&lt;/li&gt;
&lt;li&gt;The file "plantuml.jar" has been copied to "c:\plantuml\plantuml.jar".&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The file "&amp;lt;Codesys installation directory&amp;gt;\CODESYS\DocScripting\3.5.11.0\templates\conf.py" has been modified as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The section "extensions" has been extended by "'sphinxcontrib.plantuml',"&lt;/li&gt;
&lt;li&gt;The section "plantuml" was added with the value "'java -jar c:\plantuml\plantuml.jar'"&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The sections of the configuration:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    &lt;span class="n"&gt;extensions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'sphinx.ext.todo'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="s1"&gt;'sphinx.ext.codesys'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="s1"&gt;'sphinx.ext.mathjax'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="s1"&gt;'sphinxcontrib.plantuml'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="o"&gt;#&lt;/span&gt; &lt;span class="s1"&gt;'sphinx.ext.intersphinx'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="o"&gt;#&lt;/span&gt; &lt;span class="s1"&gt;'sphinx.ext.extlinks'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="n"&gt;todo_include_todos&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;False&lt;/span&gt;

    &lt;span class="n"&gt;plantuml&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'java -jar c:\plantuml\plantuml.jar'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Unfortunately it is still not possible to use the ".. uml::" directive. The error "Unknown directive type uml" is always reported.&lt;/p&gt;
&lt;p&gt;Am I doing something wrong or is it impossible to use Sphinx extensions with Codesys?&lt;/p&gt;
&lt;p&gt;Many Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>