]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
HTML code docs: Handle @param ocamldoc option
authorRob Hoes <rob.hoes@citrix.com>
Fri, 18 Jun 2010 13:20:57 +0000 (14:20 +0100)
committerRob Hoes <rob.hoes@citrix.com>
Fri, 18 Jun 2010 13:20:57 +0000 (14:20 +0100)
This option can be used to attached ocamldoc comments to function parameters.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
ocaml/doc/ocamldoc.js

index 761b8e88da48826b5995b51b2ac4b5c7e41e115c..6739c8084c91c17925e8fdfa67823abdb116b24b 100644 (file)
@@ -157,7 +157,8 @@ function value(v, n)
                n = v.params[c].name;
                html += '<tr><td width="20%" style="padding: 0 0 .2em">' +
                        (n == "" ? '(no name)' : v.params[c].name) + '</td>';
-               html += '<td style="padding: 0 0 .2em">' + transform_type(v.params[c].type) + '</td></tr>';
+               html += '<td style="padding: 0 0 .2em">' + transform_type(v.params[c].type) + '</td>';
+               html += '<td style="padding: 0 0 .2em">' + (v.params[c].comment != undefined ? v.params[c].comment : '') + '</td></tr>';
        }
        html += '</table>';
        html += '</td></tr>';