commit 6209436: [Doc] Support available versions in doxydown
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Jun 14 19:00:21 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-06-14 17:49:47 +0100
URL: https://github.com/rspamd/rspamd/commit/6209436b4b4a31e3a567dbd2b58b9352aaf4967b
[Doc] Support available versions in doxydown
---
doc/doxydown/doxydown.pl | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/doc/doxydown/doxydown.pl b/doc/doxydown/doxydown.pl
index 95a6e101c..cb3713cff 100755
--- a/doc/doxydown/doxydown.pl
+++ b/doc/doxydown/doxydown.pl
@@ -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'} ) {
More information about the Commits
mailing list