Skip to content

Commit 30ba373

Browse files
committed
vimhelp: Enable site search functionality
Now that search engines have had time to index macvim.org/docs, enable site search functionality.
1 parent dafea9e commit 30ba373

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

vimhelp/templates/page.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ <h1>{{project.name}} help files</h1>
8181
<a href="gui_mac.txt.html">MacVim reference</a> &middot;
8282
<a href="quickref.txt.html">quick reference</a> &middot;
8383
<a href="index.txt.html">commands index</a> &middot;
84-
<a href="usr_toc.txt.html">user manual toc</a> &middot;
85-
<a href="{{helptxt}}#reference_toc">reference manual toc</a>
84+
<a href="usr_toc.txt.html">user manual</a> &middot;
85+
<a href="{{helptxt}}#reference_toc">reference manual</a>
8686
{% if project.name == "Vim" %}
8787
&middot; <a href="vim_faq.txt.html">faq</a>
8888
{% endif %}
@@ -94,12 +94,10 @@ <h1>{{project.name}} help files</h1>
9494
<div class="srch" id="go-to-tag">
9595
<select id="vh-select-tag"></select>
9696
</div>
97-
{% if project.name != "MacVim" %}
9897
<form class="srch" action="https://duckduckgo.com" method="get" target="_blank" rel="noopener noreferrer">
9998
<input type="hidden" name="sites" value="{{project.vimdoc_site}}">
10099
<input type="search" name="q" id="vh-srch-input" placeholder="Site search">
101100
</form>
102-
{% endif %}
103101
{% if filename != "help.txt" %}
104102
{{theme_switcher}}
105103
{% endif %}

vimhelp/vimhelp/vimh2h.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class MacVimProject:
1313
name = "MacVim"
1414
contrasted_name = "MacVim"
1515
url = "https://macvim.org/"
16+
vimdoc_site = "macvim.org/docs"
1617
repo = "https://github.com/macvim-dev/macvim/"
1718
doc_src_url = "https://github.com/macvim-dev/macvim/tree/master/runtime/doc"
1819

0 commit comments

Comments
 (0)