diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-27 15:14:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-27 15:14:42 +0100 |
commit | f8ea4bebb407f6a0ab586541e07aa0a3b7eb702c (patch) | |
tree | e00587b52e185e8a7919c0b28b7187508c20c5c8 | |
parent | 77c3dbff647cc8f07f46b66f4834f31c3052fa3b (diff) | |
download | rspamd-f8ea4bebb407f6a0ab586541e07aa0a3b7eb702c.tar.gz rspamd-f8ea4bebb407f6a0ab586541e07aa0a3b7eb702c.zip |
Style fixes.
-rwxr-xr-x | doc/lua_api.pl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/lua_api.pl b/doc/lua_api.pl index 089e3c982..b7c69a33c 100755 --- a/doc/lua_api.pl +++ b/doc/lua_api.pl @@ -19,7 +19,7 @@ sub print_module_markdown { my ( $mname, $m ) = @_; print <<EOD; -# Module `$mname` {#$m->{'id'}} +## Module `$mname` {#$m->{'id'}} $m->{'data'} EOD @@ -41,22 +41,22 @@ EOD print ": [`$name`](#$id)\n"; } - print "\nBrief content:\n\n"; - print "Functions:\n"; + print "\n###Brief content:\n\n"; + print "**Functions**:\n"; foreach (@{$m->{'functions'}}) { print_func($_); } - print "\n\nMethods:\n"; + print "\n\n**Methods**:\n"; foreach (@{$m->{'methods'}}) { print_func($_); } } sub print_function_markdown { - my ( $fname, $f ) = @_; + my ( $type, $fname, $f ) = @_; print <<EOD; -## `$fname` {#$f->{'id'}} +### $type `$fname` {#$f->{'id'}} $f->{'data'} EOD @@ -104,15 +104,15 @@ sub print_markdown { while ( my ( $mname, $m ) = each %modules ) { print_module_markdown( $mname, $m ); - print "\n## Functions\n\nThe module defines the following functions.\n\n"; + print "\n## Functions\n\nThe module `$mname` defines the following functions.\n\n"; foreach ( @{ $m->{'functions'} } ) { - print_function_markdown( $_->{'name'}, $_ ); + print_function_markdown( "Function", $_->{'name'}, $_ ); print "\nBack to [module description](#$m->{'id'}).\n\n"; } - print "\n## Methods\n\nThe module defines the following methods.\n\n"; + print "\n## Methods\n\nThe module `$mname` defines the following methods.\n\n"; foreach ( @{ $m->{'methods'} } ) { - print_function_markdown( $_->{'name'}, $_ ); + print_function_markdown( "Method", $_->{'name'}, $_ ); print "\nBack to [module description](#$m->{'id'}).\n\n"; } |