mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
Add OpenSearch description format file
See https://github.com/dewitt/opensearch and https://developer.mozilla.org/en-US/docs/Web/OpenSearch for more info.
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\" />
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"/files/fonts/stylesheet.css\" />
|
||||
<style type=\"text/css\">
|
||||
|
||||
@@ -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/?topic={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