aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/makehtml.awk
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-09-21 11:54:34 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-09-21 11:54:34 -0400
commit2f212ca2ebec9a735c3ae4904fc1a1adbeb5d908 (patch)
tree95ab16a6e9c744154bb42c224ef3ba3e7e39b66e /runtime/doc/makehtml.awk
parent0ed9f3ec8338783466b0a6ab2661d9a061a436fa (diff)
parentbb176f4a7e6422cf3c66d2beee6ce984b7795f66 (diff)
downloadrneovim-2f212ca2ebec9a735c3ae4904fc1a1adbeb5d908.tar.gz
rneovim-2f212ca2ebec9a735c3ae4904fc1a1adbeb5d908.tar.bz2
rneovim-2f212ca2ebec9a735c3ae4904fc1a1adbeb5d908.zip
Merge pull request #1011 from stefan991/cleanup-docs
Cleanup user documentation build
Diffstat (limited to 'runtime/doc/makehtml.awk')
-rw-r--r--runtime/doc/makehtml.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/makehtml.awk b/runtime/doc/makehtml.awk
index 5e40069391..a1f77f5aba 100644
--- a/runtime/doc/makehtml.awk
+++ b/runtime/doc/makehtml.awk
@@ -6,6 +6,13 @@ BEGIN {
sample="no";
while ( getline ti <"tags.ref" > 0 ) {
nf=split(ti,tag," ");
+ # as help.txt renders into index.html and index.txt -> vimindex.html,
+ # this hack is needed to get the links right to those pages.
+ if ( tag[2] == "index.txt" ) {
+ tag[2] = "vimindex.txt"
+ } else if ( tag[2] == "help.txt" ) {
+ tag[2] = "index.txt"
+ }
tagkey[tag[1]]="yes";tagref[tag[1]]=tag[2];
}
skip_word["and"]="yes";