File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff 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/'   \
Original file line number Diff line number Diff line change 107107
108108my  $outfile  = " $infile .new"  ;
109109open  my  $out , " >$outfile " 
110-     or  die  " Cannot open $infile   for writing: $! \n "  ;
110+     or  die  " Cannot open $outfile   for writing: $! \n "  ;
111111
112112my  $i  = 0;
113113print  $out  $preamble ;
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   ) {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ack '(?<!:)//' $cfiles /dev/null
2424ack ' [ \t]+$'   $cfiles  /dev/null
2525ack ' ^\s*?\t\s*\S'   $cfiles  /dev/null
2626ack ' ^master_on'   ` find t -name ' *.t' `   /dev/null
27+ ack ' === TEST \d+\s+'   ` find t -name ' *.t' `   /dev/null
2728ack ' if \( |if \(! |if \(.*? \)'   $cfiles  /dev/null
2829ack ' \--- *(?:ONLY|LAST)'   ` find t -name ' *.t' `   /dev/null
2930ack -l ' \r\n'   t /dev/null
@@ -32,7 +33,7 @@ ack '^static .*?\(\);' $cfiles /dev/null
3233ack ' ^static [^()]*?\*\s\w+'   $cfiles  /dev/null
3334ack ' ^\w+[^()]*?\*\s\w+'   $hfiles  /dev/null
3435ack ' ^[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
3637ack ' \b(?:if|for|while)\(|\bdo\{'   $cfiles  /dev/null
3738ack ' ^\s*plan\s+tests\s*=>.*?repeat_each\(\d+\)'   t /dev/null
3839
Original file line number Diff line number Diff 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
3030convert -trim +repage -bordercolor black -border 50x50 $1 .png $1 .png
3131
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments