commit b5c2a9b: [Minor] Use tables in Markdown toc

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Apr 15 12:00:13 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-15 12:59:08 +0100
URL: https://github.com/rspamd/rspamd/commit/b5c2a9b0430b3e5b36386ecc9d39b93c20bd3aa2 (HEAD -> master)

[Minor] Use tables in Markdown toc

---
 doc/doxydown/doxydown.pl | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/doc/doxydown/doxydown.pl b/doc/doxydown/doxydown.pl
index 993a8636e..95a6e101c 100755
--- a/doc/doxydown/doxydown.pl
+++ b/doc/doxydown/doxydown.pl
@@ -68,9 +68,9 @@ EOD
         my $id   = $f->{'id'};
 
         if ($f->{'brief'}) {
-            print "* [`$name`](#$id): ". $f->{'brief'} . "\n";
+            print "[`$name`](#$id) | ". $f->{'brief'} . "\n";
         } else {
-            print "* [`$name`](#$id)\n";
+            print "[`$name`](#$id) | No description\n";
         }
     }
 
@@ -93,6 +93,8 @@ EOD
         if (scalar(@{ $m->{'functions'} }) > 0) {
             print "**Functions**:\n\n";
 
+            print " Function | Description\n";
+            print "----------|------------\n";
             foreach ( @{ $m->{'functions'} } ) {
                 print_func($_);
             }
@@ -102,7 +104,8 @@ EOD
     if ($m->{'methods'}) {
         if (scalar(@{ $m->{'methods'} }) > 0) {
             print "\n\n**Methods**:\n\n";
-
+            print " Method | Description\n";
+            print "----------|------------\n";
             foreach ( @{ $m->{'methods'} } ) {
                 print_func($_);
             }


More information about the Commits mailing list