1. Toolkit description
This toolkit provides a set of vis that helps you builds plain-text file using asciidoc syntax.
It now provides all the tools needed to generate the HTML5 or PDF final document you always dream to get from your LabVIEW applications.
Author: Olivier Jourdan
Copyright: Copyright © 2022, Wovalab
License: BSD 3-Clause
Compatible LabVIEW Versions: >= 2014.
Compatible OS Versions: Windows 64-Bit.
2. API description
2.1. AsciiDoc for LabVIEW
| Name | Connector pane | Description | ||||
|---|---|---|---|---|---|---|
Create Document |
|
Create an asciidoc document. >The document type (aka doctype) declares the expected structure of an AsciiDoc document. > AsciiDoc defines a fixed set of document types. > Each document type provides a slight variation on the permitted structure of an AsciiDoc document to accommodate different uses cases. For more information: https://docs.asciidoctor.org/asciidoc/latest/document/doctype/ |
||||
Add Section |
|
Add section to an asciidoc document.
This function supports the addition of a single section or an array of sections. For more information: https://docs.asciidoctor.org/asciidoc/latest/sections/titles-and-levels/ |
||||
Generate Output |
|
Generate the asciidoc document string. If a file path is provided, the output will be saved to file. For more information: https://docs.asciidoctor.org/asciidoc/latest/ |
||||
Create |
|
Create a section. Sections partition the document into a content hierarchy. Use <b>Add bloc.vi</b> to add content to a section For more information: https://docs.asciidoctor.org/asciidoc/latest/sections/titles-and-levels/ |
||||
Add Bloc |
|
Add content blocs to a section. This function supports the addition of a single bloc or an array of blocs to a section |
||||
Create Sub Section |
|
Create a subsection with the given sections. A <b>Subsection</b> in this instance is actually a container object - its contains the sections given to it and they are then handled as subsections when rendered into the document. This function supports creation of a subsection container from both a single section or an array of sections. |
||||
Generate Output |
|
Generate the asciidoc string of the section. You can use this function to create an asciidoc document to include in another one. |
||||
Create Paragraph |
|
Create a paragraph bloc. Paragraphs are blocks of text with optional formatting (e.g. bold, underline, italic etc) for specific words or phrases. <b>Note</b> Regular linespaces are ignored. Use <b>Add line break.vi</b> or multiple paragraph blocs to form paragraphs in a section. More information: https://docs.asciidoctor.org/asciidoc/latest/blocks/paragraphs/ |
||||
Create Admonition |
|
Create an admonition bloc. Admonitions (or notices) help draw attention to content with a special label or icon. In Asciidoc there are 5 types of admonition: "Note", "Tip", "Important", "Caution" and "Warning". Use them to call out content within a paragraph or section. More information: https://docs.asciidoctor.org/asciidoc/latest/blocks/admonitions/ |
||||
Create Image |
|
Create an image bloc. Adds an image from file to the document. File path can be absolute or relative to the "Image directory" attribute of the AsciiDoc document.
More information: https://docs.asciidoctor.org/asciidoc/latest/macros/images/ |
||||
Create Include Directive |
|
Create an "Include" bloc. The "Include" directive allows inclusion of content from another file into the current AsciiDoc document. The included content can be in AsciiDoc or any other text format. Where that content is included in the document determines how it will be processed.
More information: https://docs.asciidoctor.org/asciidoc/latest/directives/include/ |
||||
Render Adoc File |
|
This function generate an HTML5 or PDF file using an adoc file as input.
|
||||
Check Asciidoctor Toolchain Installation |
|
This function to check that asciidoctor toolchain is correctly installed. |
||||
Installing Asciidoctor toolchain |
|
This function install the asciddoctor toolchain. With the asciidoctor toolchain you can render adoc files in HTML5 or PDF file format. |
2.2. Data Visualization
| Name | Connector pane | Description |
|---|---|---|
Create |
|
Create a diagram bloc representing a ine chart. |
Create |
|
Create a diagram bloc representing a line chart.
|
Create |
|
Create a diagram bloc representing a line chart.
|
Create Diagram |
|
Create a diagram bloc. Diagrams are described using plain text. The format of the text description depends on the selected diagram type. |
2.3. Create table
| Name | Connector pane | Description | ||
|---|---|---|---|---|
Create Table |
|
Create a table block using either a 2D array of <b>Table cell</b>s or strings for the content. <b>Note 1:</b> Nesting is permitted to a maximum depth of 1 (i.e. table in a table) only (only possible when building a table from table cells). <b>Note 2: </b> Row attributes override cell attributes, and both override column attributes More information: https://docs.asciidoctor.org/asciidoc/latest/tables/build-a-basic-table/ |
||
Create table cell |
|
Create a table cell object. A Table cell can contain any asciidoc bloc, including another table (<b>Note</b> only one level of table nesting is permitted by the renderer). Table cells are used to build the content of an advanced table bloc, they should <b>not</b> be added directly to a document section. <b>Note:</b> Style can only be set for cells containing paragraph text. |
2.4. Attributes
| Name | Connector pane | Description |
|---|---|---|
Set Image Directory |
|
Sets the directory for locating images added to the document. |
Set Table Of Content |
|
Enable or disable the creation of a table of contents in the generated document |
Set Table Of Content Levels |
|
Set the number of section levels (i.e. subsection depth) shown in the table of contents |
Set Section Numbering |
|
Enable or disable section numbering in the generated document |
Add Custom Attribute |
|
Add a custom attribute to the document. Attributes can be references in the text using {"attribute name"}. Allowing e.g. text subsitutions etc. For more information see: https://dosc.asciidoctor.org/asciidoc/latest/attributes/document-attributes |
2.5. Formating
| Name | Connector pane | Description |
|---|---|---|
Add Line Break |
|
Insert a line break between 2 lines used in a paragraph block
More information: https://docs.asciidoctor.org/asciidoc/latest/blocks/hard-line-breaks/ |
Format Text |
|
Add selected formatting to the input string. For more information: https://docs.asciidoctor.org/asciidoc/latest/text |