Skip to content

Instantly share code, notes, and snippets.

@jmackie
Last active February 21, 2018 09:52
Show Gist options
  • Save jmackie/1b147dd1ab5fb4484515bfbf82eef249 to your computer and use it in GitHub Desktop.
Save jmackie/1b147dd1ab5fb4484515bfbf82eef249 to your computer and use it in GitHub Desktop.
OpenSearchDescription for purescript's API search engine (Pursuit)
var url =
'https://gist.githubusercontent.com/jmackie/' +
'1b147dd1ab5fb4484515bfbf82eef249/raw/' +
'661eb53afa3ac392967db4a1d4cb32906603cfba/search.xml';
window.external.AddSearchProvider(url);
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Pursuit</ShortName>
<LongName>Pursuit - Purescript API Search</LongName>
<Description>
Pursuit hosts API documentation for PureScript packages.
It lets you search by package, module, and function names,
as well as approximate type signatures.
</Description>
<Tags>purescript</Tags>
<Url type="text/html" template="https://pursuit.purescript.org/search?q={searchTerms}"/>
<!--NOT IMPLEMENTED YET Url type="application/x-suggestions+json" template=""-->
<Image height="16" width="16" type="image/png">https://pursuit.purescript.org/static/res/favicon/favicon-16x16.png</Image>
<Image height="32" width="32" type="image/png">https://pursuit.purescript.org/static/res/favicon/favicon-32x32.png</Image>
<Developer>Jordan Mackie</Developer>
<AdultContent>false</AdultContent>
<Language>en-us</Language>
<OutputEncoding>UTF-8</OutputEncoding>
<InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment