Sphinx环境配置及VScode编写Rst文档转html的步骤

  //表格类型一

  ==== ====== ========== ==== == ===

  编号 名称 NAND FLASH eMMC SD USB

  ==== ====== ========== ==== == ===

  1 MODE0 0 0 0 1

  2 MODE1 1 1 1 0

  3 CFG1-4 1 0 0 X

  4 CFG1-5 0 1 0 X

  5 CFG1-6 0 1 1 X

  6 CFG1-7 1 0 0 X

  7 CFG2-3 0 1 0 X

  8 CFG2-5 0 0 1 X

  ==== ====== ========== ==== == ===

  //表格类型二

  +------------+------------+-----------+

  | Header 1 | Header 2 | Header 3 |

  +============+============+===========+

  | body row 1 | column 2 | column 3 |

  +------------+------------+-----------+

  | body row 2 | Cells may span columns.|

  +------------+------------+-----------+

  | body row 3 | Cells may | - Cells |

  +------------+ span rows. | - contain |

  | body row 4 | | - blocks. |

  +------------+------------+-----------+

  //表格类型三

  .. 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!"