Support opensearch on postgresql.org

From: Dmitry Marakasov <amdmi3(at)amdmi3(dot)ru>
To: pgsql-www(at)lists(dot)postgresql(dot)org
Subject: Support opensearch on postgresql.org
Date: 2020-11-02 14:45:24
Message-ID: 20201102144524.GU30304@hades.panopticon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Hi!

I propose to support OpenSearch [1] specification on postgresql.org,
which would allow anyone to easily add postgresql.org site search to
their browser. Using postgresql search directly is much more useful
than using generic search engine like google because it doesn't return
advertising or unrelevant results and seems to prefer the latest version
of documentation.

I've made a ready to use .xml description which can be pointed to from
postgresql.org pages with the following code in <head> block:

<link rel="search" type="application/opensearchdescription+xml" title="PostgreSQL" href="/opensearch-postgresql.xml">

--- opensearch-postgresql.xml begins here ---
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>PostgreSQL</ShortName>
<LongName>PostgreSQL site search</LongName>
<Description>Search PostgrelSQL site</Description>
<Tags>postgresql database</Tags>
<Image height="16" width="16" type="image/png">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEUAAAA/Pz9/f39/f78/f38/f7+/v79/v78AAAD///9OmeNAAAAAAXRSTlMAQObYZgAAAAFiS0dECfHZpewAAAAHdElNRQfkCh8PGxJSGFGzAAAAcUlEQVQIHQXBMQ7CMBBFwedwAcuIPrbMCVjJ1PGHrSEFPRHQk3B/ZiDlUEqGweZXX/vIQS51u1PlkraJqrbKlxtH/Zrm7cxe5nIb2clcfooMeri0QLDrW3pmqN9m+mQYUtElAhDUIwDBOgBgEwCQRvgDlSUWvPhexnsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAtMzFUMTU6MTk6NTUrMDA6MDAzahANAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTExLTA4VDEyOjIwOjM2KzAwOjAwLLlexwAAAABJRU5ErkJggg==</Image>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Url type="text/html" method="get" template="https://www.postgresql.org/search/?q={searchTerms}"/>
<Query role="example" searchTerms="window functions"/>
<Language>en-us</Language>
</OpenSearchDescription>
--- opensearch-postgresql.xml ends here ---

[1] https://en.wikipedia.org/wiki/OpenSearch

--
Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D
amdmi3(at)amdmi3(dot)ru ..: https://github.com/AMDmi3

Browse pgsql-www by date

  From Date Subject
Next Message Justin Pryzby 2020-11-02 18:33:48 "Resend email" not working
Previous Message Tom Lane 2020-11-02 14:19:11 Re: sudo inconsistencies in download pages