我正在使用狮身人面像文档。

我想轻松生成基于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             | ...        | ...      |          |
+------------------------+------------+----------+----------+


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

最佳答案

在REST中,可以使用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!"


创建此表:

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

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

关于python-sphinx - 一些在线工具或自动化插件,用于生成sphinx RST表的sublimetext,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26609816/

10-12 16:58
查看更多