Skip to content

Commit

Permalink
Adding opensearch definition XML for CookBook 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
powtac committed Oct 4, 2012
1 parent 3853b72 commit eee0862
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions themes/cakephp/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
13 changes: 13 additions & 0 deletions themes/cakephp/static/opensearchdescription-book-2-x.xml
Original file line number Diff line number Diff line change
@@ -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 eee0862

Please sign in to comment.