1. Documentation
The code documentation (for released versions) is available at the project page.
2. Code comments formatting
The program uses ROBODoc for generating code documentation. When you write your own code, please add proper header documentation to it. If you use Vim/NeoVim, the easiest way is to use plugin RoboVim. Example of documentation header:
1 -- ****f* Utils/GetRandom
2 -- FUNCTION
3 -- Return random number from Min to Max range
4 -- PARAMETERS
5 -- Min - Starting value from which generate random number
6 -- Max - End value from which generate random number
7 -- RESULT
8 -- Random number between Min and Max
9 -- SOURCE
10 function GetRandom(Min, Max: Integer) return Integer;
11 -- ****
1 - Documentation header. Hunter uses -- ****[letter]* [package]/[itemname]
format for documentation headers.
2-9 - Documentation. For all available options, please refer to ROBODoc
documentation. Steam Sky uses --
for start all documentation lines.
10 - Source code of item.
11 - Documentation footer. Steam Sky uses -- ****
for closing documentation.
3. Generating code documentation
To generate (or regenerate) code documentation, you need ROBODoc
If you have it, in the main program directory (where this file is) enter
terminal command: others/generatedocs.tcl
. For more information about this
script, please look here. This
version of script have set all default settings for Steam Sky code.