summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-07 09:57:26 -0600
committerDan McGee <dan@archlinux.org>2010-02-08 21:01:15 -0600
commit8c077a4caa73c7e4a5e148195f1d6d3cdae572cf (patch)
treec69b42fdf68773894baf45b1f1feefe1f20eb849 /templates/packages
parentf445754db57f37dcb1821a9330aa238632457146 (diff)
Add OpenSearch support to the site
Implements FS#14185. It is a bit more complex than listed there as I wanted to not hardcode the URLs in the descriptor file; to do this we need to make it a template and fill some things in. We also need to serve the file using the correct mime type. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/opensearch.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/packages/opensearch.xml b/templates/packages/opensearch.xml
new file mode 100644
index 00000000..711b36a2
--- /dev/null
+++ b/templates/packages/opensearch.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+ <ShortName>Arch Linux Packages</ShortName>
+ <Description>Search the Arch Linux package repositories.</Description>
+ <Tags>linux archlinux package software</Tags>
+ <Image height="16" width="16" type="image/x-icon">{{domain}}/media/favicon.ico</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="self" type="application/opensearchdescription+xml" template="{{domain}}/opensearch/packages/"/>
+</OpenSearchDescription>