summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-14 17:49:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-14 17:49:47 +0100
commit6209436b4b4a31e3a567dbd2b58b9352aaf4967b (patch)
tree90d89376690cf75e662e6cda74b3746201f14cf8 /doc
parenta5deb4344638b72841ac276d75977d78ce0bac4a (diff)
downloadrspamd-6209436b4b4a31e3a567dbd2b58b9352aaf4967b.tar.gz
rspamd-6209436b4b4a31e3a567dbd2b58b9352aaf4967b.zip
[Doc] Support available versions in doxydown
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/doxydown/doxydown.pl10
1 files changed, 10 insertions, 0 deletions
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'} ) {