1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Merge pull request #268 from madsmtm/add-opensearch

Add OpenSearch description format file
This commit is contained in:
Igor Chubin
2021-01-01 12:19:24 +01:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -103,6 +103,7 @@ fi
printf '%s' "<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/files/opensearch.xml\" title=\"cheat.sh\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"/files/style.css\" />
<style type=\"text/css\">
.ef0,.f0 { color: #$P0; } .eb0,.b0 { background-color: #$P0; }
+10
View File
@@ -0,0 +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>cheat.sh</ShortName>
<Description>The only cheat sheet you need. Unified access to the best community driven documentation repositories of the world.</Description>
<Url type="text/html" template="https://cheat.sh/{searchTerms}" />
<Url type="application/opensearchdescription+xml" rel="self" template="https://cheat.sh/files/opensearch.xml" />
<Tags>cheatsheet curl terminal command-line cli examples documentation help tldr</Tags>
<Language>en-US</Language>
<moz:SearchForm>https://cheat.sh</moz:SearchForm>
</OpenSearchDescription>