<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/</id><updated>2020-02-27T13:47:54.986000Z</updated><subtitle>Recent posts to Script your Documentation</subtitle><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#9964" rel="alternate"/><published>2020-02-27T13:47:54.986000Z</published><updated>2020-02-27T13:47:54.986000Z</updated><author><name>r.evbatyrov</name><uri>https://forge.codesys.com/u/r-evbatyrov/</uri></author><id>https://forge.codesys.com2a1969b59875ea48018064b12bbd493697a44192</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Oleg,&lt;/p&gt;
&lt;p&gt;it is theoretically possible, but somewhat complicated.&lt;/p&gt;
&lt;p&gt;First, your documentation should be compiled to CHM format.&lt;br/&gt;
In your installation Folder there is a \CODESYS\Online Help\Extensions\$PROFILE$ folder with structure and urlmapping files in XML format. Your CHM files has to be in some Language folder and the structure file has to be modifed in that way to point to specific entries in the CHM files. That is called merging and is what some OEMs do.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Roman&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#0a9e" rel="alternate"/><published>2020-02-27T13:47:54.929000Z</published><updated>2020-02-27T13:47:54.929000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com9701e4e4608b5439b920ff205da73b42d6c37e68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; OW_RPi&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I followed the instruction of "Script your Documentation" and generated the documetation files.&lt;/p&gt;
&lt;p&gt;How to add my documentation to the context-sensitive help now?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Oleg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#26ac" rel="alternate"/><published>2020-02-27T13:47:54.884000Z</published><updated>2020-02-27T13:47:54.884000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.comdf6f6a624448d5e64d8dab02a286d5e29794b8ac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found the answer to most of my questions myself &lt;/p&gt;
&lt;p&gt;So I have to specify the attributes which should be cleaned in the clean.conf&lt;br/&gt;
xyz.json from doc-export&lt;br/&gt;
"libdoc clean" command in the command line (specification with the "clean.conf" file)&lt;br/&gt;
xyz_cleaned.json will be created&lt;br/&gt;
"libdoc generate" command to get the Frame&lt;/p&gt;
&lt;p&gt;One question is left.&lt;br/&gt;
I s it possible to define some parts of the rst with different attributes ?&lt;/p&gt;
&lt;p&gt;{attribute 'hide_on_zzz'}&lt;br/&gt;
/// clean this section if zzz is the attribute&lt;br/&gt;
{attribute 'hide_on_yyy'}&lt;br/&gt;
/// clean this section if yyy is the attribute&lt;br/&gt;
///&lt;br/&gt;
/// | This text should always show up in the documentation:&lt;br/&gt;
/// | prog prog prog&lt;br/&gt;
/// | tock tock tock and so on&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#dc4b" rel="alternate"/><published>2020-02-27T13:47:54.837000Z</published><updated>2020-02-27T13:47:54.837000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.comfc5c8ac52f919d5220744972488f8614daba88d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;M.Keller hat geschrieben:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;perhaps it is a stupid question, but I am not familiar with attributes and access specifier.&lt;br/&gt;
Is there any Dokument or Tutorial for the use of the attributes?&lt;/p&gt;
&lt;p&gt;I know that i can use compiler defines as an attribute.&lt;br/&gt;
So i tell (write a keyword in the project -&amp;gt; properties -&amp;gt; compiler definitions) the Programm which attributes to use.&lt;br/&gt;
And in the Code there i use {IF defined(compiler definition)}.&lt;/p&gt;
&lt;p&gt;But how does it work with the restructured Text ? And where do I specify which attribute I want to use ?&lt;/p&gt;
&lt;p&gt;Yours sincerely&lt;br/&gt;
Florian&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#a32d" rel="alternate"/><published>2020-02-27T13:47:54.787000Z</published><updated>2020-02-27T13:47:54.787000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.coma71ba8162e9fb86993e3949e5de6e702e5d55985</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will send the files in a few days. Until now the merge process isn't this important for me.&lt;/p&gt;
&lt;p&gt;At the moment I'm working on the template .rst files in DocScripting/3.5.5.0/templates.&lt;/p&gt;
&lt;p&gt;The template folder.rst lists the actual toctree with the code:&lt;/p&gt;
&lt;p&gt;{% if toc %}&lt;br/&gt;
.. toctree::&lt;br/&gt;
   :maxdepth: 1&lt;/p&gt;
&lt;p&gt;{% for t in toc %}&lt;br/&gt;
   {{ t }}&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;{% endif %}&lt;/p&gt;
&lt;p&gt;My target is to sort the items in the toc after their type.&lt;br/&gt;
Something like &lt;/p&gt;
&lt;h1 id="fbs"&gt;FBs&lt;/h1&gt;
&lt;p&gt;Eintrag_1&lt;br/&gt;
Eintrag_2&lt;/p&gt;
&lt;h1 id="folders"&gt;Folders&lt;/h1&gt;
&lt;p&gt;Folder_1&lt;br/&gt;
Folder_2&lt;/p&gt;
&lt;p&gt;Is that possible ?&lt;/p&gt;
&lt;p&gt;Is there a dokumentation for the properties of the different objekts ?&lt;br/&gt;
Like:&lt;br/&gt;
&amp;lt;libdoc.content.fparticle object="" at="" 0x032d0a30=""&amp;gt;&lt;br/&gt;
&amp;lt;libdoc.content.content 0x03276190="" object="" at=""&amp;gt;&amp;lt;/libdoc.content.content&amp;gt;&amp;lt;/libdoc.content.fparticle&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#7d85" rel="alternate"/><published>2020-02-27T13:47:54.743000Z</published><updated>2020-02-27T13:47:54.743000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com1f05a01f9babe0b6dd5931cfb946cfc5c4d66dba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Infusion.&lt;/p&gt;
&lt;p&gt;It seems there is some inconsistency between the files. We need to have a look at the files to find your problem.&lt;/p&gt;
&lt;p&gt;Could you send an eMail with the problem description, the library and the generated content to the CODESYS support?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#05c0" rel="alternate"/><published>2020-02-27T13:47:54.694000Z</published><updated>2020-02-27T13:47:54.694000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.comec303a90be6b3ab59238e385921d28490d9c89e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Another failure occured &lt;/p&gt;
&lt;p&gt;when I want to merge my Content and my Frame.&lt;br/&gt;
In the command line I type this:&lt;br/&gt;
libdoc merge %JsonFilePath% Frame Source&lt;/p&gt;
&lt;p&gt;so I change my directory to the folder I work in and there I search for the .json File &lt;br/&gt;
--&amp;gt; JsonFilePath&lt;/p&gt;
&lt;p&gt;also the Frame nad the Source folder are in this Path.&lt;/p&gt;
&lt;p&gt;But I get the followinf Error message:&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br/&gt;
  File "&amp;lt;string&amp;gt;", line 126, in &amp;lt;module&amp;gt;&lt;br/&gt;
  File "&amp;lt;string&amp;gt;", line 121, in main&lt;br/&gt;
  File "D:\Development\Python\LibDoc-3\build\libdoc\out00-PYZ.pyz\libdoc.merge",&lt;br/&gt;
 line 75, in merge&lt;br/&gt;
  File "D:\Development\Python\LibDoc-3\build\libdoc\out00-PYZ.pyz\libdoc.merge",&lt;br/&gt;
 line 127, in _merge_file&lt;br/&gt;
  File "D:\Development\Python\LibDoc-3\build\libdoc\out00-PYZ.pyz\jinja2.environ&lt;br/&gt;
ment", line 969, in render&lt;br/&gt;
  File "D:\Development\Python\LibDoc-3\build\libdoc\out00-PYZ.pyz\jinja2.environ&lt;br/&gt;
ment", line 742, in handle_exception&lt;br/&gt;
  File "&amp;lt;template&amp;gt;", line 22, in top-level template code&lt;br/&gt;
  File "D:\Development\Python\LibDoc-3\build\libdoc\out00-PYZ.pyz\jinja2.environ&lt;br/&gt;
ment", line 397, in getattr&lt;br/&gt;
jinja2.exceptions.UndefinedError: 'particle' is undefined&lt;br/&gt;
Drücken Sie eine beliebige Taste . . .&amp;lt;/template&amp;gt;&amp;lt;/string&amp;gt;&amp;lt;/module&amp;gt;&amp;lt;/string&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#ea2b" rel="alternate"/><published>2020-02-27T13:47:54.649000Z</published><updated>2020-02-27T13:47:54.649000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.com6b2607a8f88d0592395e98d96fe9bc0fe4c39999</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will try the attributes as soon as possible.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#f634" rel="alternate"/><published>2020-02-27T13:47:54.604000Z</published><updated>2020-02-27T13:47:54.604000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.coma470891281f537fa0f295891cf4e674335f7cc26</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi  Infusion.&lt;/p&gt;
&lt;p&gt;The attribute 'libdoc_include' is deprecated.&lt;/p&gt;
&lt;p&gt;Use the following methods to exclude the parts which you don't want in your documentation:&lt;br/&gt;
- Attribute 'hide'&lt;br/&gt;
- Attribute 'conditional_show'&lt;br/&gt;
- Access specifier PRIVATE&lt;br/&gt;
- Access specifier INTERNAL&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script your Documentation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c3ed8a972d/?limit=25#d86c" rel="alternate"/><published>2020-02-27T13:47:54.552000Z</published><updated>2020-02-27T13:47:54.552000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.com4503e3c414c1e3d8a3e2b898811e3b591856a97d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I wodered about the use of {attribute 'libdoc_include'}&lt;/p&gt;
&lt;p&gt;At my programm it is written above the restructuredText in the declaration area of the FB.&lt;br/&gt;
But also it does not work, I alwas get the whole Library Project exported as an .json File.&lt;/p&gt;
&lt;p&gt;I do not really know where to search for my failure.&lt;br/&gt;
Do I have to write the attribute into the reST text area ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>