Hi, I've added a new event route to the tm module and would like to document it in the README. (I've already added it to the wiki) With regards to providing automatic indexing, can we standardise a 'type' for the event_route section of documentation. For example 'e': <section id="tm.e.branch-failure"> ... </section>
Also, the tm module docs are split into separate xml files, with a top-level section <section id="tm.functions" ...>. Should this format be kept and does there need to be a standard for the top-level section ids?
Finally, I'm adding the id's to the websocket module where the MI commands include a dot e.g. "ws.enable". Does this affect the id generation, should it be replaced with underscore <section id="websocket.m.ws_enable">?
Regards, Hugh
On 25/03/2013 16:50, Daniel-Constantin Mierla wrote:
Hello,
I thought some people may have spare cycles and are willing to help with the documentation. Here is some updates I would like to get for modules:
- adding ids for parameters, functions, and other sections of the
docbook xml files. Now we generate the alphabetic indexes pointing to the online html readmes, would be better to point directly to the exact section. Practically, for example, sections such as next from async module:
<section> <title><varname>workers</varname> (int)</title>
should become:
<section id="async.p.workers"> <title><varname>workers</varname> (int)</title>
To get unique ids over all files, I suggest using following pattern:
[module name] [dot] [type] [dot] [title]
The [type] should be:
- p - parameters
- f - functions
- m - mi commands
- r - rpc commands
- s - statistics
- Add RPC commands to readmes -- some of modules already do, but many
don't. There is a perl script that should get the list of RPC commands from source code, but it requires some patch to a perl lib, not working on all systems. Moreover, the output is quite minimalistic, not easy to improve the content or add examples. Last generated index is:
- Document selects -- although their name are quite suggestive, a bit
of text around won't harm.
Because 1) and 2) requires git access, the easiest way to contribute is to provide patches to the xml files. If anyone commits to do an extensive work on these tasks in short term, we may eventually arrange for git access. The 3) is in the wiki, everyone can register an account and then update the pages.
I would recommend these guidelines to be followed from now on by developers when adding new elements to the module documentation.
Cheers, Daniel