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

Add OpenSearch #5

Open
rnkn opened this issue Nov 1, 2024 · 0 comments
Open

Add OpenSearch #5

rnkn opened this issue Nov 1, 2024 · 0 comments

Comments

@rnkn
Copy link

rnkn commented Nov 1, 2024

Hello. Thanks for creating this project. I use it constantly via https://openports.pl.

Solene pointed me to you after I suggested adding OpenSearch to the site. It’s a short XML file that allows searching directly from the location bar:

https://developer.mozilla.org/en-US/docs/Web/OpenSearch

Here's an example for https://openports.pl:

<OpenSearchDescription>
  <ShortName>openports.pl</ShortName>
  <Description>Search for OpenBSD ports</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image width="16" height="16" type="image/x-icon">https://openports.pl/favicon.ico</Image>
  <Url type="text/html" template="https://openports.pl/search?pkgname={searchTerms}"/>
</OpenSearchDescription>

I'm not exactly sure how to implement this with Dancer, otherwise this would have been a PR. I assume it would go in /public but do those files go through template interpolation?

Either way, would you be interested in adding OpenSearch to the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant