Skip to content

Commit d80d4b5

Browse files
authored
Merge pull request chubin#268 from madsmtm/add-opensearch
Add OpenSearch description format file
2 parents f0ead68 + 15e46b2 commit d80d4b5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

share/ansi2html.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fi
103103
printf '%s' "<html>
104104
<head>
105105
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
106+
<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/files/opensearch.xml\" title=\"cheat.sh\" />
106107
<link rel=\"stylesheet\" type=\"text/css\" href=\"/files/style.css\" />
107108
<style type=\"text/css\">
108109
.ef0,.f0 { color: #$P0; } .eb0,.b0 { background-color: #$P0; }

share/static/opensearch.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
3+
<ShortName>cheat.sh</ShortName>
4+
<Description>The only cheat sheet you need. Unified access to the best community driven documentation repositories of the world.</Description>
5+
<Url type="text/html" template="https://cheat.sh/{searchTerms}" />
6+
<Url type="application/opensearchdescription+xml" rel="self" template="https://cheat.sh/files/opensearch.xml" />
7+
<Tags>cheatsheet curl terminal command-line cli examples documentation help tldr</Tags>
8+
<Language>en-US</Language>
9+
<moz:SearchForm>https://cheat.sh</moz:SearchForm>
10+
</OpenSearchDescription>

0 commit comments

Comments
 (0)