]> source.dussan.org Git - rspamd.git/commitdiff
[Doc] Support available versions in doxydown
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 14 Jun 2019 16:49:47 +0000 (17:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 14 Jun 2019 16:49:47 +0000 (17:49 +0100)
doc/doxydown/doxydown.pl

index 95a6e101c114c07cd73c02ae9801b117666f0851..cb3713cffa5c28a10e65f6087a4e6057afbb347a 100755 (executable)
@@ -172,6 +172,10 @@ EOD
         print "No return\n";
     }
 
+    if ( $f->{'available'} ) {
+      printf "\n**Available in:** %s\n", $f->{'available'};
+    }
+
     if ( $f->{'example'} ) {
         print <<EOD;
 
@@ -356,6 +360,8 @@ sub parse_function {
             push @{ $f->{'returns'} }, $r;
         } elsif ( /^\s*\@brief\s*(\S.+)$/ ) {
             $f->{'brief'} = $1;
+        } elsif ( /^\s*\@available\s*(\S.+)$/ ) {
+            $f->{'available'} = $1;
         }
         elsif ( /^\s*\@example\s*(\S)?\s*$/ ) {
             $example = 1;
@@ -382,6 +388,10 @@ sub parse_function {
         chomp $f->{'example'};
     }
 
+    if ( $f->{'available'} ) {
+        chomp $f->{'available'}
+    }
+
     if ( !$f->{'brief'} && $f->{'data'} ) {