8 Tables§
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#tables
8.1 Grid Tables§
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#grid-tables
Header row, column 1 (header rows optional) |
Header 2 |
Header 3 |
Header 4 |
---|---|---|---|
body row 1, column 1 |
column 2 |
column 3 |
column 4 |
body row 2 |
Cells may span columns. |
||
body row 3 |
Cells may span rows. |
|
|
body row 4 |
8.2 Simple Tables§
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#simple-tables
A |
B |
A and B |
---|---|---|
False |
False |
False |
True |
False |
False |
False |
True |
False |
True |
True |
True |
With column spans:
Inputs |
Output |
|
---|---|---|
A |
B |
A or B |
False |
False |
False |
True |
False |
True |
False |
True |
True |
True |
True |
True |
With more complicated stuff:
col 1 |
col 2 |
---|---|
1 |
Second column of row 1. |
2 |
Second column of row 2. Second line of paragraph. |
3 |
|
Row 4; column 1 will be empty. |
|
5 |
Second column of row 5.
Text after bullet. |
6 |
Numbered list:
|
Adjacent tables (is there a vertical space between them?):
col 1 |
col 2 |
col 1 |
col 2 |
8.3 CSV Tables§
https://docutils.sourceforge.io/docs/ref/rst/directives.html#csv-table
Treat |
Quantity |
Description |
---|---|---|
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! |
8.4 List Tables§
https://docutils.sourceforge.io/docs/ref/rst/directives.html#list-table
Treat |
Quantity |
Description |
---|---|---|
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! |
8.5 Nesting§
Table in admonition
Header with |
---|
Text with |
Table in topic
Header with |
---|
Text with |