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:
@@ -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; }
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user