diff --git a/_sources/admin/api.txt b/_sources/admin/api.txt
new file mode 100644
index 00000000..94508a28
--- /dev/null
+++ b/_sources/admin/api.txt
@@ -0,0 +1,78 @@
+.. _adminapi:
+
+Administration API
+------------------
+
+Get configuration data
+~~~~~~~~~~~~~~~~~~~~~~
+
+.. code:: sh
+
+ GET /config
+
+Sample response
+```````````````
+
+.. code:: sh
+
+ {
+ "autocomplete": "",
+ "categories": [
+ "map",
+ "it",
+ "images",
+ ],
+ "default_locale": "",
+ "default_theme": "oscar",
+ "engines": [
+ {
+ "categories": [
+ "map"
+ ],
+ "enabled": true,
+ "name": "openstreetmap",
+ "shortcut": "osm"
+ },
+ {
+ "categories": [
+ "it"
+ ],
+ "enabled": true,
+ "name": "arch linux wiki",
+ "shortcut": "al"
+ },
+ {
+ "categories": [
+ "images"
+ ],
+ "enabled": true,
+ "name": "google images",
+ "shortcut": "goi"
+ },
+ {
+ "categories": [
+ "it"
+ ],
+ "enabled": false,
+ "name": "bitbucket",
+ "shortcut": "bb"
+ },
+ ],
+ "instance_name": "searx",
+ "locales": {
+ "de": "Deutsch (German)",
+ "en": "English",
+ "eo": "Esperanto (Esperanto)",
+ },
+ "plugins": [
+ {
+ "enabled": true,
+ "name": "HTTPS rewrite"
+ },
+ {
+ "enabled": false,
+ "name": "Vim-like hotkeys"
+ }
+ ],
+ "safe_search": 0
+ }
diff --git a/_sources/dev/plugins.txt b/_sources/dev/plugins.txt
index c51fdf0e..0f52af0d 100644
--- a/_sources/dev/plugins.txt
+++ b/_sources/dev/plugins.txt
@@ -1,11 +1,11 @@
Plugins
-------
-Plugins can extend/replace functionality of various components inside
+Plugins can extend or replace functionality of various components of
searx.
-example\_plugin.py
-~~~~~~~~~~~~~~~~~~
+Example plugin
+~~~~~~~~~~~~~~
.. code:: python
@@ -24,22 +24,22 @@ example\_plugin.py
ctx['search'].suggestions.add('example')
return True
-Currently implemented plugin entry points (a.k.a hooks)
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Plugin entry points
+~~~~~~~~~~~~~~~~~~~
-- Pre search hook (``pre_search``)
-- Post search hook (``post_search``)
-- Result hook (``on_result``) (is called if a new result is added (see
- https\_rewrite plugin))
+Entry points (hooks) define when a plugin runs. Right now only three hooks are implemented. So feel free to implement a hook if it fits the behaviour of your plugin.
-Feel free to add more hooks to the code if it is required by a plugin.
+Pre search hook
+```````````````
-TODO
-~~~~
+Runs BEFORE the search request. Function to implement: ``pre_search``
-- Better documentation
-- More hooks
-- search hook (is called while searx is requesting results (for
- example: things like math-solver), the different hooks are running
- parallel)
+Post search hook
+````````````````
+Runs AFTER the search request. Function to implement: ``post_search``
+
+Result hook
+```````````
+
+Runs when a new result is added to the result list. Function to implement: ``on_result``
diff --git a/_sources/dev/search_api.txt b/_sources/dev/search_api.txt
index cd86fd71..59d3c825 100644
--- a/_sources/dev/search_api.txt
+++ b/_sources/dev/search_api.txt
@@ -1,13 +1,20 @@
Search API
==========
-Search API endpoints: ``/``, ``/search``
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+The search supports both ``GET`` and ``POST``. However, using ``GET`` the parameters of the request remain hidden. So it is advised to use ``GET`` for querying.
-Endpoints have equivalent functionality.
+Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
+
+.. code:: sh
+
+ GET /
+
+.. code:: sh
+
+ GET /search
Parameters
-^^^^^^^^^^
+``````````
+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
| Name | Description | |
@@ -18,7 +25,7 @@ Parameters
+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
| ``engines`` | Comma separated list, specifies the active search engines | optional |
+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
+| ``lang`` | Code of the language | optional (default: ``all``) |
++------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
| ``pageno`` | Search page number | optional (default: ``1``) |
+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
-
-Both ``GET`` and ``POST`` methods are supported.
diff --git a/_sources/index.txt b/_sources/index.txt
index d6e21894..c24eff4d 100644
--- a/_sources/index.txt
+++ b/_sources/index.txt
@@ -1,7 +1,7 @@
-Privacy-respecting free metasearch engine
-=========================================
+Welcome to searx
+================
-Searx is a free software internet metasearch engine which aggregates results from other search engines, while not storing information about its users. Searx does not track or profile its users, nor does it share its users' data with third parties. Additionally, searx can be used over Tor for online anonymity.
+Searx is a free software internet metasearch engine which aggregates results from more than 70 engines, while not storing information about its users. Searx does not track or profile its users, nor does it share its users' data with third parties. Additionally, searx can be used over Tor for online anonymity.
Features
@@ -15,16 +15,26 @@ Features
- Does not collect its users data
- Offers secure, encrypted connections (HTTPS/SSL)
- Hosted by organisations, such as La Quadrature du Net, which promote digital rights
+ - About 70 supported search engines
+ - Easy intergration with any search engine
-Further reading
----------------
+User documentation
+------------------
.. toctree::
:maxdepth: 1
user/search_syntax
+Administrator documentation
+---------------------------
+
+.. toctree::
+ :maxdepth: 1
+
+ dev/install/installation
+ admin/api
Developer documentation
-----------------------
@@ -34,7 +44,6 @@ Developer documentation
dev/quickstart
dev/contribution_guide
- dev/install/installation
dev/engine_overview
dev/search_api
dev/plugins
diff --git a/_static/basic.css b/_static/basic.css
index 9fa77d88..2b513f0c 100644
--- a/_static/basic.css
+++ b/_static/basic.css
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
- * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -52,6 +52,8 @@ div.sphinxsidebar {
width: 230px;
margin-left: -100%;
font-size: 90%;
+ word-wrap: break-word;
+ overflow-wrap : break-word;
}
div.sphinxsidebar ul {
@@ -83,10 +85,6 @@ div.sphinxsidebar #searchbox input[type="text"] {
width: 170px;
}
-div.sphinxsidebar #searchbox input[type="submit"] {
- width: 30px;
-}
-
img {
border: 0;
max-width: 100%;
@@ -187,6 +185,13 @@ div.genindex-jumpbox {
/* -- general body styles --------------------------------------------------- */
+div.body p, div.body dd, div.body li, div.body blockquote {
+ -moz-hyphens: auto;
+ -ms-hyphens: auto;
+ -webkit-hyphens: auto;
+ hyphens: auto;
+}
+
a.headerlink {
visibility: hidden;
}
diff --git a/_static/doctools.js b/_static/doctools.js
index c7bfe760..81634956 100644
--- a/_static/doctools.js
+++ b/_static/doctools.js
@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
- * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -124,6 +124,7 @@ var Documentation = {
this.fixFirefoxAnchorBug();
this.highlightSearchWords();
this.initIndexTable();
+
},
/**
@@ -252,6 +253,29 @@ var Documentation = {
});
var url = parts.join('/');
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
+ },
+
+ initOnKeyListeners: function() {
+ $(document).keyup(function(event) {
+ var activeElementType = document.activeElement.tagName;
+ // don't navigate when in search box or textarea
+ if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
+ switch (event.keyCode) {
+ case 37: // left
+ var prevHref = $('link[rel="prev"]').prop('href');
+ if (prevHref) {
+ window.location.href = prevHref;
+ return false;
+ }
+ case 39: // right
+ var nextHref = $('link[rel="next"]').prop('href');
+ if (nextHref) {
+ window.location.href = nextHref;
+ return false;
+ }
+ }
+ }
+ });
}
};
@@ -260,4 +284,4 @@ _ = Documentation.gettext;
$(document).ready(function() {
Documentation.init();
-});
+});
\ No newline at end of file
diff --git a/_static/pygments.css b/_static/pygments.css
index 8213e90b..57eadc03 100644
--- a/_static/pygments.css
+++ b/_static/pygments.css
@@ -4,10 +4,8 @@
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
.highlight .o { color: #666666 } /* Operator */
-.highlight .ch { color: #408090; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #007020 } /* Comment.Preproc */
-.highlight .cpf { color: #408090; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
diff --git a/_static/searchtools.js b/_static/searchtools.js
index efec3c43..066857ce 100644
--- a/_static/searchtools.js
+++ b/_static/searchtools.js
@@ -2,9 +2,9 @@
* searchtools.js_t
* ~~~~~~~~~~~~~~~~
*
- * Sphinx JavaScript utilties for the full-text search.
+ * Sphinx JavaScript utilities for the full-text search.
*
- * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -623,7 +623,7 @@ var Search = {
* helper function to return a node containing the
* search summary for a given text. keywords is a list
* of stemmed words, hlwords is the list of normal, unstemmed
- * words. the first one is used to find the occurance, the
+ * words. the first one is used to find the occurrence, the
* latter for highlighting it.
*/
makeSearchSummary : function(text, keywords, hlwords) {
diff --git a/_static/style.css b/_static/style.css
index facb30df..12dd187e 100644
--- a/_static/style.css
+++ b/_static/style.css
@@ -38,6 +38,8 @@ div.bodywrapper {
div.sphinxsidebar {
width: 220px;
+ word-wrap: normal !important;
+ overflow-wrap: normal !important;
}
hr {
diff --git a/_static/websupport.js b/_static/websupport.js
index 28d65db4..98e7f40b 100644
--- a/_static/websupport.js
+++ b/_static/websupport.js
@@ -2,9 +2,9 @@
* websupport.js
* ~~~~~~~~~~~~~
*
- * sphinx.websupport utilties for all documentation.
+ * sphinx.websupport utilities for all documentation.
*
- * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/admin/api.html b/admin/api.html
new file mode 100644
index 00000000..43139771
--- /dev/null
+++ b/admin/api.html
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+
+ Administration API — searx 0.9.0 documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Administration API
+
+
Get configuration data
+
+
+
Sample response
+
{
+ "autocomplete" : "" ,
+ "categories" : [
+ "map" ,
+ "it" ,
+ "images" ,
+ ],
+ "default_locale" : "" ,
+ "default_theme" : "oscar" ,
+ "engines" : [
+ {
+ "categories" : [
+ "map"
+ ],
+ "enabled" : true ,
+ "name" : "openstreetmap" ,
+ "shortcut" : "osm"
+ },
+ {
+ "categories" : [
+ "it"
+ ],
+ "enabled" : true ,
+ "name" : "arch linux wiki" ,
+ "shortcut" : "al"
+ },
+ {
+ "categories" : [
+ "images"
+ ],
+ "enabled" : true ,
+ "name" : "google images" ,
+ "shortcut" : "goi"
+ },
+ {
+ "categories" : [
+ "it"
+ ],
+ "enabled" : false ,
+ "name" : "bitbucket" ,
+ "shortcut" : "bb"
+ },
+ ],
+ "instance_name" : "searx" ,
+ "locales" : {
+ "de" : "Deutsch (German)" ,
+ "en" : "English" ,
+ "eo" : "Esperanto (Esperanto)" ,
+ },
+ "plugins" : [
+ {
+ "enabled" : true ,
+ "name" : "HTTPS rewrite"
+ },
+ {
+ "enabled" : false ,
+ "name" : "Vim-like hotkeys"
+ }
+ ],
+ "safe_search" : 0
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dev/contribution_guide.html b/dev/contribution_guide.html
index 3d070bf7..88860f9c 100644
--- a/dev/contribution_guide.html
+++ b/dev/contribution_guide.html
@@ -6,7 +6,7 @@
- How to contribute — searx 0.8.0 documentation
+ How to contribute — searx 0.9.0 documentation
@@ -14,7 +14,7 @@
-
-
+
+
@@ -146,7 +146,7 @@ files, you have to install it on your system. (It can be installed easily using