Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

OpenSearch plugin - pull request according to issue 31 #32

Merged
1 commit merged into from

2 participants

@dedeibel

Hi Zack,

I already told you about this in github issue 31. https://github.com/zkim/clojuredocs/issues#issue/31

Maybe you could review and test it and hopefully find it useful.

I am not sure if you use some mechanism to configure the target domain of the project, if so, it would be good to replace "clojure.org" in the opensearch.xml with a variable that might be replaced during "build". Else, just be aware the domain is hardcoded in there :-)

regards,

Ben.

@dedeibel dedeibel Added clojure docs search engine plugin (OpenSearch - FF 2/3, IE 7/8 …
…and Chrome) and added meta info to main layout file
d661d68
@zk
Owner
zk commented

Ben-

Thanks, I'm ok with the hard-coding of clojuredocs.org as the domain name. Testing your changes now.

-Zack

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 28, 2011
  1. @dedeibel

    Added clojure docs search engine plugin (OpenSearch - FF 2/3, IE 7/8 …

    dedeibel authored
    …and Chrome) and added meta info to main layout file
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +1 −0  app/views/layouts/main.html.erb
  2. +11 −0 public/opensearch.xml
View
1  app/views/layouts/main.html.erb
@@ -6,6 +6,7 @@
<meta name="description" content="Documentation and examples for Clojure." />
<meta name="google-site-verification" content="XjzqkjEPtcgtLjhnqAvtnVSeveEccs-O_unFGGlbk4g" />
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
+ <link rel="search" type="application/opensearchdescription+xml" title="ClojureDocs" href="opensearch.xml">
<%= stylesheet_link_tag 'reset.css',
'text.css',
'grid.css',
View
11 public/opensearch.xml
@@ -0,0 +1,11 @@
+<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
+<os:ShortName>ClojureDocs</os:ShortName>
+<os:Description>ClojureDocs Keyword Search</os:Description>
+<os:InputEncoding>ISO-8859-1</os:InputEncoding>
+<os:Image width="16" height="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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEDAwMEBAQCAgIAAAABAQEBAwMDBAQEAgICAAAAAQEBAQMDAwQEBAICAgAAAAEBAQEDAwMEBAQCAgIAAAABAQEBAwMDBAQEAgICAAAAAQEBAQMDAwQEBAICAgAAAAEBAQEDAwMEBAQCAgIAAAABAQEBAwMDBAQEAgICAAAAAQEBAQMDAwQEBAICAgAAAAEBAQEDAwMEBAQCAgIAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf//AAD//wAA//8AAMADAADAAwAAwAMAAMADAADAAwAAwAMAAMADAADAAwAAwAMAAMADAAD//wAA//8AAP//AAA=</os:Image>
+<UpdateUrl>http://clojuredocs.org/opensearch.xml</UpdateUrl>
+<SearchForm>http://clojuredocs.org/</SearchForm>
+<os:Url type="text/html" method="GET" template="http://clojuredocs.org/search?q={searchTerms}">
+</os:Url><os:Url type="application/opensearchdescription+xml" method="GET" template="http://clojuredocs.org/opensearch.xml" rel="self">
+</os:Url>
+</SearchPlugin>
Something went wrong with that request. Please try again.