about summary refs log tree commit diff
path: root/web/atward/src/opensearch.xml
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-05-11T21·58+0200
committertazjin <mail@tazj.in>2021-05-11T22·45+0000
commitcb497a0ccae3f90122c6c8d6d99addded11cd501 (patch)
treee84f71eb970b5e02a908eacedc1acd713a459cce /web/atward/src/opensearch.xml
parent99d11bef5fd32aa5dfb3b091fea3e6b15fc6ac26 (diff)
feat(atward): Serve OpenSearch XML file to support Firefox r/2579
Firefox users can not easily add search engines to the browser unless
the page serves an OpenSearch description. This CL adds said
description according to the documentation:

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

Change-Id: I358c5940304f4abd9e45dd72a64e46d3ce44b3e3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3105
Tested-by: BuildkiteCI
Reviewed-by: cynthia <cynthia@tvl.fyi>
Diffstat (limited to 'web/atward/src/opensearch.xml')
-rw-r--r--web/atward/src/opensearch.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/atward/src/opensearch.xml b/web/atward/src/opensearch.xml
new file mode 100644
index 000000000000..6033987f5b4b
--- /dev/null
+++ b/web/atward/src/opensearch.xml
@@ -0,0 +1,8 @@
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+  <ShortName>TVL</ShortName>
+  <Description>The Virus Lounge Search</Description>
+  <InputEncoding>UTF-8</InputEncoding>
+  <Url type="text/html" template="https://at.tvl.fyi/">
+    <Param name="q" value="{searchTerms}"/>
+  </Url>
+</OpenSearchDescription>