commit ca8e4bfdce7df28fb4a508dee10bcba3cc0a1216
parent 61bf58a1b1b635c2606f42136b0a4e6a28dd82b7
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Thu, 14 Dec 2023 18:11:25 +0100
error codes table
Diffstat:
4 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/gnunet-error-codes/Makefile b/gnunet-error-codes/Makefile
@@ -63,9 +63,7 @@ gnunet_error_codes.rst.tmp: combined.tmp rst.template
../format.sh rst.template < combined.tmp > $@
rst.header.tmp:
- cat rst.header.template README POLICY > $@
- echo "Entries" >> $@
- echo "^^^^^^^" >> $@
+ cat README POLICY rst.header.template > $@
gnunet_error_codes.rst: rst.header.tmp gnunet_error_codes.rst.tmp rst.footer
cat rst.header.tmp gnunet_error_codes.rst.tmp rst.footer > $@
diff --git a/gnunet-error-codes/README b/gnunet-error-codes/README
@@ -1,2 +1,5 @@
+GNUnet Error Codes
+------------------
+
GNUnet error code registry.
diff --git a/gnunet-error-codes/rst.header.template b/gnunet-error-codes/rst.header.template
@@ -1,4 +1,11 @@
-GNUnet Error Codes
-------------------
+Entries
+^^^^^^^
+.. list-table:: GNUnet Error Codes
+ :widths: auto
+ :header-rows: 1
+ * - Name
+ - Value
+ - HttpStatus
+ - Description
diff --git a/gnunet-error-codes/rst.template b/gnunet-error-codes/rst.template
@@ -1,10 +1,4 @@
-
-
-=================== ===========================================================
-Name GNUNET_EC_{{Name}}
-------------------- -----------------------------------------------------------
-Value {{Value}}
-HTTP Status Code {{HttpStatus_Value}}
-Description {{Description}}
-=================== ===========================================================
-
+ * - {{Name}}
+ - {{Value}}
+ - {{HttpStatus}}
+ - {{Description}}