APIドキュメントとその独自のドキュメントジェネレータスキーマをreStructuredTextに移行しようとしています。最も苦労するのは、APIの詳細を表形式で表現したもので、HTMLで直接コーディングされています。
--------+------------+--------+--------------------------------+
Param | Required | Type | Description
----------------------------------------------------------------
id | Yes | int | This is the ID of the record...
content | No | string | Optional string contents...
(つまり、これは現在、としてコード化されています<tr><td class='param'>id</td><td class='required'>Yes</td>...
)
これをRSTで実行したいのですが、RSTテーブル形式を使用するだけでなく、セマンティックに実行します。しかし、これを私が望む方法で処理するためのカスタムディレクティブの良い例を見つけることができません。
:.. parameter-table:: My Parameter Table
.. item::
:param: "id"
:required: true
:type: "int"
:desc: "This is the ID of the record..."
reStructuredTextでこれをどのように達成できますか?