Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSearch description #43

Closed
Zash opened this issue Oct 13, 2019 · 0 comments · Fixed by #47
Closed

OpenSearch description #43

Zash opened this issue Oct 13, 2019 · 0 comments · Fixed by #47

Comments

@Zash
Copy link

@Zash Zash commented Oct 13, 2019

Having an OpenSearch description document allows some software (e.g. Firefox) to automatically pick up on search features on a page.

Specification appears to be this:
https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md

Example minimal description document:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>search.jabber.network</ShortName>
  <Url type="text/html" template="https://search.jabber.network/search?q={searchTerms}"/>
</OpenSearchDescription>

And this snippet in the HTML to reference it:

<link rel="search" type="application/opensearchdescription+xml"
 href="/opensearchdescription" title="search.jabber.network">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.