General
The AdeliaDoc tool is used to manage the whole life cycle of an Adelia technical documentation project, namely:
- The initialization of a documentation project, configured with the default parameters.
- The generation of source markup files (.rst) from the analysis of 4GL sources and the use of program description information.
- Documentation production in the required format from the source markup files.
- The deletion of all the elements from the generation, keeping customized configuration parameters as well as the Sphinx configuration.
- The deletion of a documentation project.
In this context, the AdeliaDoc call parameters are based on a primary parameter called action
, which triggers the execution of one of the life cycle phases described above.
Associated with this primary parameter is a set of secondary parameters (mandatory or optional) which are used to manage the actions in question. Some of these secondary parameters are common to all the actions.
Usage : adeliadoc -action:<ActionName> -project:<DirectoryName> -lang:<LanguageCode> -env:<EnvironmentCode> [-pgm:<ProgramsList> | -app_area:<ApplicationAreaList> | -build_comp:<ComponentList>] -format:<FormatCode> [-filter:<FilterList>] [-title:<ProjectTitle>] [-log[:<FileName>]] [-force]
Parameter description table
Preliminary comments:
- The parameter input syntax is:
-parameter[:value]
- If a parameter value can include several occurrences, the occurrences must be separated by a semi-colon
- For parameters with a value which may contain blanks, this must be in quotes:
-param:"c:\temp\log file.txt"
- The parameters and their values are not case sensitive
Name | Description | Mandatory |
action | yes | |
project | Documentation project's root directory | yes |
env | Adelia generation environment | no(1) |
app_area | Name of application area(s) concerned by the generation | no |
build_comp | Name of build component(s) concerned by the generation | no |
pgm | Name of program(s) concerned by the generation | no |
filter | Filter based on the presence and content of the *@adeliadoc annotation, used to separate some programs/procedures from the generation | no |
format | Desired format for the documentation | yes(3) |
lang | Documentation project's language code | no(2) |
title | Documentation project title | no |
force | Forced mode for full documentation generation, avoiding incremental mode | no |
log | Log file absolute path | no |
(1) except for the generate
action
(2) except for the init
action
(3) except for init|cleanup|delete
actions
Detailed description of parameters
Below is a detailed description of all the call parameters supported by AdeliaDoc.
action parameter
Description | Code of the action to execute | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Mandatory | Yes | ||||||||||||||||||||||||||||||||||||||
Values | Take one of the following values:
|
project parameter
Description | Root directory of the documentation project (local directory on the machine running AdeliaDoc) |
---|---|
Value | Directory name |
Actions | |
Note | Make sure that the Windows® user running AdeliaDoc has read, write and delete permissions for the project directory. |
Example |
|
env parameter
Description | Canonical name of the Adelia generation environment |
---|---|
Value | Name in question |
Action | generate: Mandatory |
Example |
|
App_area parameter
Description | Adelia environment application area(s) concerned by documentation generation |
---|---|
Values | List of application area names separated by the "; " character |
Action | generate: Optional |
Note | Exclusive with parameters build_comp and pgm |
Example |
|
Build_comp parameter
Description | Adelia environment build component(s) concerned by documentation generation |
---|---|
Values | List of build components separated by the "; " character |
Action | generate: Optional |
Note | Exclusive with parameters app_area and pgm |
Example |
|
Pgm parameter
Description | Adelia environment program(s) concerned by documentation generation |
---|---|
Values | List of program names separated by the "; " character |
Action | generate: Optional |
Note | Exclusive with parameters app_area and build_comp |
Example |
|
Filter parameter
description | Filter based on the presence and content of the If the parameter is not entered, all the sections of the eligible program list are generated. |
---|---|
Values |
|
Action | generate: Optional |
Notes |
|
Example |
|
Format parameter
Description | Desired format for the documentation |
---|---|
Values |
|
Actions | |
Note | If the format is set to the RST value, AdeliaDoc generation is limited to markup file production without documentation production. |
Example |
|
Lang parameter
Description | Documentation generation language |
---|---|
Value | AdeliaDoc supports all languages supported by Sphinx. The list of languages is available here. |
Action | init: Mandatory |
Note | It is always possible to change the language of a documentation project after creating it. For further information, see the help topic dedicated to localization. |
Example |
|
Title parameter
Description | Documentation project title |
---|---|
Value | Title in question |
Action | init: optional |
Note | The title of a documentation project can be changed after creating it. For further information, see the help topic on Sphinx customization and configuration. |
Example |
|
force parameter
Description | Forced mode for full documentation generation, avoiding incremental mode |
---|---|
Value | None |
Action | generate: optional |
Note | When this parameter is set, the cleanup action is automatically called before the generate action is executed. |
Example |
|
Log parameter
Description | Name of file containing the AdeliaDoc execution report |
---|---|
Value | Absolute file name If the file name is not entered, by default the report is created in the " Important: for init and delete actions, you need to explicitly enter the absolute name of the report file. |
Actions | |
Note | The generation report contains all the logs, messages (information/warning/error) and statistics relating to the execution of an AdeliaDoc action. In the case of the generate action, if this parameter is not entered, a default log is generated in case errors and/or warnings are raised during documentation generation. This default log is located in the "log" sub-directory of the project. For the other actions, all the messages are redirected to the standard output or error output (Windows® console by default). |
Examples |
|
AdeliaDoc return codes
The return codes returned by AdeliaDoc.exe can be classified into 3 categories:
Normal execution
- The execution was completed without errors or warning messages: the return code is therefore set to the "0" value.
Execution warnings
- If AdeliaDoc detects syntax errors in the annotations, or if differences are detected between the definition of parameters stored in the database in relation to the declaration of corresponding variables in the 4GL source, the return code is set to the "1" value.
All the warning messages are recorded in the default log file or in the log file specified in the command line. - If at least one of the programs or classes to generate does not pass the standard Adelia verification, the return code is set to the "2" value.
All the warning messages are recorded in the default log file or in the log file specified in the command line.
- If AdeliaDoc detects syntax errors in the annotations, or if differences are detected between the definition of parameters stored in the database in relation to the declaration of corresponding variables in the 4GL source, the return code is set to the "1" value.
Execution errors
- A return code with a value greater than "2" signifies that the requested action has not been completed.
Additional information on the error type and reason is recorded in the standard output and in the log file. - For information:
- the "3" code indicates that standard Adelia verification has failed for all the eligible programs.
- the "4" code indicates that there is no program to generate.
- the "5" code indicates that the AdeliaDoc call parameters do not observe the required syntax rules.
- A return code with a value greater than "2" signifies that the requested action has not been completed.