Skip to content

Commit 2bc98a3

Browse files
committed
various fixes.
1 parent 22f4333 commit 2bc98a3

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

gen-changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ perl twiki2pod.pl a.twiki \
88
| sed 's/\<SrcacheNginxModule\>/the ngx_srcache module/' \
99
| sed 's/\<LuaRestyCoreLibrary\>/the lua-resty-core library/' \
1010
| sed 's/\<LuaCjsonLibrary\>/the lua-cjson library/' \
11+
| sed 's/\<LuaRdsParserLibrary\>/the lua-rds-parser library/' \
12+
| sed 's/\<LuaRedisParserLibrary\>/the lua-redis-parser library/' \
1113
| sed 's/\<LuaRestyUpstreamHealthcheckLibrary\>/the lua-resty-upstream-healthcheck library/' \
1214
| sed 's/\<LuaRestyDNSLibrary\>/the lua-resty-dns library/' \
1315
| sed 's/\<LuaRestyWebSocketLibrary\>/the lua-resty-websocket library/' \
1416
| sed 's/\<LuaRestyMySQLLibrary\>/the lua-resty-mysql library/' \
1517
| sed 's/\<LuaRestyLrucacheLibrary\>/the lua-resty-lrucache library/' \
1618
| sed 's/\<LuaRestyLockLibrary\>/the lua-resty-lock library/' \
19+
| sed 's/\<LuaRestyRedisLibrary\>/the lua-resty-redis library/' \
1720
| sed 's/\<EchoNginxModule\>/the ngx_echo module/' \
1821
| sed 's/\<DrizzleNginxModule\>/the ngx_drizzle module/' \
1922
| sed 's/\<CoolkitNginxModule\>/the ngx_coolkit module/' \

markdown-toc.pl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
my $outfile = "$infile.new";
109109
open my $out, ">$outfile"
110-
or die "Cannot open $infile for writing: $!\n";
110+
or die "Cannot open $outfile for writing: $!\n";
111111

112112
my $i = 0;
113113
print $out $preamble;
@@ -120,10 +120,12 @@
120120

121121
print $out $src;
122122
if (++$i > 3 && $src !~ /Back to TOC/sm) {
123-
if ($src !~ /\n\n$/s) {
124-
print $out "\n";
123+
if ($src =~ /\w\n.*?\n.*?\w/s) {
124+
if ($src !~ /\n\n$/s) {
125+
print $out "\n";
126+
}
127+
print $out "[Back to TOC](#table-of-contents)\n\n";
125128
}
126-
print $out "[Back to TOC](#table-of-contents)\n\n";
127129
}
128130

129131
if ($title =~ /^Name$/i) {

ngx-releng

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ack '(?<!:)//' $cfiles /dev/null
2424
ack '[ \t]+$' $cfiles /dev/null
2525
ack '^\s*?\t\s*\S' $cfiles /dev/null
2626
ack '^master_on' `find t -name '*.t'` /dev/null
27+
ack '=== TEST \d+\s+' `find t -name '*.t'` /dev/null
2728
ack 'if \( |if \(! |if \(.*? \)' $cfiles /dev/null
2829
ack '\--- *(?:ONLY|LAST)' `find t -name '*.t'` /dev/null
2930
ack -l '\r\n' t /dev/null
@@ -32,7 +33,7 @@ ack '^static .*?\(\);' $cfiles /dev/null
3233
ack '^static [^()]*?\*\s\w+' $cfiles /dev/null
3334
ack '^\w+[^()]*?\*\s\w+' $hfiles /dev/null
3435
ack '^[a-zA-Z]\w+\(\)$' $cfiles /dev/null
35-
ack '^\#\s*define\s+ngx_http_\w+?_version\s+\d+$' $cfiles /dev/null
36+
ack '^\#\s*define\s+ngx_[a-z]+_\w+?_version\s+\d+$' $cfiles /dev/null
3637
ack '\b(?:if|for|while)\(|\bdo\{' $cfiles /dev/null
3738
ack '^\s*plan\s+tests\s*=>.*?repeat_each\(\d+\)' t /dev/null
3839

src2png

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ sed 's/ color: #000000;/ color: #eee;/g' $1.tmp > $1.html
2626

2727
#echo "sed: $? $1.html"
2828

29-
CutyCapt --url=$1.html --out=$1.png --zoom-factor=2 || exit 1
29+
CutyCapt --url=$1.html --out=$1.png --zoom-factor=1.6 || exit 1
3030
convert -trim +repage -bordercolor black -border 50x50 $1.png $1.png
3131

0 commit comments

Comments
 (0)