build/doc: generate vimindex.html

This note in runtime/doc/Makefile explains the special-case:

    index.html is the starting point for HTML, but for the help files it
    is help.txt.  Therefore use vimindex.html for index.txt.

fix #8907
This commit is contained in:
Justin M. Keyes 2018-08-25 15:24:47 +02:00
parent c0157e8fe0
commit ff18d3b827
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ HTMLS = $(DOCS:.txt=.html)
.SUFFIXES: .c .o .txt .html .SUFFIXES: .c .o .txt .html
# Awk version of .txt to .html conversion. # Awk version of .txt to .html conversion.
html: noerrors $(HTMLS) html: noerrors vimindex.html $(HTMLS)
@if test -f errors.log; then cat errors.log; fi @if test -f errors.log; then cat errors.log; fi
noerrors: noerrors:

View File

@ -135,11 +135,11 @@ NR == 1 { nf=split(FILENAME,f,".")
# common case - Latin1 # common case - Latin1
print "<META HTTP-EQUIV=\"Content-type\" content=\"text/html; charset=ISO-8859-1\">"; print "<META HTTP-EQUIV=\"Content-type\" content=\"text/html; charset=ISO-8859-1\">";
} }
print "<TITLE>Vim documentation: " f[1] "</TITLE>"; print "<TITLE>Nvim documentation: " f[1] "</TITLE>";
print "</HEAD>"; print "</HEAD>";
print "<BODY BGCOLOR=\"#ffffff\">"; print "<BODY BGCOLOR=\"#ffffff\">";
print "<H1>Vim documentation: " f[1] "</H1>"; print "<H1>Nvim documentation: " f[1] "</H1>";
print "<A NAME=\"top\"></A>"; print "<A NAME=\"top\"></A>";
if ( FILENAME != "help.txt" ) { if ( FILENAME != "help.txt" ) {
print "<A HREF=\"index.html\">main help file</A>\n"; print "<A HREF=\"index.html\">main help file</A>\n";