Hello!

There are two issues with the search box in the online documentation.
One is that search in v2.15 documentation adds +v2.14 to the
Google search, so it look in the older documentation.

The other is that "+" doesn't have the old meaning since the
introduction of Google Plus.  To ensure that "v2.15" appears on the
page or in the URL, it should be added in quotes.

A simpler alternative would be to use this in the search:

site:lilypond.org/doc/v2.15

That would tell Google to search documents only under
lilypond.org/doc/v2.15, which is probably our intention.

Here's the patch.  Please let me know if a sign off or something like
that is needed.  It's my first ever patch for LilyPond.


Doc search: update to version 2.15, use it in the "site:" part

site:lilypond.org/doc/v2.15 means that we want to look only under that
directory.  Leading plus doesn't force the exact search anymore.
---

 Documentation/search-box.ihtml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Documentation/search-box.ihtml b/Documentation/search-box.ihtml
index d789109..1c9ceb4 100644
--- a/Documentation/search-box.ihtml
+++ b/Documentation/search-box.ihtml
@@ -1,11 +1,11 @@
 <form action="http://google.com/search";
       method="get"
       name="search"
-      onSubmit="search.q.value='site:lilypond.org +v2.14 '
+      onSubmit="search.q.value='site:lilypond.org/doc/v2.15 '
                + search.brute_query.value"
-      onMouseMove="search.q.value='site:lilypond.org +v2.14 '
+      onMouseMove="search.q.value='site:lilypond.org/doc/v2.15 '
                   + search.brute_query.value"
-      onKeyUp="search.q.value='site:lilypond.org +v2.14 '
+      onKeyUp="search.q.value='site:lilypond.org/doc/v2.15 '
               + search.brute_query.value">
   <input type="hidden" name="btnG" value="Google Search">
   <input type="text" name="brute_query" onfocus="this.value=''" value="Search">


-- 
Regards,
Pavel Roskin

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to