svn commit: r45919 - head/share/xml

Gavin Atkinson gavin at FreeBSD.org
Tue Nov 4 04:40:15 UTC 2014


Author: gavin
Date: Tue Nov  4 04:40:14 2014
New Revision: 45919
URL: https://svnweb.freebsd.org/changeset/doc/45919

Log:
  Switch the default search engine on www.FreeBSD.org to use DuchDuckGo
  rather than our own (poor) search.cgi.  Provide results from www, lists,
  wiki and forums.FreeBSD.org.
  
  Discussed with:	peter, gjb
  Approved by:	doceng (gjb), core (emaste)

Modified:
  head/share/xml/header.ent

Modified: head/share/xml/header.ent
==============================================================================
--- head/share/xml/header.ent	Tue Nov  4 04:15:49 2014	(r45918)
+++ head/share/xml/header.ent	Tue Nov  4 04:40:14 2014	(r45919)
@@ -64,21 +64,19 @@
 
 <!ENTITY header2.searchbox '
   <div id="search" xmlns="http://www.w3.org/1999/xhtml">
-    <form action="&cgibase;/search.cgi" method="get">
-      <div>
-        <h2 class="blockhide"><label for="words">&header2.word.search;</label></h2>
-
-	<div>
-            <input type="hidden" name="max" value="25" />
-            <input type="hidden" name="source" value="www" />
-            <input id="words" name="words" type="text" size="20"
-                   maxlength="255"
-                   onfocus="if( this.value==this.defaultValue ) this.value='';"
-                   value="&header2.word.search;" /><![CDATA[ ]]>
-	    <span> </span>
-            <input id="submit" name="submit" type="submit" value="&header2.word.search;" />
-	</div>
-      </div>
+    <form method="get" id="search" action="http://duckduckgo.com/">
+      <h2 class="blockhide"><label for="words">&header2.word.search;</label></h2>
+      <input type="hidden" name="sites" value="www.FreeBSD.org,lists.FreeBSD.org,wiki.FreeBSD.org,forums.FreeBSD.org" />
+      <input type="hidden" name="ka" value="v" />
+      <input type="hidden" name="kt" value="v" />
+      <input type="hidden" name="kh" value="1" />
+      <input type="hidden" name="kj" value="r2" />
+      <input id="words" name="q" type="text" size="20"
+        maxlength="255"
+        onfocus="if( this.value==this.defaultValue ) this.value='';"
+        value="&header2.word.search;" />
+      <span> </span>
+      <input id="submit" name="submit" type="submit" value="&header2.word.search;" />
     </form>
   </div> <!-- SEARCH -->
 '>


More information about the svn-doc-head mailing list