Generate documentation from structural files
Note
*disabled*Variable |
Description |
doc.output_format choice Command line: -do, –doc.output_format Environment variable: ROUGAILCLI_DOC.OUTPUT_FORMAT |
The output format of the generated documentation. Choices:
|
doc.tabular_template choice Command line: -dm, –doc.tabular_template Environment variable: ROUGAILCLI_DOC.TABULAR_TEMPLATE |
Generate document with this tabular model. The variables are documented with a tabular view. A template selection allows you to choose the content of each column. Choices:
Disabled: “the output format of the generated documentation” (doc.output_format) in json is not compatible with this variable. |
doc.contents choice Command line: -dc, –doc.contents Environment variable: ROUGAILCLI_DOC.CONTENTS |
Generated content. You can generate three type of document. All variables (“variables”), an example file in YAML format (“example”) or change log (“changelog”). Choices:
Hidden: “the output format of the generated documentation” (doc.output_format) in json is not compatible with changelog or example “generated content” (doc.contents). |
doc.title_level integer Command line: -dt, –doc.title_level Environment variable: ROUGAILCLI_DOC.TITLE_LEVEL |
Starting title level. Default: 1 |
doc.default_values boolean Command line:
Environment variable: ROUGAILCLI_DOC.DEFAULT_VALUES |
Modify values to document all variables. To document leadership or dynamic family variables, it is sometimes necessary to generate values, which can change the values in the configuration. Be careful if you reuse this configuration. Default: true |
doc.true_color boolean Command line:
Environment variable: ROUGAILCLI_DOC.TRUE_COLOR |
Display documentation in console always with true color terminal. Default: false Disabled: when the variable “the output format of the generated documentation” (doc.output_format) hasn’t the value “console”. |
The variables in this family are documented in another file
Note
Variable |
Description |
doc.other_root_filenames.root_path string Command line: –doc.other_root_filenames.root_path Environment variable: ROUGAILCLI_DOC.OTHER_ROOT_FILENAMES.ROOT_PATH |
This file contains child variables of the family. |
doc.other_root_filenames.root_doc_path Command line: –doc.other_root_filenames.root_doc_path Environment variable: ROUGAILCLI_DOC.OTHER_ROOT_FILENAMES.ROOT_DOC_PATH |
Name of the file. |
Variable |
Description |
doc.document_a_type boolean Command line:
Environment variable: ROUGAILCLI_DOC.DOCUMENT_A_TYPE |
Documentation a structural type. Default: false |
Variables and changelog documentation
Note
*disabled*Variable |
Description |
doc.tabulars.without_family boolean Command line:
Environment variable: ROUGAILCLI_DOC.TABULARS.WITHOUT_FAMILY |
Do not add families in documentation. Default: false |
doc.tabulars.with_commandline boolean Environment variable: ROUGAILCLI_DOC.TABULARS.WITH_COMMANDLINE |
Add command line informations in documentation. Default: false |
doc.tabulars.with_environment boolean Command line:
Environment variable: ROUGAILCLI_DOC.TABULARS.WITH_ENVIRONMENT |
Add environment variable informations in documentation. Default: false |
doc.tabulars.environment_prefix string Command line: -dv, –doc.tabulars.environment_prefix Environment variable: ROUGAILCLI_DOC.TABULARS.ENVIRONMENT_PREFIX |
Environment variables prefix name. Validator: should only use uppercase characters Default: ROUGAIL Disabled: when the variable “add environment variable informations in documentation” (doc.tabulars.with_environment) has the value “false”. |
Changelog documentation
Note
*disabled*Variable |
Description |
doc.changelog.previous_json_file string Command line: -dp, –doc.changelog.previous_json_file Environment variable: ROUGAILCLI_DOC.CHANGELOG.PREVIOUS_JSON_FILE |
Previous description file in JSON format. To generate the changelog, you need to compare the old list of variables (in json format) with the current variables. |
Examples configuration
Note
*disabled*Variable |
Description |
doc.examples.comment boolean Command line:
Environment variable: ROUGAILCLI_DOC.EXAMPLES.COMMENT |
Add description of variables and families when generate examples. Default: false |
doc.examples.comment_column integer Command line: –doc.examples.comment_column Environment variable: ROUGAILCLI_DOC.EXAMPLES.COMMENT_COLUMN |
Comment in examples starts at column. Default: 30 Disabled: when the variable “add description of variables and families when generate examples” (doc.examples.comment) has the value “false”. |