By convention, documentation is written in files whose names end with -docs.factor. Vocabulary documentation should be placed in the same directory as the vocabulary source code; see Vocabulary loader.
A pair of parsing words are used to define free-standing articles and to associate documentation with words:
The content in both cases is a markup element, a recursive structure taking one of the following forms:
•
a string,
•
an array of markup elements,
•
or an array of the form { $directive content... }, where $directive is a markup word whose name starts with $, and content... is a series of markup elements
Here is a more formal schema for the help markup language: