comparison runtime/doc/makehtml.awk @ 790:c8680debe1cc

updated for version 7.0230
author vimboss
date Mon, 20 Mar 2006 21:55:45 +0000
parents 07d199fe02ed
children 74e3316c1d5a
comparison
equal deleted inserted replaced
789:b29b006d52d2 790:c8680debe1cc
133 133
134 print "<BODY BGCOLOR=\"#ffffff\">"; 134 print "<BODY BGCOLOR=\"#ffffff\">";
135 print "<H1>Vim documentation: " f[1] "</H1>"; 135 print "<H1>Vim documentation: " f[1] "</H1>";
136 print "<A NAME=\"top\"></A>"; 136 print "<A NAME=\"top\"></A>";
137 if ( FILENAME != "help.txt" ) { 137 if ( FILENAME != "help.txt" ) {
138 print "<A HREF=\"help.html\">main help file</A>\n"; 138 print "<A HREF=\"index.html\">main help file</A>\n";
139 } 139 }
140 print "<HR>"; 140 print "<HR>";
141 print "<PRE>"; 141 print "<PRE>";
142 filename=f[1]".html"; 142 filename=f[1]".html";
143 } 143 }
242 nfn=split(p[i],f,"."); 242 nfn=split(p[i],f,".");
243 if ( nfn == 1 || f[2] == "" || f[1] == "" || length(f[2]) < 3 ) { 243 if ( nfn == 1 || f[2] == "" || f[1] == "" || length(f[2]) < 3 ) {
244 find_tag1(); 244 find_tag1();
245 } 245 }
246 else { 246 else {
247 if ( f[1] == "index" ) {
248 printf "|<A HREF=\"vimindex.html\">" p[i] "</A>|";
249 } else {
250 if ( f[1] == "help" ) {
251 printf "|<A HREF=\"index.html\">" p[i] "</A>|";
252 } else {
247 printf "|<A HREF=\"" f[1] ".html\">" p[i] "</A>|"; 253 printf "|<A HREF=\"" f[1] ".html\">" p[i] "</A>|";
254 }
255 }
248 } 256 }
249 } 257 }
250 } 258 }
251 printf("\n"); 259 printf("\n");
252 next; 260 next;
371 topback(); 379 topback();
372 print "</PRE>\n</BODY>\n\n\n</HTML>"; } 380 print "</PRE>\n</BODY>\n\n\n</HTML>"; }
373 381
374 # 382 #
375 # as main we keep index.txt (by default) 383 # as main we keep index.txt (by default)
376 # other candidate, help.txt
377 # 384 #
378 function topback () { 385 function topback () {
379 if ( FILENAME != "tags" ) { 386 if ( FILENAME != "tags" ) {
380 if ( FILENAME != "help.txt" ) { 387 if ( FILENAME != "help.txt" ) {
381 printf("<A HREF=\"#top\">top</A> - "); 388 printf("<A HREF=\"#top\">top</A> - ");
382 printf("<A HREF=\"help.html\">main help file</A>\n"); 389 printf("<A HREF=\"index.html\">main help file</A>\n");
383 } else { 390 } else {
384 printf("<A HREF=\"#top\">top</A>\n"); 391 printf("<A HREF=\"#top\">top</A>\n");
385 } 392 }
386 } 393 }
387 } 394 }