Browse files

Merge pull request #399 from powtac/master

Adding opensearch declaration XML, so browsers will offer Cake Book search in their search box
  • Loading branch information...
2 parents 3853b72 + eee0862 commit b8e604a2c6d444807e87323f305889ff7dc67259 @lorenzo lorenzo committed Oct 4, 2012
Showing with 14 additions and 0 deletions.
  1. +1 −0 themes/cakephp/layout.html
  2. +13 −0 themes/cakephp/static/opensearchdescription-book-2-x.xml
View
1 themes/cakephp/layout.html
@@ -5,6 +5,7 @@
{% block extrahead %}
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+<link rel="search" type="application/opensearchdescription+xml" title="CakePHP Book 2.x Search" href="_static/opensearchdescription-book-2-x.xml">
<script type="text/javascript">
window.lang = "{{ language }}";
</script>
View
13 themes/cakephp/static/opensearchdescription-book-2-x.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+ <ShortName>CakePHP Book 2.x</ShortName>
+ <Description>The CakePHP cookbook, is an openly developed community editable documentation project.</Description>
+ <Image height="16" width="16" type="image/x-icon">http://book.cakephp.org/favicon.ico</Image>
+
+ <Url type="text/html"
+ method="get"
+ template="http://book.cakephp.org/2.0/en/search.html?q={searchTerms}&amp;check_keywords=yes&amp;area=default">
+ </Url>
+ <OutputEncoding>UTF-8</OutputEncoding>
+ <InputEncoding>UTF-8</InputEncoding>
+</OpenSearchDescription>

0 comments on commit b8e604a

Please sign in to comment.