From 6641fb20a2ac30392499c528ab7f3749ab4c1cb4 Mon Sep 17 00:00:00 2001
From: Noemi Vanyi
Date: Sat, 9 Jul 2016 21:46:20 +0200
Subject: [PATCH 1/5] version bump to 0.9.0 && year to 2016
---
docs/conf.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index 30fe9031..b1392bab 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,7 +49,7 @@ master_doc = 'index'
# General information about the project.
project = u'searx'
-copyright = u'2015, Adam Tauber'
+copyright = u'2015-2016, Adam Tauber'
author = u'Adam Tauber'
# The version info for the project you're documenting, acts as replacement for
@@ -57,9 +57,9 @@ author = u'Adam Tauber'
# built documents.
#
# The short X.Y version.
-version = '0.8.0'
+version = '0.9.0'
# The full version, including alpha/beta/rc tags.
-release = '0.8.0'
+release = '0.9.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
From c3b770be0c1ff02ce8bd96390d9b4d4219ee73b6 Mon Sep 17 00:00:00 2001
From: Noemi Vanyi
Date: Sat, 9 Jul 2016 21:55:17 +0200
Subject: [PATCH 2/5] generated files of parent
---
_static/basic.css | 15 ++++++++++-----
_static/doctools.js | 28 ++++++++++++++++++++++++++--
_static/pygments.css | 2 --
_static/searchtools.js | 6 +++---
_static/websupport.js | 4 ++--
dev/plugins.html | 28 ++++++++++++++--------------
dev/search_api.html | 10 +++++-----
genindex.html | 8 ++++----
index.html | 8 ++++----
objects.inv | Bin 201 -> 440 bytes
search.html | 8 ++++----
searchindex.js | 2 +-
12 files changed, 73 insertions(+), 46 deletions(-)
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/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/dev/plugins.html b/dev/plugins.html
index 83d33985..db63c5ef 100644
--- a/dev/plugins.html
+++ b/dev/plugins.html
@@ -6,7 +6,7 @@
- Plugins — searx 0.8.0 documentation
+ Plugins — searx 0.9.0 documentation
@@ -14,7 +14,7 @@
-
+
@@ -45,20 +45,20 @@
searx.
example_plugin.py
-
name = 'Example plugin'
-description = 'This plugin extends the suggestions with the word "example"'
-default_on = False # disable by default
+name = 'Example plugin'
+description = 'This plugin extends the suggestions with the word "example"'
+default_on = False # disable by default
-js_dependencies = tuple () # optional, list of static js files
-css_dependencies = tuple () # optional, list of static css files
+js_dependencies = tuple () # optional, list of static js files
+css_dependencies = tuple () # optional, list of static css files
-# attach callback to the post search hook
-# request: flask request object
-# ctx: the whole local context of the post search hook
+# attach callback to the post search hook
+# request: flask request object
+# ctx: the whole local context of the post search hook
def post_search ( request , ctx ):
- ctx [ 'search' ] . suggestions . add ( 'example' )
- return True
+ ctx [ 'search' ] . suggestions . add ( 'example' )
+ return True
@@ -109,7 +109,7 @@ parallel)