Samples

You can use an annotation tag to document sample toolkits. Sample toolkits contain examples of how to use other toolkits.
@sample
Indicates a sample toolkit. Add this annotation tag to the description of a toolkit (for example, in the info.xml file). The annotation must be placed at the end of the description.

To generate documentation for sample toolkits, run the spl-make-doc command with the -i option for a single toolkit or the -t option for multiple toolkits, exactly as you do for the main toolkits. You can run the spl-make-doc command on sample toolkits only, on main toolkits only, or on a combination.

In the generated output, sample toolkits are grouped together and labeled as samples. The output for sample toolkits always includes composite operator diagrams and SPL source code.

The following example shows the description for a sample toolkit.
<description>
This toolkit contains samples showing how to use the myToolkit toolkit.
@sample
</description>

The spl-make-doc command for a sample toolkit generates documentation similar to that of a main toolkit.