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
Assignees
Labels
component:web enhancement good first issue

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">
@horazont horazont added component:web enhancement labels Oct 13, 2019
@horazont horazont self-assigned this Oct 13, 2019
@horazont horazont added the good first issue label Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:web enhancement good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants