mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
c0157e8fe0
commit
ff18d3b827
@ -13,7 +13,7 @@ HTMLS = $(DOCS:.txt=.html)
|
||||
.SUFFIXES: .c .o .txt .html
|
||||
|
||||
# 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
|
||||
|
||||
noerrors:
|
||||
|
@ -135,11 +135,11 @@ NR == 1 { nf=split(FILENAME,f,".")
|
||||
# common case - Latin1
|
||||
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 "<BODY BGCOLOR=\"#ffffff\">";
|
||||
print "<H1>Vim documentation: " f[1] "</H1>";
|
||||
print "<H1>Nvim documentation: " f[1] "</H1>";
|
||||
print "<A NAME=\"top\"></A>";
|
||||
if ( FILENAME != "help.txt" ) {
|
||||
print "<A HREF=\"index.html\">main help file</A>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user