ソースを参照

add generated files

Noémi Ványi 8 年 前
コミット
feb25d3a53
共有2 個のファイルを変更した30 個の追加0 個の削除を含む
  1. 16
    0
      _sources/admin/api.txt
  2. 14
    0
      admin/api.html

+ 16
- 0
_sources/admin/api.txt ファイルの表示

@@ -76,3 +76,19 @@ Sample response
76 76
       ], 
77 77
       "safe_search": 0
78 78
     }
79
+
80
+Embed search bar
81
+----------------
82
+
83
+The search bar can be embedded into websites. Just paste the example into the HTML of the site.
84
+URL of the searx instance and values are customizable.
85
+
86
+.. code:: html
87
+    
88
+    <form method="post" action="https://searx.me/">
89
+        <!-- search query --> <input type="text" name="q" />
90
+        <!-- categories   --> <input type="hidden" name="categories" value="general,social media" />
91
+        <!-- language     --> <input type="hidden" name="lang" value="all" />
92
+        <!-- locale       --> <input type="hidden" name="locale" value="en" />
93
+        <!-- date filter  --> <input type="hidden" name="time_range" value="month" />
94
+    </form>

+ 14
- 0
admin/api.html ファイルの表示

@@ -114,6 +114,20 @@
114 114
 </div>
115 115
 </div>
116 116
 </div>
117
+<div class="section" id="embed-search-bar">
118
+<h1>Embed search bar<a class="headerlink" href="#embed-search-bar" title="Permalink to this headline">¶</a></h1>
119
+<p>The search bar can be embedded into websites. Just paste the example into the HTML of the site.
120
+URL of the searx instance and values are customizable.</p>
121
+<div class="code html highlight-default"><div class="highlight"><pre><span></span>&lt;form method=&quot;post&quot; action=&quot;https://searx.me/&quot;&gt;
122
+    &lt;!-- search query --&gt; &lt;input type=&quot;text&quot; name=&quot;q&quot; /&gt;
123
+    &lt;!-- categories   --&gt; &lt;input type=&quot;hidden&quot; name=&quot;categories&quot; value=&quot;general,social media&quot; /&gt;
124
+    &lt;!-- language     --&gt; &lt;input type=&quot;hidden&quot; name=&quot;lang&quot; value=&quot;all&quot; /&gt;
125
+    &lt;!-- locale       --&gt; &lt;input type=&quot;hidden&quot; name=&quot;locale&quot; value=&quot;en&quot; /&gt;
126
+    &lt;!-- date filter  --&gt; &lt;input type=&quot;hidden&quot; name=&quot;time_range&quot; value=&quot;month&quot; /&gt;
127
+&lt;/form&gt;
128
+</pre></div>
129
+</div>
130
+</div>
117 131
 
118 132
 
119 133
           </div>