git: 1b5f29633c - main - enable opensearch autocomplete/suggestion for FreeBSD manual pages

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Sun, 08 Jan 2023 07:44:48 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=1b5f29633c584a45e4adb674c27d33c2225799be

commit 1b5f29633c584a45e4adb674c27d33c2225799be
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-01-08 07:43:55 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-01-08 07:43:55 +0000

    enable opensearch autocomplete/suggestion for FreeBSD manual pages
---
 .../themes/beastie/static/opensearch/man-freebsd-release-ports.xml    | 4 +++-
 website/themes/beastie/static/opensearch/man.xml                      | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/website/themes/beastie/static/opensearch/man-freebsd-release-ports.xml b/website/themes/beastie/static/opensearch/man-freebsd-release-ports.xml
index 2efbd83717..2fa9efe9af 100644
--- a/website/themes/beastie/static/opensearch/man-freebsd-release-ports.xml
+++ b/website/themes/beastie/static/opensearch/man-freebsd-release-ports.xml
@@ -1,8 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
   <ShortName>FreeBSD Man+P</ShortName>
   <Description>FreeBSD Release + Ports Manual Pages</Description>
   <InputEncoding>UTF-8</InputEncoding>
   <Image width="16" height="16" type="image/x-icon">https://www.freebsd.org/favicon.ico</Image>
-  <Url type="text/html" method="get" template="https://www.freebsd.org/cgi/man.cgi?sourceid=opensearch&amp;manpath=freebsd-release-ports&amp;query={searchTerms}"/>
+  <Url template="https://www.freebsd.org/cgi/man.cgi?sourceid=opensearch&amp;manpath=freebsd-release-ports&amp;query={searchTerms}" type="text/html" method="get" />
+  <Url template="https://www.freebsd.org/cgi/man-autocomplete.cgi?sourceid=opensearch&amp;ns=opensearch&amp;manpath=freebsd-release-ports&amp;query={searchTerms}" type="application/x-suggestions+json" />
   <moz:SearchForm>https://www.freebsd.org/cgi/man.cgi?manpath=freebsd-release-ports</moz:SearchForm>
 </OpenSearchDescription>
diff --git a/website/themes/beastie/static/opensearch/man.xml b/website/themes/beastie/static/opensearch/man.xml
index 3803c4c910..68b81999c9 100644
--- a/website/themes/beastie/static/opensearch/man.xml
+++ b/website/themes/beastie/static/opensearch/man.xml
@@ -1,8 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
   <ShortName>FreeBSD Man</ShortName>
   <Description>FreeBSD Release Manual Pages</Description>
   <InputEncoding>UTF-8</InputEncoding>
   <Image width="16" height="16" type="image/x-icon">https://www.freebsd.org/favicon.ico</Image>
-  <Url type="text/html" method="get" template="https://www.freebsd.org/cgi/man.cgi?sourceid=opensea&amp;manpath=freebsd-release&amp;query={searchTerms}" />
+  <Url template="https://www.freebsd.org/cgi/man.cgi?sourceid=opensearch&amp;manpath=freebsd-release&amp;query={searchTerms}" type="text/html" method="get" />
+  <Url template="https://www.freebsd.org/cgi/man-autocomplete.cgi?sourceid=opensearch&amp;ns=opensearch&amp;manpath=freebsd-release&amp;query={searchTerms}" type="application/x-suggestions+json" />
   <moz:SearchForm>https://www.freebsd.org/cgi/man.cgi?manpath=freebsd-release</moz:SearchForm>
 </OpenSearchDescription>