evorepo/templates/packages/opensearch.xml
Dan McGee b59e79f387 Opensearch enhancements
* Add a 64x64 icon as indicated in the Opensearch specification.
* Add suggestions capability and a new view providing suggestions based
  on package name starting with the typed value.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-01 17:13:33 -05:00

19 lines
1.1 KiB
XML

{% load static from staticfiles %}<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Arch Packages</ShortName>
<LongName>Arch Linux Package Repository Search</LongName>
<Description>Search the Arch Linux package repositories by keyword in package names and descriptions.</Description>
<Tags>linux archlinux package software</Tags>
<Image height="16" width="16" type="image/x-icon">{{ domain }}{% static "favicon.ico" %}</Image>
<Image height="64" width="64" type="image/png">{{ domain }}{% static "logos/icon-transparent-64x64.png" %}</Image>
<Language>en-us</Language>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Query role="example" searchTerms="initscripts"/>
<Url type="text/html" template="{{ domain }}/packages/?q={searchTerms}"/>
<Url rel="suggestions" type="application/x-suggestions+json"
template="{{ domain }}/opensearch/packages/suggest?q={searchTerms}"/>
<Url rel="self" type="application/opensearchdescription+xml"
template="{{ domain }}/opensearch/packages/"/>
</OpenSearchDescription>