README file for each module is generated from xml docbook files residing in doc/ sub folder. The README file must not be changed directly, the editing has to be done to the xml docbook files.
When one adds a new module it has to write these xml docbook files and then generate the first version of README using:
make modules-readme modules=modules/modname
For old modules (or after the new module has been published to the public git repository) do not generate anymore the README for pushing it to git. Push only the changes to the xml files, because the README will be automatically generated by a cron service running on server to ensure coherent formatting and avoid conflicts when having to backport to older branches.
Of course, you can generate the README locally to check if the result is the expected one, but then restore the old README without changes – it can be done with:
rm src/modules/modname/README git checkout src/modules/modname/README
The docbook file are:
The docbook file are:
To generate IDs that make html version of README easier to refer to, each section tag for parameters, functions, etc. has to contain an id attribute. To avoid conflicts when merging some readme file, the value of ID attributes should use following pattern:
[module name] [dot] [type] [dot] [title]
The [type] should be:
Next is an example showing the id for the section corresponding to parameter workers from module async:
<section id="async.p.workers"> <title><varname>workers</varname> (int)</title>