summaryrefslogtreecommitdiffstats
path: root/runtime/doc/makehtml.awk
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-20 21:55:45 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-20 21:55:45 +0000
commit9b2200acd6bd572eea00ea89eeb3b2c0764c8942 (patch)
tree2b51ab147338ddbae29d5586eb06ed85dd58ea00 /runtime/doc/makehtml.awk
parent0126585dbb2a044ec2d72166dbc71cec33517194 (diff)
updated for version 7.0230
Diffstat (limited to 'runtime/doc/makehtml.awk')
-rw-r--r--runtime/doc/makehtml.awk13
1 files changed, 10 insertions, 3 deletions
diff --git a/runtime/doc/makehtml.awk b/runtime/doc/makehtml.awk
index 34a55445b8..5e40069391 100644
--- a/runtime/doc/makehtml.awk
+++ b/runtime/doc/makehtml.awk
@@ -135,7 +135,7 @@ NR == 1 { nf=split(FILENAME,f,".")
print "<H1>Vim documentation: " f[1] "</H1>";
print "<A NAME=\"top\"></A>";
if ( FILENAME != "help.txt" ) {
- print "<A HREF=\"help.html\">main help file</A>\n";
+ print "<A HREF=\"index.html\">main help file</A>\n";
}
print "<HR>";
print "<PRE>";
@@ -244,7 +244,15 @@ npipe > 2 && nstar < 3 {
find_tag1();
}
else {
+ if ( f[1] == "index" ) {
+ printf "|<A HREF=\"vimindex.html\">" p[i] "</A>|";
+ } else {
+ if ( f[1] == "help" ) {
+ printf "|<A HREF=\"index.html\">" p[i] "</A>|";
+ } else {
printf "|<A HREF=\"" f[1] ".html\">" p[i] "</A>|";
+ }
+ }
}
}
}
@@ -373,13 +381,12 @@ END {
#
# as main we keep index.txt (by default)
-# other candidate, help.txt
#
function topback () {
if ( FILENAME != "tags" ) {
if ( FILENAME != "help.txt" ) {
printf("<A HREF=\"#top\">top</A> - ");
- printf("<A HREF=\"help.html\">main help file</A>\n");
+ printf("<A HREF=\"index.html\">main help file</A>\n");
} else {
printf("<A HREF=\"#top\">top</A>\n");
}