]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Document list-tables as recommended
authorAndrea Bolognani <abologna@redhat.com>
Thu, 7 May 2020 12:45:03 +0000 (14:45 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 11 May 2020 11:55:27 +0000 (13:55 +0200)
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/styleguide.rst

index 3162868fb7535a459c7d71495d9c0e0ee6211e24..34c5b1573a99fd14cb9d2d71401eb7289f67c38a 100644 (file)
@@ -77,6 +77,26 @@ which allows for 6 levels of headings
    Heading 6
    ^^^^^^^^^
 
+Tables
+======
+
+Tables should be created using the ``list-table`` directive whenever
+possible, as in
+
+::
+
+   .. list-table::
+      :header-rows: 1
+
+      * - Option
+        - Description
+
+      * - ``foo_enabled``
+        - Whether or not ``foo`` should be enabled
+
+      * - ``bar_user``
+        - Which user to run ``bar`` as
+
 Manual pages
 ============