The LabVIEW tool
You can use Antidoc directly from the LabVIEW interface.
To open the tool, select in the LabVIEW menu.
During the splash screen display, the tool is loading the available add-ons.
The tool’s user interface appears once the installed add-ons have been fully loaded.
You can select the add-on you want to use via the drop-down menu at the top left corner.
The user interface will be updated according to the add-on selection.
| If you don’t have any add-ons installed, a message will be displayed to invite you to install at least one of them through VIPM and the tool will stop executing. |
Configuring the generation
You can configure the general behavior of the tool through the settings window. Those settings are independent from the add-on used.
The general settings
This window offers different settings linked to the generation process:
- Documentation format to generate
-
Allows you to select which files are generated at the end of the process. If no option is selected, you’ll only get adoc files and images.
The Output customization settings… button opens a new window to set parameters described in The output customization settings. - Documentation file name
-
Allows you to redefine the name of the document generated. If the option is disabled, the name of the document is defined by the add-on.
- Documentation destination
-
Allows you to modify the storage location of the generated document is stored. If the option is disabled, the location is defined by the add-on.
you can set a path relative to the location defined by the add-on using .. at the beginning of the path.
|
- Advanced generation settings
-
- Use AsciiDoctor custom installation
-
If enabled, you need to point to a folder where the Asciidoctor toolchain is installed.
- Disable SSL verification for diagram generation
-
This option can be enabled to prevent errors when generating documents that contain diagrams
- Use custom diagram image generation
-
Allow you to define a different way to generate diagrams
- Custom Kroki server
-
By default diagrams are generated connecting https://kroki.io/. You can define another Kroki server here.
- Local renderer
-
If the option is generated, Asciidoctor will use local tools not installed by default to generate the diagrams.
- Open document after generation
-
Enable this option to open the generated document with the default application associated at the end of the process.
- Clean up destination folder
-
Enable this option to remove all the intermediate files generated during the process.
- Do not show Generation Summary Dialog
-
Enable this option to prevent the display of the Generation summary window.
The output customization settings
This window offers different settings linked to the content and the form of the final document rendered:
- General Customization
-
- Table of contents visible
-
Disable this option not to generate the table of contents.
- Depth
-
Adjust the depth of section levels that are displayed in the table of contents.
- Position
-
Choose the position of the table of contents in the file generated.
Some values work only for the HTML output or may require injecting specific asciidoc content.
| To learn more about how the table of contents is handled, refer to the Asciidoc documentation. |
- HTML
-
- Use custom CSS
-
set a custom CSS file to modify the rendering of the HTML output.
| To learn more about how custom stylesheets are handled by the Asciidoctor toolchain, refer to the Asciidoctor documentation. |
- Use custom theme
-
You can modify the default rendering of the PDF file using PDF themes.
| To learn more about how PDF themes are handled by the Asciidoctor toolchain, refer to the Asciidoctor PDF documentation. |
Generating the documentation
To generate the documentation, you have to click on the Generate documentation button.
After the Initialization step, the Generation summary window is displayed (if configured to do so).
You can review the summary before continuing the generation.
You can follow the progress of the documentation with the progress bar displayed at the bottom of the main User Interface.
Advanced configuration
You can configure advanced Antidoc behavior using an INI file named Antidoc.ini stored in ..\Documents\LabVIEW Data\Antidoc.
| This file is not mandatory to get Antidoc to work. By default, this file doesn’t exist. |
[Antidoc]
AdditionalAddonsSearchPath="C:\Users\team\Documents\open-source-projects"(1)
AdditionalAddonsSearchPathLvVersion=14.0.1f11(2)
ContentNotFoundPlaceholder="Another placeholder text"(3)
[Custom Attributes](4)
sectnumlevels=4
| 1 | Additional path where Antidoc is looking for add-ons. Use this parameter if you develop your add-on and want to debug it without building a package. |
| 2 | Limit the search for additional add-ons to a specific LabVIEW version. |
| 3 | Set a custom string to display in the documentation generated when content is not found in the LabVIEW code |
| 4 | In this section, each key represents an AsciiDoc attribute. That’s the way for you to customize the output (the PDF or the HTML) you can get at the end of the documentation generation process. |
| For more information about AsciiDoctor attributes, see the Asciidoctor documention |