用于生成sphinx RST表的sublimetext的一些在线工具或自动化插件

and*_*abs 11 restructuredtext python-sphinx

我正在使用sphinx进行文档编制.

我想基于例如CSV文件或复制粘贴文本轻松生成如下所示的表格:http: //sphinx-doc.org/rest.html

+------------------------+------------+----------+----------+
| Header row, column 1   | Header 2   | Header 3 | Header 4 |
| (header rows optional) |            |          |          |
+========================+============+==========+==========+
| body row 1, column 1   | column 2   | column 3 | column 4 |
+------------------------+------------+----------+----------+
| body row 2             | ...        | ...      |          |
+------------------------+------------+----------+----------+
Run Code Online (Sandbox Code Playgroud)

请帮助我指出我可以使用哪个sublimeText插件,或者可能存在一些在线工具

Iod*_*nas 14

在没有任何额外工具的情况下,可以使用CSV列表来定义表格(很多人不知道,直到最近才包括我).您可以将文件或URL链接为资源,或者只提供文本:

.. csv-table:: Frozen Delights!
   :header: "Treat", "Quantity", "Description"
   :widths: 15, 10, 30

   "Albatross", 2.99, "On a stick!"
   "Crunchy Frog", 1.49, "If we took the bones out, it wouldn't be
   crunchy, now would it?"
   "Gannet Ripple", 1.99, "On a stick!"
Run Code Online (Sandbox Code Playgroud)

创建此表:

restructuredText中CSV表的结果

文档可以在这里找到:http://docutils.sourceforge.net/docs/ref/rst/directives.html#id4


and*_*abs 12

好吧,我找到了像这样的http://www.tablesgenerator.com/text_tables

它创建了我想要的eaxctly,您可以轻松导入CSV文件,或只是复制粘贴.