Browse Source

generated files of parent

Noémi Ványi 8 years ago
parent
commit
1db5af1e95

+ 7
- 0
_static/basic.css View File

494
     overflow-y: hidden;  /* fixes display issues on Chrome browsers */
494
     overflow-y: hidden;  /* fixes display issues on Chrome browsers */
495
 }
495
 }
496
 
496
 
497
+span.pre {
498
+    -moz-hyphens: none;
499
+    -ms-hyphens: none;
500
+    -webkit-hyphens: none;
501
+    hyphens: none;
502
+}
503
+
497
 td.linenos pre {
504
 td.linenos pre {
498
     padding: 5px 0px;
505
     padding: 5px 0px;
499
     border: 0;
506
     border: 0;

+ 2
- 0
_static/pygments.css View File

4
 .highlight .err { border: 1px solid #FF0000 } /* Error */
4
 .highlight .err { border: 1px solid #FF0000 } /* Error */
5
 .highlight .k { color: #007020; font-weight: bold } /* Keyword */
5
 .highlight .k { color: #007020; font-weight: bold } /* Keyword */
6
 .highlight .o { color: #666666 } /* Operator */
6
 .highlight .o { color: #666666 } /* Operator */
7
+.highlight .ch { color: #408090; font-style: italic } /* Comment.Hashbang */
7
 .highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */
8
 .highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */
8
 .highlight .cp { color: #007020 } /* Comment.Preproc */
9
 .highlight .cp { color: #007020 } /* Comment.Preproc */
10
+.highlight .cpf { color: #408090; font-style: italic } /* Comment.PreprocFile */
9
 .highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */
11
 .highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */
10
 .highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
12
 .highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
11
 .highlight .gd { color: #A00000 } /* Generic.Deleted */
13
 .highlight .gd { color: #A00000 } /* Generic.Deleted */

+ 1
- 1
_static/searchtools.js View File

324
     var searchterms = [];
324
     var searchterms = [];
325
     var excluded = [];
325
     var excluded = [];
326
     var hlterms = [];
326
     var hlterms = [];
327
-    var tmp = query.split(/\s+/);
327
+    var tmp = query.split(/\W+/);
328
     var objectterms = [];
328
     var objectterms = [];
329
     for (i = 0; i < tmp.length; i++) {
329
     for (i = 0; i < tmp.length; i++) {
330
       if (tmp[i] !== "") {
330
       if (tmp[i] !== "") {

+ 47
- 45
admin/api.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Administration API &mdash; searx 0.9.0 documentation</title>
9
+    <title>Administration API &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
27
-    <link rel="next" title="Development Quickstart" href="../dev/quickstart.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
29
+    <link rel="next" title="How to protect an instance" href="filtron.html" />
28
     <link rel="prev" title="Installation" href="../dev/install/installation.html" />
30
     <link rel="prev" title="Installation" href="../dev/install/installation.html" />
29
    
31
    
30
   
32
   
43
 <span id="adminapi"></span><h1>Administration API<a class="headerlink" href="#administration-api" title="Permalink to this headline">¶</a></h1>
45
 <span id="adminapi"></span><h1>Administration API<a class="headerlink" href="#administration-api" title="Permalink to this headline">¶</a></h1>
44
 <div class="section" id="get-configuration-data">
46
 <div class="section" id="get-configuration-data">
45
 <h2>Get configuration data<a class="headerlink" href="#get-configuration-data" title="Permalink to this headline">¶</a></h2>
47
 <h2>Get configuration data<a class="headerlink" href="#get-configuration-data" title="Permalink to this headline">¶</a></h2>
46
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">GET</span> <span class="o">/</span><span class="n">config</span>
48
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">GET</span> <span class="o">/</span><span class="n">config</span>
47
 </pre></div>
49
 </pre></div>
48
 </div>
50
 </div>
49
 <div class="section" id="sample-response">
51
 <div class="section" id="sample-response">
50
 <h3>Sample response<a class="headerlink" href="#sample-response" title="Permalink to this headline">¶</a></h3>
52
 <h3>Sample response<a class="headerlink" href="#sample-response" title="Permalink to this headline">¶</a></h3>
51
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="p">{</span>
52
-  <span class="s">&quot;autocomplete&quot;</span><span class="p">:</span> <span class="s">&quot;&quot;</span><span class="p">,</span>
53
-  <span class="s">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
54
-    <span class="s">&quot;map&quot;</span><span class="p">,</span>
55
-    <span class="s">&quot;it&quot;</span><span class="p">,</span>
56
-    <span class="s">&quot;images&quot;</span><span class="p">,</span>
53
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="p">{</span>
54
+  <span class="s2">&quot;autocomplete&quot;</span><span class="p">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
55
+  <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
56
+    <span class="s2">&quot;map&quot;</span><span class="p">,</span>
57
+    <span class="s2">&quot;it&quot;</span><span class="p">,</span>
58
+    <span class="s2">&quot;images&quot;</span><span class="p">,</span>
57
   <span class="p">],</span>
59
   <span class="p">],</span>
58
-  <span class="s">&quot;default_locale&quot;</span><span class="p">:</span> <span class="s">&quot;&quot;</span><span class="p">,</span>
59
-  <span class="s">&quot;default_theme&quot;</span><span class="p">:</span> <span class="s">&quot;oscar&quot;</span><span class="p">,</span>
60
-  <span class="s">&quot;engines&quot;</span><span class="p">:</span> <span class="p">[</span>
60
+  <span class="s2">&quot;default_locale&quot;</span><span class="p">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
61
+  <span class="s2">&quot;default_theme&quot;</span><span class="p">:</span> <span class="s2">&quot;oscar&quot;</span><span class="p">,</span>
62
+  <span class="s2">&quot;engines&quot;</span><span class="p">:</span> <span class="p">[</span>
61
     <span class="p">{</span>
63
     <span class="p">{</span>
62
-      <span class="s">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
63
-        <span class="s">&quot;map&quot;</span>
64
+      <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
65
+        <span class="s2">&quot;map&quot;</span>
64
       <span class="p">],</span>
66
       <span class="p">],</span>
65
-      <span class="s">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
66
-      <span class="s">&quot;name&quot;</span><span class="p">:</span> <span class="s">&quot;openstreetmap&quot;</span><span class="p">,</span>
67
-      <span class="s">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s">&quot;osm&quot;</span>
67
+      <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
68
+      <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;openstreetmap&quot;</span><span class="p">,</span>
69
+      <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;osm&quot;</span>
68
     <span class="p">},</span>
70
     <span class="p">},</span>
69
     <span class="p">{</span>
71
     <span class="p">{</span>
70
-      <span class="s">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
71
-        <span class="s">&quot;it&quot;</span>
72
+      <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
73
+        <span class="s2">&quot;it&quot;</span>
72
       <span class="p">],</span>
74
       <span class="p">],</span>
73
-      <span class="s">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
74
-      <span class="s">&quot;name&quot;</span><span class="p">:</span> <span class="s">&quot;arch linux wiki&quot;</span><span class="p">,</span>
75
-      <span class="s">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s">&quot;al&quot;</span>
75
+      <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
76
+      <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;arch linux wiki&quot;</span><span class="p">,</span>
77
+      <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;al&quot;</span>
76
     <span class="p">},</span>
78
     <span class="p">},</span>
77
     <span class="p">{</span>
79
     <span class="p">{</span>
78
-      <span class="s">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
79
-        <span class="s">&quot;images&quot;</span>
80
+      <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
81
+        <span class="s2">&quot;images&quot;</span>
80
       <span class="p">],</span>
82
       <span class="p">],</span>
81
-      <span class="s">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
82
-      <span class="s">&quot;name&quot;</span><span class="p">:</span> <span class="s">&quot;google images&quot;</span><span class="p">,</span>
83
-      <span class="s">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s">&quot;goi&quot;</span>
83
+      <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
84
+      <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;google images&quot;</span><span class="p">,</span>
85
+      <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;goi&quot;</span>
84
     <span class="p">},</span>
86
     <span class="p">},</span>
85
     <span class="p">{</span>
87
     <span class="p">{</span>
86
-      <span class="s">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
87
-        <span class="s">&quot;it&quot;</span>
88
+      <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
89
+        <span class="s2">&quot;it&quot;</span>
88
       <span class="p">],</span>
90
       <span class="p">],</span>
89
-      <span class="s">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span>
90
-      <span class="s">&quot;name&quot;</span><span class="p">:</span> <span class="s">&quot;bitbucket&quot;</span><span class="p">,</span>
91
-      <span class="s">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s">&quot;bb&quot;</span>
91
+      <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span>
92
+      <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;bitbucket&quot;</span><span class="p">,</span>
93
+      <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;bb&quot;</span>
92
     <span class="p">},</span>
94
     <span class="p">},</span>
93
   <span class="p">],</span>
95
   <span class="p">],</span>
94
-  <span class="s">&quot;instance_name&quot;</span><span class="p">:</span> <span class="s">&quot;searx&quot;</span><span class="p">,</span>
95
-  <span class="s">&quot;locales&quot;</span><span class="p">:</span> <span class="p">{</span>
96
-    <span class="s">&quot;de&quot;</span><span class="p">:</span> <span class="s">&quot;Deutsch (German)&quot;</span><span class="p">,</span>
97
-    <span class="s">&quot;en&quot;</span><span class="p">:</span> <span class="s">&quot;English&quot;</span><span class="p">,</span>
98
-    <span class="s">&quot;eo&quot;</span><span class="p">:</span> <span class="s">&quot;Esperanto (Esperanto)&quot;</span><span class="p">,</span>
96
+  <span class="s2">&quot;instance_name&quot;</span><span class="p">:</span> <span class="s2">&quot;searx&quot;</span><span class="p">,</span>
97
+  <span class="s2">&quot;locales&quot;</span><span class="p">:</span> <span class="p">{</span>
98
+    <span class="s2">&quot;de&quot;</span><span class="p">:</span> <span class="s2">&quot;Deutsch (German)&quot;</span><span class="p">,</span>
99
+    <span class="s2">&quot;en&quot;</span><span class="p">:</span> <span class="s2">&quot;English&quot;</span><span class="p">,</span>
100
+    <span class="s2">&quot;eo&quot;</span><span class="p">:</span> <span class="s2">&quot;Esperanto (Esperanto)&quot;</span><span class="p">,</span>
99
   <span class="p">},</span>
101
   <span class="p">},</span>
100
-  <span class="s">&quot;plugins&quot;</span><span class="p">:</span> <span class="p">[</span>
102
+  <span class="s2">&quot;plugins&quot;</span><span class="p">:</span> <span class="p">[</span>
101
     <span class="p">{</span>
103
     <span class="p">{</span>
102
-      <span class="s">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
103
-      <span class="s">&quot;name&quot;</span><span class="p">:</span> <span class="s">&quot;HTTPS rewrite&quot;</span>
104
+      <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
105
+      <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;HTTPS rewrite&quot;</span>
104
     <span class="p">},</span>
106
     <span class="p">},</span>
105
     <span class="p">{</span>
107
     <span class="p">{</span>
106
-      <span class="s">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span>
107
-      <span class="s">&quot;name&quot;</span><span class="p">:</span> <span class="s">&quot;Vim-like hotkeys&quot;</span>
108
+      <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span>
109
+      <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;Vim-like hotkeys&quot;</span>
108
     <span class="p">}</span>
110
     <span class="p">}</span>
109
   <span class="p">],</span>
111
   <span class="p">],</span>
110
-  <span class="s">&quot;safe_search&quot;</span><span class="p">:</span> <span class="mi">0</span>
112
+  <span class="s2">&quot;safe_search&quot;</span><span class="p">:</span> <span class="mi">0</span>
111
 <span class="p">}</span>
113
 <span class="p">}</span>
112
 </pre></div>
114
 </pre></div>
113
 </div>
115
 </div>

+ 3
- 3
admin/filtron.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>How to protect an instance &#8212; searx 0.9.0 documentation</title>
9
+    <title>How to protect an instance &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
     <link rel="index" title="Index" href="../genindex.html" />
26
     <link rel="index" title="Index" href="../genindex.html" />
27
     <link rel="search" title="Search" href="../search.html" />
27
     <link rel="search" title="Search" href="../search.html" />
28
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
29
     <link rel="next" title="Development Quickstart" href="../dev/quickstart.html" />
29
     <link rel="next" title="Development Quickstart" href="../dev/quickstart.html" />
30
     <link rel="prev" title="Administration API" href="api.html" />
30
     <link rel="prev" title="Administration API" href="api.html" />
31
    
31
    

+ 5
- 3
dev/contribution_guide.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>How to contribute &mdash; searx 0.9.0 documentation</title>
9
+    <title>How to contribute &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="next" title="Engine overview" href="engine_overview.html" />
29
     <link rel="next" title="Engine overview" href="engine_overview.html" />
28
     <link rel="prev" title="Development Quickstart" href="quickstart.html" />
30
     <link rel="prev" title="Development Quickstart" href="quickstart.html" />
29
    
31
    

+ 16
- 14
dev/engine_overview.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Engine overview &mdash; searx 0.9.0 documentation</title>
9
+    <title>Engine overview &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="next" title="Search API" href="search_api.html" />
29
     <link rel="next" title="Search API" href="search_api.html" />
28
     <link rel="prev" title="How to contribute" href="contribution_guide.html" />
30
     <link rel="prev" title="How to contribute" href="contribution_guide.html" />
29
    
31
    
194
 </div>
196
 </div>
195
 <div class="section" id="example-code">
197
 <div class="section" id="example-code">
196
 <h3><a class="toc-backref" href="#id7">example code</a><a class="headerlink" href="#example-code" title="Permalink to this headline">¶</a></h3>
198
 <h3><a class="toc-backref" href="#id7">example code</a><a class="headerlink" href="#example-code" title="Permalink to this headline">¶</a></h3>
197
-<div class="code python highlight-default"><div class="highlight"><pre><span class="c"># engine dependent config</span>
198
-<span class="n">categories</span> <span class="o">=</span> <span class="p">[</span><span class="s">&#39;general&#39;</span><span class="p">]</span>
199
-<span class="n">paging</span> <span class="o">=</span> <span class="k">True</span>
200
-<span class="n">language_support</span> <span class="o">=</span> <span class="k">True</span>
199
+<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1"># engine dependent config</span>
200
+<span class="n">categories</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;general&#39;</span><span class="p">]</span>
201
+<span class="n">paging</span> <span class="o">=</span> <span class="kc">True</span>
202
+<span class="n">language_support</span> <span class="o">=</span> <span class="kc">True</span>
201
 </pre></div>
203
 </pre></div>
202
 </div>
204
 </div>
203
 </div>
205
 </div>
317
 </div>
319
 </div>
318
 <div class="section" id="id1">
320
 <div class="section" id="id1">
319
 <h3><a class="toc-backref" href="#id11">example code</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
321
 <h3><a class="toc-backref" href="#id11">example code</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
320
-<div class="code python highlight-default"><div class="highlight"><pre><span class="c"># search-url</span>
321
-<span class="n">base_url</span> <span class="o">=</span> <span class="s">&#39;https://example.com/&#39;</span>
322
-<span class="n">search_string</span> <span class="o">=</span> <span class="s">&#39;search?{query}&amp;page={page}&#39;</span>
322
+<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1"># search-url</span>
323
+<span class="n">base_url</span> <span class="o">=</span> <span class="s1">&#39;https://example.com/&#39;</span>
324
+<span class="n">search_string</span> <span class="o">=</span> <span class="s1">&#39;search?</span><span class="si">{query}</span><span class="s1">&amp;page=</span><span class="si">{page}</span><span class="s1">&#39;</span>
323
 
325
 
324
-<span class="c"># do search-request</span>
326
+<span class="c1"># do search-request</span>
325
 <span class="k">def</span> <span class="nf">request</span><span class="p">(</span><span class="n">query</span><span class="p">,</span> <span class="n">params</span><span class="p">):</span>
327
 <span class="k">def</span> <span class="nf">request</span><span class="p">(</span><span class="n">query</span><span class="p">,</span> <span class="n">params</span><span class="p">):</span>
326
     <span class="n">search_path</span> <span class="o">=</span> <span class="n">search_string</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
328
     <span class="n">search_path</span> <span class="o">=</span> <span class="n">search_string</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
327
-        <span class="n">query</span><span class="o">=</span><span class="n">urlencode</span><span class="p">({</span><span class="s">&#39;q&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">}),</span>
328
-        <span class="n">page</span><span class="o">=</span><span class="n">params</span><span class="p">[</span><span class="s">&#39;pageno&#39;</span><span class="p">])</span>
329
+        <span class="n">query</span><span class="o">=</span><span class="n">urlencode</span><span class="p">({</span><span class="s1">&#39;q&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">}),</span>
330
+        <span class="n">page</span><span class="o">=</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;pageno&#39;</span><span class="p">])</span>
329
 
331
 
330
-    <span class="n">params</span><span class="p">[</span><span class="s">&#39;url&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">base_url</span> <span class="o">+</span> <span class="n">search_path</span>
332
+    <span class="n">params</span><span class="p">[</span><span class="s1">&#39;url&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">base_url</span> <span class="o">+</span> <span class="n">search_path</span>
331
 
333
 
332
     <span class="k">return</span> <span class="n">params</span>
334
     <span class="k">return</span> <span class="n">params</span>
333
 </pre></div>
335
 </pre></div>

+ 38
- 36
dev/install/installation.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Installation &mdash; searx 0.9.0 documentation</title>
9
+    <title>Installation &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../../',
16
         URL_ROOT:    '../../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../../index.html" />
26
+    <link rel="index" title="Index" href="../../genindex.html" />
27
+    <link rel="search" title="Search" href="../../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../../index.html" />
27
     <link rel="next" title="Administration API" href="../../admin/api.html" />
29
     <link rel="next" title="Administration API" href="../../admin/api.html" />
28
     <link rel="prev" title="Search syntax" href="../../user/search_syntax.html" />
30
     <link rel="prev" title="Search syntax" href="../../user/search_syntax.html" />
29
    
31
    
68
 <h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
70
 <h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
69
 <p>For Ubuntu, be sure to have enable universe repository.</p>
71
 <p>For Ubuntu, be sure to have enable universe repository.</p>
70
 <p>Install packages:</p>
72
 <p>Install packages:</p>
71
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span>
73
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span>
72
 </pre></div>
74
 </pre></div>
73
 </div>
75
 </div>
74
 <p>Install searx:</p>
76
 <p>Install searx:</p>
75
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span>
77
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span>
76
 <span class="n">sudo</span> <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
78
 <span class="n">sudo</span> <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
77
 <span class="n">sudo</span> <span class="n">useradd</span> <span class="n">searx</span> <span class="o">-</span><span class="n">d</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
79
 <span class="n">sudo</span> <span class="n">useradd</span> <span class="n">searx</span> <span class="o">-</span><span class="n">d</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
78
 <span class="n">sudo</span> <span class="n">chown</span> <span class="n">searx</span><span class="p">:</span><span class="n">searx</span> <span class="o">-</span><span class="n">R</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
80
 <span class="n">sudo</span> <span class="n">chown</span> <span class="n">searx</span><span class="p">:</span><span class="n">searx</span> <span class="o">-</span><span class="n">R</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
79
 </pre></div>
81
 </pre></div>
80
 </div>
82
 </div>
81
 <p>Install dependencies in a virtualenv:</p>
83
 <p>Install dependencies in a virtualenv:</p>
82
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
84
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
83
 <span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
85
 <span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
84
 <span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
86
 <span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
85
 <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
87
 <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
89
 </div>
91
 </div>
90
 <div class="section" id="configuration">
92
 <div class="section" id="configuration">
91
 <h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
93
 <h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
92
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">&quot;s/ultrasecretkey/`openssl rand -hex 16`/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
94
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s2">&quot;s/ultrasecretkey/`openssl rand -hex 16`/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
93
 </pre></div>
95
 </pre></div>
94
 </div>
96
 </div>
95
 <p>Edit searx/settings.yml if necessary.</p>
97
 <p>Edit searx/settings.yml if necessary.</p>
97
 <div class="section" id="check">
99
 <div class="section" id="check">
98
 <h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
100
 <h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
99
 <p>Start searx:</p>
101
 <p>Start searx:</p>
100
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
102
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
101
 </pre></div>
103
 </pre></div>
102
 </div>
104
 </div>
103
 <p>Go to <a class="reference external" href="http://localhost:8888">http://localhost:8888</a></p>
105
 <p>Go to <a class="reference external" href="http://localhost:8888">http://localhost:8888</a></p>
104
 <p>If everything works fine, disable the debug option in settings.yml:</p>
106
 <p>If everything works fine, disable the debug option in settings.yml:</p>
105
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">&quot;s/debug : True/debug : False/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
107
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s2">&quot;s/debug : True/debug : False/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
106
 </pre></div>
108
 </pre></div>
107
 </div>
109
 </div>
108
 <p>At this point searx is not demonized ; uwsgi allows this.</p>
110
 <p>At this point searx is not demonized ; uwsgi allows this.</p>
112
 <div class="section" id="uwsgi">
114
 <div class="section" id="uwsgi">
113
 <h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
115
 <h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
114
 <p>Install packages:</p>
116
 <p>Install packages:</p>
115
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span>
117
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span>
116
 </pre></div>
118
 </pre></div>
117
 </div>
119
 </div>
118
 <p>Create the configuration file /etc/uwsgi/apps-available/searx.ini with
120
 <p>Create the configuration file /etc/uwsgi/apps-available/searx.ini with
119
 this content:</p>
121
 this content:</p>
120
-<div class="highlight-default"><div class="highlight"><pre><span class="p">[</span><span class="n">uwsgi</span><span class="p">]</span>
121
-<span class="c"># Who will run the code</span>
122
+<div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">uwsgi</span><span class="p">]</span>
123
+<span class="c1"># Who will run the code</span>
122
 <span class="n">uid</span> <span class="o">=</span> <span class="n">searx</span>
124
 <span class="n">uid</span> <span class="o">=</span> <span class="n">searx</span>
123
 <span class="n">gid</span> <span class="o">=</span> <span class="n">searx</span>
125
 <span class="n">gid</span> <span class="o">=</span> <span class="n">searx</span>
124
 
126
 
125
-<span class="c"># disable logging for privacy</span>
127
+<span class="c1"># disable logging for privacy</span>
126
 <span class="n">disable</span><span class="o">-</span><span class="n">logging</span> <span class="o">=</span> <span class="n">true</span>
128
 <span class="n">disable</span><span class="o">-</span><span class="n">logging</span> <span class="o">=</span> <span class="n">true</span>
127
 
129
 
128
-<span class="c"># Number of workers (usually CPU count)</span>
130
+<span class="c1"># Number of workers (usually CPU count)</span>
129
 <span class="n">workers</span> <span class="o">=</span> <span class="mi">4</span>
131
 <span class="n">workers</span> <span class="o">=</span> <span class="mi">4</span>
130
 
132
 
131
-<span class="c"># The right granted on the created socket</span>
133
+<span class="c1"># The right granted on the created socket</span>
132
 <span class="n">chmod</span><span class="o">-</span><span class="n">socket</span> <span class="o">=</span> <span class="mi">666</span>
134
 <span class="n">chmod</span><span class="o">-</span><span class="n">socket</span> <span class="o">=</span> <span class="mi">666</span>
133
 
135
 
134
-<span class="c"># Plugin to use and interpretor config</span>
136
+<span class="c1"># Plugin to use and interpretor config</span>
135
 <span class="n">single</span><span class="o">-</span><span class="n">interpreter</span> <span class="o">=</span> <span class="n">true</span>
137
 <span class="n">single</span><span class="o">-</span><span class="n">interpreter</span> <span class="o">=</span> <span class="n">true</span>
136
 <span class="n">master</span> <span class="o">=</span> <span class="n">true</span>
138
 <span class="n">master</span> <span class="o">=</span> <span class="n">true</span>
137
 <span class="n">plugin</span> <span class="o">=</span> <span class="n">python</span>
139
 <span class="n">plugin</span> <span class="o">=</span> <span class="n">python</span>
138
 
140
 
139
-<span class="c"># Module to import</span>
141
+<span class="c1"># Module to import</span>
140
 <span class="n">module</span> <span class="o">=</span> <span class="n">searx</span><span class="o">.</span><span class="n">webapp</span>
142
 <span class="n">module</span> <span class="o">=</span> <span class="n">searx</span><span class="o">.</span><span class="n">webapp</span>
141
 
143
 
142
-<span class="c"># Virtualenv and python path</span>
144
+<span class="c1"># Virtualenv and python path</span>
143
 <span class="n">virtualenv</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span>
145
 <span class="n">virtualenv</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span>
144
 <span class="n">pythonpath</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
146
 <span class="n">pythonpath</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
145
 <span class="n">chdir</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
147
 <span class="n">chdir</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
146
 </pre></div>
148
 </pre></div>
147
 </div>
149
 </div>
148
 <p>Activate the uwsgi application and restart:</p>
150
 <p>Activate the uwsgi application and restart:</p>
149
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">apps</span><span class="o">-</span><span class="n">enabled</span>
151
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">apps</span><span class="o">-</span><span class="n">enabled</span>
150
 <span class="n">ln</span> <span class="o">-</span><span class="n">s</span> <span class="o">../</span><span class="n">apps</span><span class="o">-</span><span class="n">available</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">ini</span>
152
 <span class="n">ln</span> <span class="o">-</span><span class="n">s</span> <span class="o">../</span><span class="n">apps</span><span class="o">-</span><span class="n">available</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">ini</span>
151
 <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">uwsgi</span> <span class="n">restart</span>
153
 <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">uwsgi</span> <span class="n">restart</span>
152
 </pre></div>
154
 </pre></div>
158
 <h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
160
 <h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
159
 <p>If nginx is not installed (uwsgi will not work with the package
161
 <p>If nginx is not installed (uwsgi will not work with the package
160
 nginx-light):</p>
162
 nginx-light):</p>
161
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span>
163
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span>
162
 </pre></div>
164
 </pre></div>
163
 </div>
165
 </div>
164
 <div class="section" id="hosted-at">
166
 <div class="section" id="hosted-at">
165
 <h4>Hosted at /<a class="headerlink" href="#hosted-at" title="Permalink to this headline">¶</a></h4>
167
 <h4>Hosted at /<a class="headerlink" href="#hosted-at" title="Permalink to this headline">¶</a></h4>
166
 <p>Create the configuration file /etc/nginx/sites-available/searx with this
168
 <p>Create the configuration file /etc/nginx/sites-available/searx with this
167
 content:</p>
169
 content:</p>
168
-<div class="code nginx highlight-default"><div class="highlight"><pre><span class="n">server</span> <span class="p">{</span>
170
+<div class="code nginx highlight-default"><div class="highlight"><pre><span></span><span class="n">server</span> <span class="p">{</span>
169
     <span class="n">listen</span> <span class="mi">80</span><span class="p">;</span>
171
     <span class="n">listen</span> <span class="mi">80</span><span class="p">;</span>
170
     <span class="n">server_name</span> <span class="n">searx</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">;</span>
172
     <span class="n">server_name</span> <span class="n">searx</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">;</span>
171
     <span class="n">root</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="p">;</span>
173
     <span class="n">root</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="p">;</span>
178
 </pre></div>
180
 </pre></div>
179
 </div>
181
 </div>
180
 <p>Restart service:</p>
182
 <p>Restart service:</p>
181
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
183
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
182
 <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
184
 <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
183
 </pre></div>
185
 </pre></div>
184
 </div>
186
 </div>
187
 <h4>from subdirectory URL (/searx)<a class="headerlink" href="#from-subdirectory-url-searx" title="Permalink to this headline">¶</a></h4>
189
 <h4>from subdirectory URL (/searx)<a class="headerlink" href="#from-subdirectory-url-searx" title="Permalink to this headline">¶</a></h4>
188
 <p>Add this configuration in the server config file
190
 <p>Add this configuration in the server config file
189
 /etc/nginx/sites-available/default:</p>
191
 /etc/nginx/sites-available/default:</p>
190
-<div class="code nginx highlight-default"><div class="highlight"><pre>location = /searx { rewrite ^ /searx/; }
192
+<div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location = /searx { rewrite ^ /searx/; }
191
 location /searx {
193
 location /searx {
192
         try_files $uri @searx;
194
         try_files $uri @searx;
193
 }
195
 }
202
 <p>OR</p>
204
 <p>OR</p>
203
 <p>using reverse proxy
205
 <p>using reverse proxy
204
 (Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
206
 (Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
205
-<div class="code nginx highlight-default"><div class="highlight"><pre>location /searx {
207
+<div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location /searx {
206
     proxy_pass http://127.0.0.1:8888;
208
     proxy_pass http://127.0.0.1:8888;
207
     proxy_set_header Host $host;
209
     proxy_set_header Host $host;
208
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
210
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
213
 </pre></div>
215
 </pre></div>
214
 </div>
216
 </div>
215
 <p>Enable base_url in searx/settings.yml</p>
217
 <p>Enable base_url in searx/settings.yml</p>
216
-<div class="highlight-default"><div class="highlight"><pre><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
218
+<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
217
 </pre></div>
219
 </pre></div>
218
 </div>
220
 </div>
219
 <p>Restart service:</p>
221
 <p>Restart service:</p>
220
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
222
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
221
 <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
223
 <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
222
 </pre></div>
224
 </pre></div>
223
 </div>
225
 </div>
226
 <p>for better privacy you can disable nginx logs about searx.</p>
228
 <p>for better privacy you can disable nginx logs about searx.</p>
227
 <p>how to proceed: below <code class="docutils literal"><span class="pre">uwsgi_pass</span></code> in
229
 <p>how to proceed: below <code class="docutils literal"><span class="pre">uwsgi_pass</span></code> in
228
 /etc/nginx/sites-available/default add</p>
230
 /etc/nginx/sites-available/default add</p>
229
-<div class="highlight-default"><div class="highlight"><pre><span class="n">access_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
231
+<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">access_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
230
 <span class="n">error_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
232
 <span class="n">error_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
231
 </pre></div>
233
 </pre></div>
232
 </div>
234
 </div>
233
 <p>Restart service:</p>
235
 <p>Restart service:</p>
234
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
236
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
235
 </pre></div>
237
 </pre></div>
236
 </div>
238
 </div>
237
 </div>
239
 </div>
240
 <div class="section" id="with-apache">
242
 <div class="section" id="with-apache">
241
 <h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
243
 <h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
242
 <p>Add wsgi mod:</p>
244
 <p>Add wsgi mod:</p>
243
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span>
245
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span>
244
 <span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
246
 <span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
245
 </pre></div>
247
 </pre></div>
246
 </div>
248
 </div>
247
 <p>Add this configuration in the file /etc/apache2/apache2.conf:</p>
249
 <p>Add this configuration in the file /etc/apache2/apache2.conf:</p>
248
-<div class="code apache highlight-default"><div class="highlight"><pre><span class="o">&lt;</span><span class="n">Location</span> <span class="o">/&gt;</span>
250
+<div class="code apache highlight-default"><div class="highlight"><pre><span></span><span class="o">&lt;</span><span class="n">Location</span> <span class="o">/&gt;</span>
249
     <span class="n">Options</span> <span class="n">FollowSymLinks</span> <span class="n">Indexes</span>
251
     <span class="n">Options</span> <span class="n">FollowSymLinks</span> <span class="n">Indexes</span>
250
     <span class="n">SetHandler</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">handler</span>
252
     <span class="n">SetHandler</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">handler</span>
251
     <span class="n">uWSGISocket</span> <span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span>
253
     <span class="n">uWSGISocket</span> <span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span>
256
 change <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> by the location of your instance, like
258
 change <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> by the location of your instance, like
257
 <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/searx&gt;</span></code>.</p>
259
 <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/searx&gt;</span></code>.</p>
258
 <p>Restart Apache:</p>
260
 <p>Restart Apache:</p>
259
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
261
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
260
 </pre></div>
262
 </pre></div>
261
 </div>
263
 </div>
262
 <div class="section" id="id2">
264
 <div class="section" id="id2">
266
 <p>WARNING: you can only disable logs for the whole (virtual) server not
268
 <p>WARNING: you can only disable logs for the whole (virtual) server not
267
 for a specific path.</p>
269
 for a specific path.</p>
268
 <p>Go back to /etc/apache2/apache2.conf and above <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> add:</p>
270
 <p>Go back to /etc/apache2/apache2.conf and above <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> add:</p>
269
-<div class="code apache highlight-default"><div class="highlight"><pre><span class="n">CustomLog</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="n">combined</span>
271
+<div class="code apache highlight-default"><div class="highlight"><pre><span></span><span class="n">CustomLog</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="n">combined</span>
270
 </pre></div>
272
 </pre></div>
271
 </div>
273
 </div>
272
 <p>Restart Apache:</p>
274
 <p>Restart Apache:</p>
273
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
275
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
274
 </pre></div>
276
 </pre></div>
275
 </div>
277
 </div>
276
 </div>
278
 </div>
278
 </div>
280
 </div>
279
 <div class="section" id="how-to-update">
281
 <div class="section" id="how-to-update">
280
 <h2><a class="toc-backref" href="#id11">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2>
282
 <h2><a class="toc-backref" href="#id11">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2>
281
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
283
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
282
 <span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
284
 <span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
283
 <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
285
 <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
284
 <span class="n">git</span> <span class="n">stash</span>
286
 <span class="n">git</span> <span class="n">stash</span>
292
 <div class="section" id="docker">
294
 <div class="section" id="docker">
293
 <h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
295
 <h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
294
 <p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
296
 <p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
295
-<div class="code sh highlight-default"><div class="highlight"><pre>docker pull wonderfall/searx
297
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span>docker pull wonderfall/searx
296
 docker run -d --name searx -p $PORT:8888 wonderfall/searx
298
 docker run -d --name searx -p $PORT:8888 wonderfall/searx
297
 </pre></div>
299
 </pre></div>
298
 </div>
300
 </div>
299
 <p>Go to <a class="reference external" href="http://localhost:$PORT">http://localhost:$PORT</a>.</p>
301
 <p>Go to <a class="reference external" href="http://localhost:$PORT">http://localhost:$PORT</a>.</p>
300
 <p>See <a class="reference external" href="https://hub.docker.com/r/wonderfall/searx/">https://hub.docker.com/r/wonderfall/searx/</a> for more informations.</p>
302
 <p>See <a class="reference external" href="https://hub.docker.com/r/wonderfall/searx/">https://hub.docker.com/r/wonderfall/searx/</a> for more informations.</p>
301
 <p>It&#8217;s also possible to build searx from the embedded Dockerfile.</p>
303
 <p>It&#8217;s also possible to build searx from the embedded Dockerfile.</p>
302
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
304
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
303
 <span class="n">cd</span> <span class="n">searx</span>
305
 <span class="n">cd</span> <span class="n">searx</span>
304
 <span class="n">docker</span> <span class="n">build</span> <span class="o">-</span><span class="n">t</span> <span class="n">whatever</span><span class="o">/</span><span class="n">searx</span> <span class="o">.</span>
306
 <span class="n">docker</span> <span class="n">build</span> <span class="o">-</span><span class="n">t</span> <span class="n">whatever</span><span class="o">/</span><span class="n">searx</span> <span class="o">.</span>
305
 </pre></div>
307
 </pre></div>

+ 15
- 13
dev/plugins.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Plugins &mdash; searx 0.9.0 documentation</title>
9
+    <title>Plugins &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="next" title="Translation" href="translation.html" />
29
     <link rel="next" title="Translation" href="translation.html" />
28
     <link rel="prev" title="Search API" href="search_api.html" />
30
     <link rel="prev" title="Search API" href="search_api.html" />
29
    
31
    
45
 searx.</p>
47
 searx.</p>
46
 <div class="section" id="example-plugin">
48
 <div class="section" id="example-plugin">
47
 <h2>Example plugin<a class="headerlink" href="#example-plugin" title="Permalink to this headline">¶</a></h2>
49
 <h2>Example plugin<a class="headerlink" href="#example-plugin" title="Permalink to this headline">¶</a></h2>
48
-<div class="code python highlight-default"><div class="highlight"><pre><span class="n">name</span> <span class="o">=</span> <span class="s">&#39;Example plugin&#39;</span>
49
-<span class="n">description</span> <span class="o">=</span> <span class="s">&#39;This plugin extends the suggestions with the word &quot;example&quot;&#39;</span>
50
-<span class="n">default_on</span> <span class="o">=</span> <span class="k">False</span>  <span class="c"># disable by default</span>
50
+<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">name</span> <span class="o">=</span> <span class="s1">&#39;Example plugin&#39;</span>
51
+<span class="n">description</span> <span class="o">=</span> <span class="s1">&#39;This plugin extends the suggestions with the word &quot;example&quot;&#39;</span>
52
+<span class="n">default_on</span> <span class="o">=</span> <span class="kc">False</span>  <span class="c1"># disabled by default</span>
51
 
53
 
52
-<span class="n">js_dependencies</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">()</span>  <span class="c"># optional, list of static js files</span>
53
-<span class="n">css_dependencies</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">()</span>  <span class="c"># optional, list of static css files</span>
54
+<span class="n">js_dependencies</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">()</span>  <span class="c1"># optional, list of static js files</span>
55
+<span class="n">css_dependencies</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">()</span>  <span class="c1"># optional, list of static css files</span>
54
 
56
 
55
 
57
 
56
-<span class="c"># attach callback to the post search hook</span>
57
-<span class="c">#  request: flask request object</span>
58
-<span class="c">#  ctx: the whole local context of the post search hook</span>
58
+<span class="c1"># attach callback to the post search hook</span>
59
+<span class="c1">#  request: flask request object</span>
60
+<span class="c1">#  ctx: the whole local context of the post search hook</span>
59
 <span class="k">def</span> <span class="nf">post_search</span><span class="p">(</span><span class="n">request</span><span class="p">,</span> <span class="n">ctx</span><span class="p">):</span>
61
 <span class="k">def</span> <span class="nf">post_search</span><span class="p">(</span><span class="n">request</span><span class="p">,</span> <span class="n">ctx</span><span class="p">):</span>
60
-    <span class="n">ctx</span><span class="p">[</span><span class="s">&#39;search&#39;</span><span class="p">]</span><span class="o">.</span><span class="n">suggestions</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="s">&#39;example&#39;</span><span class="p">)</span>
61
-    <span class="k">return</span> <span class="k">True</span>
62
+    <span class="n">ctx</span><span class="p">[</span><span class="s1">&#39;search&#39;</span><span class="p">]</span><span class="o">.</span><span class="n">suggestions</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="s1">&#39;example&#39;</span><span class="p">)</span>
63
+    <span class="k">return</span> <span class="kc">True</span>
62
 </pre></div>
64
 </pre></div>
63
 </div>
65
 </div>
64
 </div>
66
 </div>

+ 13
- 11
dev/quickstart.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Development Quickstart &mdash; searx 0.9.0 documentation</title>
9
+    <title>Development Quickstart &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="next" title="How to contribute" href="contribution_guide.html" />
29
     <link rel="next" title="How to contribute" href="contribution_guide.html" />
28
-    <link rel="prev" title="Administration API" href="../admin/api.html" />
30
+    <link rel="prev" title="How to protect an instance" href="../admin/filtron.html" />
29
    
31
    
30
   
32
   
31
   <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
33
   <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
48
 <p>First, clone the source code of searx to the desired folder. In this case the source
50
 <p>First, clone the source code of searx to the desired folder. In this case the source
49
 is cloned to ~/myprojects/searx. Then create and activate the searx-ve
51
 is cloned to ~/myprojects/searx. Then create and activate the searx-ve
50
 virtualenv and install the required packages using manage.sh.</p>
52
 virtualenv and install the required packages using manage.sh.</p>
51
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">~/</span><span class="n">myprojects</span>
53
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">~/</span><span class="n">myprojects</span>
52
 <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
54
 <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
53
 <span class="n">cd</span> <span class="n">searx</span>
55
 <span class="n">cd</span> <span class="n">searx</span>
54
 <span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
56
 <span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
68
 <li>Unit test coverage check</li>
70
 <li>Unit test coverage check</li>
69
 </ul>
71
 </ul>
70
 <p>For example unit tests are run with the command below:</p>
72
 <p>For example unit tests are run with the command below:</p>
71
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">unit_tests</span>
73
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">unit_tests</span>
72
 </pre></div>
74
 </pre></div>
73
 </div>
75
 </div>
74
 <p>For further test options, please consult the help of the manage.sh script.</p>
76
 <p>For further test options, please consult the help of the manage.sh script.</p>
78
 <div class="section" id="how-to-build-styles">
80
 <div class="section" id="how-to-build-styles">
79
 <h3>How to build styles<a class="headerlink" href="#how-to-build-styles" title="Permalink to this headline">¶</a></h3>
81
 <h3>How to build styles<a class="headerlink" href="#how-to-build-styles" title="Permalink to this headline">¶</a></h3>
80
 <p>Less is required to build the styles of searx. Less can be installed using either NodeJS or Apt.</p>
82
 <p>Less is required to build the styles of searx. Less can be installed using either NodeJS or Apt.</p>
81
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nodejs</span>
83
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nodejs</span>
82
 <span class="n">sudo</span> <span class="n">npm</span> <span class="n">install</span> <span class="o">-</span><span class="n">g</span> <span class="n">less</span>
84
 <span class="n">sudo</span> <span class="n">npm</span> <span class="n">install</span> <span class="o">-</span><span class="n">g</span> <span class="n">less</span>
83
 </pre></div>
85
 </pre></div>
84
 </div>
86
 </div>
85
 <p>OR</p>
87
 <p>OR</p>
86
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">node</span><span class="o">-</span><span class="n">less</span>
88
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">node</span><span class="o">-</span><span class="n">less</span>
87
 </pre></div>
89
 </pre></div>
88
 </div>
90
 </div>
89
 <p>After satisfying the requirements styles can be build using manage.sh</p>
91
 <p>After satisfying the requirements styles can be build using manage.sh</p>
90
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">styles</span>
92
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">styles</span>
91
 </pre></div>
93
 </pre></div>
92
 </div>
94
 </div>
93
 </div>
95
 </div>
95
 <h3>How to build the source of the oscar theme<a class="headerlink" href="#how-to-build-the-source-of-the-oscar-theme" title="Permalink to this headline">¶</a></h3>
97
 <h3>How to build the source of the oscar theme<a class="headerlink" href="#how-to-build-the-source-of-the-oscar-theme" title="Permalink to this headline">¶</a></h3>
96
 <p>Grunt must be installed in order to build the javascript sources. It depends on NodeJS, so first
98
 <p>Grunt must be installed in order to build the javascript sources. It depends on NodeJS, so first
97
 Node has to be installed.</p>
99
 Node has to be installed.</p>
98
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nodejs</span>
100
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nodejs</span>
99
 <span class="n">sudo</span> <span class="n">npm</span> <span class="n">install</span> <span class="o">-</span><span class="n">g</span> <span class="n">grunt</span><span class="o">-</span><span class="n">cli</span>
101
 <span class="n">sudo</span> <span class="n">npm</span> <span class="n">install</span> <span class="o">-</span><span class="n">g</span> <span class="n">grunt</span><span class="o">-</span><span class="n">cli</span>
100
 </pre></div>
102
 </pre></div>
101
 </div>
103
 </div>
102
 <p>After installing grunt, the files can be built using the following command:</p>
104
 <p>After installing grunt, the files can be built using the following command:</p>
103
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">build_grunt</span>
105
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">build_grunt</span>
104
 </pre></div>
106
 </pre></div>
105
 </div>
107
 </div>
106
 </div>
108
 </div>

+ 5
- 3
dev/search_api.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Search API &mdash; searx 0.9.0 documentation</title>
9
+    <title>Search API &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="next" title="Plugins" href="plugins.html" />
29
     <link rel="next" title="Plugins" href="plugins.html" />
28
     <link rel="prev" title="Engine overview" href="engine_overview.html" />
30
     <link rel="prev" title="Engine overview" href="engine_overview.html" />
29
    
31
    

+ 14
- 12
dev/translation.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Translation &mdash; searx 0.9.0 documentation</title>
9
+    <title>Translation &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="prev" title="Plugins" href="plugins.html" />
29
     <link rel="prev" title="Plugins" href="plugins.html" />
28
    
30
    
29
   
31
   
43
 <p>run these commands in the root directory of searx</p>
45
 <p>run these commands in the root directory of searx</p>
44
 <div class="section" id="add-new-language">
46
 <div class="section" id="add-new-language">
45
 <h2>Add new language<a class="headerlink" href="#add-new-language" title="Permalink to this headline">¶</a></h2>
47
 <h2>Add new language<a class="headerlink" href="#add-new-language" title="Permalink to this headline">¶</a></h2>
46
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">pybabel</span> <span class="n">init</span> <span class="o">-</span><span class="n">i</span> <span class="n">messages</span><span class="o">.</span><span class="n">pot</span> <span class="o">-</span><span class="n">d</span> <span class="n">searx</span><span class="o">/</span><span class="n">translations</span> <span class="o">-</span><span class="n">l</span> <span class="n">it</span>
48
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">pybabel</span> <span class="n">init</span> <span class="o">-</span><span class="n">i</span> <span class="n">messages</span><span class="o">.</span><span class="n">pot</span> <span class="o">-</span><span class="n">d</span> <span class="n">searx</span><span class="o">/</span><span class="n">translations</span> <span class="o">-</span><span class="n">l</span> <span class="n">it</span>
47
 </pre></div>
49
 </pre></div>
48
 </div>
50
 </div>
49
 </div>
51
 </div>
50
 <div class="section" id="update-po-files">
52
 <div class="section" id="update-po-files">
51
 <h2>Update .po files<a class="headerlink" href="#update-po-files" title="Permalink to this headline">¶</a></h2>
53
 <h2>Update .po files<a class="headerlink" href="#update-po-files" title="Permalink to this headline">¶</a></h2>
52
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="o">./</span><span class="n">utils</span><span class="o">/</span><span class="n">update</span><span class="o">-</span><span class="n">translations</span><span class="o">.</span><span class="n">sh</span>
54
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">utils</span><span class="o">/</span><span class="n">update</span><span class="o">-</span><span class="n">translations</span><span class="o">.</span><span class="n">sh</span>
53
 </pre></div>
55
 </pre></div>
54
 </div>
56
 </div>
55
 <p>You may have errors here. In that case, edit the
57
 <p>You may have errors here. In that case, edit the
59
 </div>
61
 </div>
60
 <div class="section" id="compile-translations">
62
 <div class="section" id="compile-translations">
61
 <h2>Compile translations<a class="headerlink" href="#compile-translations" title="Permalink to this headline">¶</a></h2>
63
 <h2>Compile translations<a class="headerlink" href="#compile-translations" title="Permalink to this headline">¶</a></h2>
62
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">pybabel</span> <span class="nb">compile</span> <span class="o">-</span><span class="n">d</span> <span class="n">searx</span><span class="o">/</span><span class="n">translations</span>
64
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">pybabel</span> <span class="nb">compile</span> <span class="o">-</span><span class="n">d</span> <span class="n">searx</span><span class="o">/</span><span class="n">translations</span>
63
 </pre></div>
65
 </pre></div>
64
 </div>
66
 </div>
65
 </div>
67
 </div>
67
 <h2>Transifex stuff<a class="headerlink" href="#transifex-stuff" title="Permalink to this headline">¶</a></h2>
69
 <h2>Transifex stuff<a class="headerlink" href="#transifex-stuff" title="Permalink to this headline">¶</a></h2>
68
 <div class="section" id="init-project">
70
 <div class="section" id="init-project">
69
 <h3>Init Project<a class="headerlink" href="#init-project" title="Permalink to this headline">¶</a></h3>
71
 <h3>Init Project<a class="headerlink" href="#init-project" title="Permalink to this headline">¶</a></h3>
70
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">tx</span> <span class="n">init</span> <span class="c"># Transifex instance: https://www.transifex.com/asciimoo/searx/</span>
72
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">tx</span> <span class="n">init</span> <span class="c1"># Transifex instance: https://www.transifex.com/asciimoo/searx/</span>
71
 
73
 
72
-<span class="n">tx</span> <span class="nb">set</span> <span class="o">--</span><span class="n">auto</span><span class="o">-</span><span class="n">local</span> <span class="o">-</span><span class="n">r</span> <span class="n">searx</span><span class="o">.</span><span class="n">messagespo</span> <span class="s">&#39;searx/translations/&lt;lang&gt;/LC_MESSAGES/messages.po&#39;</span> \
74
+<span class="n">tx</span> <span class="nb">set</span> <span class="o">--</span><span class="n">auto</span><span class="o">-</span><span class="n">local</span> <span class="o">-</span><span class="n">r</span> <span class="n">searx</span><span class="o">.</span><span class="n">messagespo</span> <span class="s1">&#39;searx/translations/&lt;lang&gt;/LC_MESSAGES/messages.po&#39;</span> \
73
 <span class="o">--</span><span class="n">source</span><span class="o">-</span><span class="n">lang</span> <span class="n">en</span> <span class="o">--</span><span class="nb">type</span> <span class="n">PO</span> <span class="o">--</span><span class="n">source</span><span class="o">-</span><span class="n">file</span> <span class="n">messages</span><span class="o">.</span><span class="n">pot</span> <span class="o">--</span><span class="n">execute</span>
75
 <span class="o">--</span><span class="n">source</span><span class="o">-</span><span class="n">lang</span> <span class="n">en</span> <span class="o">--</span><span class="nb">type</span> <span class="n">PO</span> <span class="o">--</span><span class="n">source</span><span class="o">-</span><span class="n">file</span> <span class="n">messages</span><span class="o">.</span><span class="n">pot</span> <span class="o">--</span><span class="n">execute</span>
74
 </pre></div>
76
 </pre></div>
75
 </div>
77
 </div>
78
 </div>
80
 </div>
79
 <div class="section" id="get-translations">
81
 <div class="section" id="get-translations">
80
 <h3>Get translations<a class="headerlink" href="#get-translations" title="Permalink to this headline">¶</a></h3>
82
 <h3>Get translations<a class="headerlink" href="#get-translations" title="Permalink to this headline">¶</a></h3>
81
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">tx</span> <span class="n">pull</span> <span class="o">-</span><span class="n">a</span>
83
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">tx</span> <span class="n">pull</span> <span class="o">-</span><span class="n">a</span>
82
 </pre></div>
84
 </pre></div>
83
 </div>
85
 </div>
84
 <p><a class="reference external" href="http://docs.transifex.com/client/pull">http://docs.transifex.com/client/pull</a></p>
86
 <p><a class="reference external" href="http://docs.transifex.com/client/pull">http://docs.transifex.com/client/pull</a></p>
85
 </div>
87
 </div>
86
 <div class="section" id="upload-source-file">
88
 <div class="section" id="upload-source-file">
87
 <h3>Upload source File<a class="headerlink" href="#upload-source-file" title="Permalink to this headline">¶</a></h3>
89
 <h3>Upload source File<a class="headerlink" href="#upload-source-file" title="Permalink to this headline">¶</a></h3>
88
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">tx</span> <span class="n">push</span> <span class="o">-</span><span class="n">s</span>
90
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">tx</span> <span class="n">push</span> <span class="o">-</span><span class="n">s</span>
89
 </pre></div>
91
 </pre></div>
90
 </div>
92
 </div>
91
 </div>
93
 </div>
92
 <div class="section" id="upload-all-translation">
94
 <div class="section" id="upload-all-translation">
93
 <h3>Upload all Translation<a class="headerlink" href="#upload-all-translation" title="Permalink to this headline">¶</a></h3>
95
 <h3>Upload all Translation<a class="headerlink" href="#upload-all-translation" title="Permalink to this headline">¶</a></h3>
94
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">tx</span> <span class="n">push</span> <span class="o">-</span><span class="n">s</span> <span class="o">-</span><span class="n">t</span>
96
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">tx</span> <span class="n">push</span> <span class="o">-</span><span class="n">s</span> <span class="o">-</span><span class="n">t</span>
95
 </pre></div>
97
 </pre></div>
96
 </div>
98
 </div>
97
 </div>
99
 </div>
98
 </div>
100
 </div>
99
 <div class="section" id="upload-specifc-translation">
101
 <div class="section" id="upload-specifc-translation">
100
 <h2>upload specifc Translation<a class="headerlink" href="#upload-specifc-translation" title="Permalink to this headline">¶</a></h2>
102
 <h2>upload specifc Translation<a class="headerlink" href="#upload-specifc-translation" title="Permalink to this headline">¶</a></h2>
101
-<div class="code shell highlight-default"><div class="highlight"><pre><span class="n">tx</span> <span class="n">push</span> <span class="o">-</span><span class="n">t</span> <span class="o">-</span><span class="n">l</span> <span class="n">tr</span>
103
+<div class="code shell highlight-default"><div class="highlight"><pre><span></span><span class="n">tx</span> <span class="n">push</span> <span class="o">-</span><span class="n">t</span> <span class="o">-</span><span class="n">l</span> <span class="n">tr</span>
102
 </pre></div>
104
 </pre></div>
103
 </div>
105
 </div>
104
 <p><a class="reference external" href="http://docs.transifex.com/client/push">http://docs.transifex.com/client/push</a></p>
106
 <p><a class="reference external" href="http://docs.transifex.com/client/push">http://docs.transifex.com/client/push</a></p>

+ 5
- 3
genindex.html View File

7
   <head>
7
   <head>
8
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
     
9
     
10
-    <title>Index &mdash; searx 0.9.0 documentation</title>
10
+    <title>Index &#8212; searx 0.10.0 documentation</title>
11
     
11
     
12
     <link rel="stylesheet" href="_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="_static/style.css" type="text/css" />
13
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
13
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
15
     <script type="text/javascript">
15
     <script type="text/javascript">
16
       var DOCUMENTATION_OPTIONS = {
16
       var DOCUMENTATION_OPTIONS = {
17
         URL_ROOT:    './',
17
         URL_ROOT:    './',
18
-        VERSION:     '0.9.0',
18
+        VERSION:     '0.10.0',
19
         COLLAPSE_INDEX: false,
19
         COLLAPSE_INDEX: false,
20
         FILE_SUFFIX: '.html',
20
         FILE_SUFFIX: '.html',
21
         HAS_SOURCE:  true
21
         HAS_SOURCE:  true
24
     <script type="text/javascript" src="_static/jquery.js"></script>
24
     <script type="text/javascript" src="_static/jquery.js"></script>
25
     <script type="text/javascript" src="_static/underscore.js"></script>
25
     <script type="text/javascript" src="_static/underscore.js"></script>
26
     <script type="text/javascript" src="_static/doctools.js"></script>
26
     <script type="text/javascript" src="_static/doctools.js"></script>
27
-    <link rel="top" title="searx 0.9.0 documentation" href="index.html" />
27
+    <link rel="index" title="Index" href="#" />
28
+    <link rel="search" title="Search" href="search.html" />
29
+    <link rel="top" title="searx 0.10.0 documentation" href="index.html" />
28
    
30
    
29
   
31
   
30
   <link media="only screen and (max-device-width: 480px)" href="_static/small_flask.css" type= "text/css" rel="stylesheet" />
32
   <link media="only screen and (max-device-width: 480px)" href="_static/small_flask.css" type= "text/css" rel="stylesheet" />

+ 6
- 3
index.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Welcome to searx &mdash; searx 0.9.0 documentation</title>
9
+    <title>Welcome to searx &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    './',
16
         URL_ROOT:    './',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="_static/jquery.js"></script>
23
     <script type="text/javascript" src="_static/jquery.js"></script>
24
     <script type="text/javascript" src="_static/underscore.js"></script>
24
     <script type="text/javascript" src="_static/underscore.js"></script>
25
     <script type="text/javascript" src="_static/doctools.js"></script>
25
     <script type="text/javascript" src="_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="#" />
26
+    <link rel="index" title="Index" href="genindex.html" />
27
+    <link rel="search" title="Search" href="search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="#" />
27
     <link rel="next" title="Search syntax" href="user/search_syntax.html" />
29
     <link rel="next" title="Search syntax" href="user/search_syntax.html" />
28
    
30
    
29
   
31
   
72
 <ul>
74
 <ul>
73
 <li class="toctree-l1"><a class="reference internal" href="dev/install/installation.html">Installation</a></li>
75
 <li class="toctree-l1"><a class="reference internal" href="dev/install/installation.html">Installation</a></li>
74
 <li class="toctree-l1"><a class="reference internal" href="admin/api.html">Administration API</a></li>
76
 <li class="toctree-l1"><a class="reference internal" href="admin/api.html">Administration API</a></li>
77
+<li class="toctree-l1"><a class="reference internal" href="admin/api.html#embed-search-bar">Embed search bar</a></li>
75
 <li class="toctree-l1"><a class="reference internal" href="admin/filtron.html">How to protect an instance</a></li>
78
 <li class="toctree-l1"><a class="reference internal" href="admin/filtron.html">How to protect an instance</a></li>
76
 </ul>
79
 </ul>
77
 </div>
80
 </div>

BIN
objects.inv View File


+ 5
- 3
search.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Search &mdash; searx 0.9.0 documentation</title>
9
+    <title>Search &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    './',
16
         URL_ROOT:    './',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
24
     <script type="text/javascript" src="_static/underscore.js"></script>
24
     <script type="text/javascript" src="_static/underscore.js"></script>
25
     <script type="text/javascript" src="_static/doctools.js"></script>
25
     <script type="text/javascript" src="_static/doctools.js"></script>
26
     <script type="text/javascript" src="_static/searchtools.js"></script>
26
     <script type="text/javascript" src="_static/searchtools.js"></script>
27
-    <link rel="top" title="searx 0.9.0 documentation" href="index.html" />
27
+    <link rel="index" title="Index" href="genindex.html" />
28
+    <link rel="search" title="Search" href="#" />
29
+    <link rel="top" title="searx 0.10.0 documentation" href="index.html" />
28
   <script type="text/javascript">
30
   <script type="text/javascript">
29
     jQuery(function() { Search.loadIndex("searchindex.js"); });
31
     jQuery(function() { Search.loadIndex("searchindex.js"); });
30
   </script>
32
   </script>

+ 1
- 1
searchindex.js
File diff suppressed because it is too large
View File


+ 5
- 3
user/search_syntax.html View File

6
   <head>
6
   <head>
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
     
8
     
9
-    <title>Search syntax &mdash; searx 0.9.0 documentation</title>
9
+    <title>Search syntax &#8212; searx 0.10.0 documentation</title>
10
     
10
     
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
11
     <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12
     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
     <script type="text/javascript">
14
     <script type="text/javascript">
15
       var DOCUMENTATION_OPTIONS = {
15
       var DOCUMENTATION_OPTIONS = {
16
         URL_ROOT:    '../',
16
         URL_ROOT:    '../',
17
-        VERSION:     '0.9.0',
17
+        VERSION:     '0.10.0',
18
         COLLAPSE_INDEX: false,
18
         COLLAPSE_INDEX: false,
19
         FILE_SUFFIX: '.html',
19
         FILE_SUFFIX: '.html',
20
         HAS_SOURCE:  true
20
         HAS_SOURCE:  true
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
23
     <script type="text/javascript" src="../_static/jquery.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
24
     <script type="text/javascript" src="../_static/underscore.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
25
     <script type="text/javascript" src="../_static/doctools.js"></script>
26
-    <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
26
+    <link rel="index" title="Index" href="../genindex.html" />
27
+    <link rel="search" title="Search" href="../search.html" />
28
+    <link rel="top" title="searx 0.10.0 documentation" href="../index.html" />
27
     <link rel="next" title="Installation" href="../dev/install/installation.html" />
29
     <link rel="next" title="Installation" href="../dev/install/installation.html" />
28
     <link rel="prev" title="Welcome to searx" href="../index.html" />
30
     <link rel="prev" title="Welcome to searx" href="../index.html" />
29
    
31