I am trying to port our API documents and their documentation generator schema to reStructuredText. The piece that gives the hardest time is a tabular representation of the API information encoded directly in HTML, a la:
--------+------------+--------+--------------------------------+
Param | Required | Type | Description
----------------------------------------------------------------
id | Yes | int | This is the ID of the record...
content | No | string | Optional string contents...
(i.e. it is currently encoded as <tr><td class='param'>id</td><td class='required'>Yes</td>...)
I want to do this in RST, but do it semantically, and not just use the RST table format. But I can't find any good examples of custom directives to handle it the way I want it to be something like
:.. parameter-table:: My Parameter Table
.. item::
:param: "id"
:required: true
:type: "int"
:desc: "This is the ID of the record..."
How can I accomplish this in reStructuredText?