Markus Heiser
69a61ce333
[fix] remove doc-build for centos-7 from './utils/searx.sh doc'
...
Since there is no centos-7 documentation 'searx.sh doc' produce an error
message::
ERROR: centos-: uWSGI not yet implemented
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-09-20 11:11:14 +02:00
Markus Heiser
9b9b5e9625
[fix] docker-entrypoint.sh -h hangs if searx is a valid user ( #2099 )
...
Implement a more robust detection if a process runs inside or outside of a
docker image.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-08-18 19:14:06 +02:00
Markus Heiser
3c45fb7a99
[fix] set encoding of README.rst explicit in setup.py (utf-8) ( #2117 )
...
## What does this PR do?
When installing searx on a centos-7 image [1] an encoding exception is raised from setup.py::
command: /usr/local/searx/searx-pyenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/usr/local/searx/searx-src/setup.py'"'"'; __file__='"'"'/usr/local/searx/searx-src/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pidntzkq
cwd: /usr/local/searx/searx-src/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/searx/searx-src/setup.py", line 16, in <module>
long_description = f.read()
File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 482: ordinal not in range(128)
[1] https://uk.images.linuxcontainers.org/
## Why is this change important?
README.rst uses non ASCII characters _(pronunciation səːks.)_
## How to test this PR locally?
install searx on a centos-7 image from https://uk.images.linuxcontainers.org/
2020-08-08 20:01:04 +02:00
Markus Heiser
623fb87065
[enh] add centos-7 to LXC images ( #2118 )
...
## What does this PR do?
To test centos-7 on non centos systems add centos-7 image to the LXC suite.
## Why is this change important?
PR #2112 adds centos-7 support to the install scripts
## How to test this PR locally?
`sudo ./utils/lxc.sh build searx-centos7`
2020-08-08 19:50:11 +02:00
Markus Heiser
9764ef9a5a
Merge pull request #2097 from gardouille/fix-filtron-doc
...
Filtron sample: Add missing comma
2020-07-25 09:51:20 +00:00
Markus Heiser
3fe78c64c6
[fix] minor typos in docs/admin/settings.rst
...
This comit is a replacement for https://github.com/asciimoo/searx/pull/2005
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-07-13 17:49:07 +02:00
Markus Heiser
72e86be0ce
[fix docs] typo in the template to create a new user
...
closes: https://github.com/asciimoo/searx/issues/2062
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-07-13 17:49:07 +02:00
Markus Heiser
c41db5f1ba
Merge pull request #2059 from dalf/bang-encoding
...
[mod] external_bang.py: always read bangs.json with a UTF-8 file.
2020-07-12 09:12:55 +00:00
Markus Heiser
f9faafa896
[fix] external_bang - UnicodeDecodeError: 'ascii' codec can't decode ( #2043 )
...
Python's default encoding depends on the platform, set (python) default encoding
UTF-8 in uwsgi ini files:
LANG=C.UTF-8
LANGUAGE=C.UTF-8
LC_ALL=C.UTF-8
Error pattern:
Traceback (most recent call last):
File "/usr/local/searx/searx-src/searx/webapp.py", line 74, in <module>
from searx.search import SearchWithPlugins, get_search_query_from_webapp
File "/usr/local/searx/searx-src/searx/search.py", line 32, in <module>
from searx.external_bang import get_bang_url
File "/usr/local/searx/searx-src/searx/external_bang.py", line 13, in <module>
for bang in json.load(json_file)['bang']:
File "/usr/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31341: ordinal not in range(128)
close: https://github.com/asciimoo/searx/issues/2041
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-07-11 12:17:06 +02:00
Markus Heiser
16f8ec894a
[fix] revise google images engine
...
this commit is picked from #1985
2020-07-07 21:59:15 +02:00
Markus Heiser
410c2f903d
[fix] revise google engine
...
this commit is picked from #1985
2020-07-07 21:50:59 +02:00
Markus Heiser
f14a7add31
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-30 15:37:39 +02:00
Markus Heiser
c59ca60042
Merge pull request #1974 from return42/gigablast
...
Revise of the gigablast engine
2020-06-29 16:17:06 +00:00
Markus Heiser
8d318ee142
Merge branch 'master' into gigablast
2020-06-29 16:09:59 +00:00
Markus Heiser
fe72c7a6fd
Merge pull request #2000 from gordon-quad/duckduckgo_correction
...
add correction support for duckduckgo
2020-06-29 06:56:32 +00:00
Markus Heiser
02017bc624
Merge branch 'master' into duckduckgo_correction
2020-06-29 06:47:06 +00:00
Markus Heiser
0fdd9339d0
Merge pull request #2024 from return42/blog-dev-in-lxc
...
[blog post] Developing in Linux containers
2020-06-29 06:20:21 +00:00
Markus Heiser
bdd24a6e71
Merge branch 'master' into blog-dev-in-lxc
2020-06-29 06:14:42 +00:00
Markus Heiser
3d30a0be2b
Merge pull request #2032 from kvch/docs-pronouns
...
Use gender neutral pronouns in docs and blog
2020-06-28 09:49:50 +00:00
Markus Heiser
0b4e20ba9a
Merge pull request #1950 from return42/about-opensearch
...
[fix] about page- 'How to set as the default search engine?'
2020-06-26 08:47:14 +00:00
Markus Heiser
5f201dea7d
Merge branch 'master' into about-opensearch
2020-06-26 08:33:37 +00:00
Markus Heiser
5fac6cffa2
Merge branch 'master' into gigablast
2020-06-26 08:09:33 +00:00
Markus Heiser
5293e58032
[fix] yahoo engine - changed content_xpath
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-25 21:45:42 +02:00
Markus Heiser
74d21ead56
Merge branch 'master' into new-readme
2020-06-25 05:44:46 +00:00
Markus Heiser
fc370faa5b
Merge branch 'master' into gigablast
2020-06-25 05:42:28 +00:00
Markus Heiser
a059c59cea
Merge branch 'master' into about-opensearch
2020-06-25 05:42:11 +00:00
Markus Heiser
c9795ad01f
Merge branch 'master' into blog-dev-in-lxc
2020-06-24 17:13:20 +00:00
Markus Heiser
ccb1fe11d7
Merge pull request #2016 from dalf/proxify-dataurl
...
[mod] don't try to proxify data URL.
2020-06-24 17:13:03 +00:00
Markus Heiser
34264f0b0a
Merge branch 'master' into proxify-dataurl
2020-06-24 17:07:05 +00:00
Markus Heiser
9c71f620a7
[add blog post] Developing in Linux containers [202006]
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-24 17:49:38 +02:00
Markus Heiser
18805ee352
[fix] markup of auto generated installation instruction (uWSGI part)
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-24 15:15:15 +02:00
Markus Heiser
4eab5cf854
Merge branch 'master' into gigablast
2020-06-19 04:51:48 +00:00
Markus Heiser
1db37a0cc3
Merge branch 'master' into about-opensearch
2020-06-19 04:51:29 +00:00
Markus Heiser
ca1c3bd15d
Merge branch 'master' into csp-oscar-theme
2020-06-19 04:51:02 +00:00
Markus Heiser
6337d515dd
Merge branch 'master' into new-readme
2020-06-19 04:50:36 +00:00
Markus Heiser
0616684baa
[fix] sphinx 3.1 CSS issues
...
See sphinx-doc project, PR 7838 & 7484 with elementary patch to the basic CSS:
- https://github.com/sphinx-doc/sphinx/issues/7838#issuecomment-646009605
- https://github.com/sphinx-doc/sphinx/pull/7484#issuecomment-646058972
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 19:02:22 +02:00
Markus Heiser
a5e82f9801
[fix] margial typo in docs/user/onf.py doc-string
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:57:10 +02:00
Markus Heiser
bfef2c3b65
[fix] buildprocess of docs in LXC (containers)
...
The $DOCS_BUILD variable (like all BUILD variables) in the lxc environment::
sudo -H ./utils/lxc.sh cmd searx-archlinux make docs
is different from running build process in the HOST::
make docs
with kernel-include directive we can use the environment variables in the reST
documents to address the correct file location of the include.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:52:45 +02:00
Markus Heiser
aa5f947157
[enh] add 'kernel-include' reST-directive
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:51:31 +02:00
Markus Heiser
15924bcb67
[fix] buildprocess of the docs by adding sphinx-doc-prebuilds target
...
The sphinx-doc-prebuilds is the single point of definition for prerequisites
each doc build needs
BTW: remove $(LXC_ENV_FOLDER) offset from BOOKS_FOLDER and DOCS_FOLDER path.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:44:22 +02:00
Markus Heiser
4f7a6c09dd
[fix] buildhosts documentation
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:39:56 +02:00
Markus Heiser
51428de0fe
[fix] add missing latexmk package to debian's BUILD_PACKAGES
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:35:59 +02:00
Markus Heiser
6ff20cef73
[fix] indentation of filtron's rules (json)
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-18 18:31:46 +02:00
Markus Heiser
cc721b5d86
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-16 10:17:03 +02:00
Markus Heiser
5dd235463a
Merge branch 'master' into new-readme
2020-06-16 07:39:20 +00:00
Markus Heiser
59739a44db
Merge branch 'master' into about-opensearch
2020-06-16 07:37:06 +00:00
Markus Heiser
223430ff30
Merge branch 'master' into gigablast
2020-06-16 07:36:44 +00:00
Markus Heiser
dda4a46f8e
Merge branch 'master' into filtron
2020-06-16 05:56:12 +00:00
Markus Heiser
e2770b5871
Merge branch 'master' into filtron
2020-06-12 05:36:23 +00:00
Markus Heiser
1789184386
Merge branch 'master' into new-readme
2020-06-12 05:35:14 +00:00
Markus Heiser
220e6e6bfd
Merge branch 'master' into csp-oscar-theme
2020-06-12 05:34:47 +00:00
Markus Heiser
09c6fe8d4b
Merge branch 'master' into about-opensearch
2020-06-12 05:34:35 +00:00
Markus Heiser
f8254cebc0
Merge branch 'master' into gigablast
2020-06-12 05:34:24 +00:00
Markus Heiser
6fb5c6aad9
Merge pull request #1992 from return42/2c6531b2-hotfix
...
[fix] commit 2c6531b2 breaks the unit test, this is a hotfix
2020-06-12 05:32:46 +00:00
Markus Heiser
eae3481688
[fix] commit 2c6531b2 breaks the unit test, this is a hotfix
...
commit 2c6531b2 does not only break the unit test, it is a significant change of
the data model and the searx search-syntax model (UI) without any discussion nor
documentation.
At the end, adding routes to instant answers is a nice feature but commit
2c6531b2 leaf some questions open.
In that sense, this patch is only a hotfix not a assessment.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-06-11 10:15:15 +02:00
Markus Heiser
e088b95e74
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-10 07:25:44 +02:00
Markus Heiser
4496ad1218
Merge branch 'master' into filtron
2020-06-10 04:55:41 +00:00
Markus Heiser
540a812a2c
Merge branch 'master' into new-readme
2020-06-10 04:55:22 +00:00
Markus Heiser
cc82303b62
Merge branch 'master' into about-opensearch
2020-06-10 04:55:04 +00:00
Markus Heiser
ee0da61cbb
Merge branch 'master' into gigablast
2020-06-10 04:54:57 +00:00
Markus Heiser
3f660e1ff0
Merge branch 'master' into new-readme
2020-06-09 08:30:11 +00:00
Markus Heiser
2b1f73ad49
Merge branch 'master' into about-opensearch
2020-06-09 08:29:48 +00:00
Markus Heiser
d065b9e4fb
Merge branch 'master' into csp-oscar-theme
2020-06-09 08:28:53 +00:00
Markus Heiser
3d6a7302a2
Merge branch 'master' of https://github.com/asciimoo/searx into gigablast
2020-06-09 10:27:10 +02:00
Markus Heiser
28181ba34f
Merge branch 'master' of https://github.com/asciimoo/searx into filtron
2020-06-09 10:20:20 +02:00
Markus Heiser
d894785f3c
Merge branch 'master' into new-readme
2020-06-06 12:44:15 +00:00
Markus Heiser
d9c1d5192d
Merge branch 'master' into gigablast
2020-06-04 21:20:30 +00:00
Markus Heiser
434e452d54
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-04 23:18:22 +02:00
Markus Heiser
1fc0e9ddc5
Merge branch 'master' of https://github.com/asciimoo/searx into filtron
2020-06-04 21:22:53 +02:00
Markus Heiser
2b2a882df0
Merge branch 'master' into filtron
2020-06-03 16:33:06 +00:00
Markus Heiser
b85d845636
Merge branch 'master' of https://github.com/asciimoo/searx into about-opensearch
2020-06-01 09:43:19 +02:00
Markus Heiser
6fc26775e4
Merge branch 'master' of https://github.com/asciimoo/searx into filtron
2020-06-01 09:25:30 +02:00
Markus Heiser
a3431d59d3
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-01 09:18:51 +02:00
Markus Heiser
244f0fbd0d
Merge branch 'master' into new-readme
2020-06-01 06:24:21 +00:00
Markus Heiser
74135007eb
Merge branch 'master' into gigablast
2020-06-01 06:23:45 +00:00
Markus Heiser
ee5d2b319b
[fix] gigablast requires a random extra parameter
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-29 12:48:58 +02:00
Markus Heiser
d44b4eda64
[fix] gigablaste engine: switch from pep8 to pylint test
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-29 08:52:11 +02:00
Markus Heiser
a18760b322
[fix] revise of the gigablast engine (WIP)
...
The gigablast API has changed and seems to have some quirks, this is the first
revise. More work (hacks) are needed.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-28 19:24:03 +02:00
Markus Heiser
57c7b90edd
[fix] gigablast does no longer support *supported_languages_url*
...
Since there are zero results, we can remove it:
$ make engines.languages
fetch languages ..
...
fetched 0 languages from engine gigablast
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-28 15:21:01 +02:00
Markus Heiser
1510382558
utils/fetch_languages.py: print more meaningfull messages
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-28 15:18:47 +02:00
Markus Heiser
de179ecc5b
[fix] remove debug print from commit e5305f8
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-28 15:17:59 +02:00
Markus Heiser
d38952c133
Merge pull request #1963 from KazamaSion/master
...
Revise outdated URLs
2020-05-28 11:18:53 +00:00
Markus Heiser
d44b034817
Merge branch 'master' into master
2020-05-28 11:09:15 +00:00
Markus Heiser
e62ac42259
Merge pull request #1971 from resynth1943/master
...
Add autofocus to all search inputs
2020-05-28 11:05:18 +00:00
Markus Heiser
f576cadfba
[fix] installation instructions: pip install -e searx (setup.py)
...
In the past we did not really install searx into the virtualenv. This is a
problem, since entry-points and other python installation stuff is not trigger.
See discussion: https://github.com/asciimoo/searx/pull/1938#issuecomment-632056508
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-21 15:46:43 +02:00
Markus Heiser
fcc5af66d8
[fix] disable debug in settings.yml by default
...
debug was accidentally enabled in commit cbc08fd
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-21 15:16:49 +02:00
Markus Heiser
c9f9e7da52
[build] rebuild of the oscar theme, build from ad208378
...
the CSS files has been build by:
$ make themes.oscar
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-15 10:23:21 +02:00
Markus Heiser
ad208378bb
[fix] oscar theme, remove inline style attributes (CSP compliants)
...
Inline styles are blocked by default with Content Security Policy (CSP). Move
the rest of inline styles to CSS and correct the HTML template of the oscar
preference page.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-15 10:16:49 +02:00
Markus Heiser
4954e56b69
[fix] Makefile: node.env is a prerequisite of lessc and grunt
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-15 09:57:09 +02:00
Markus Heiser
f8b16a6635
[README] searx, world's first gluten free search engine ;)
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-12 15:02:53 +02:00
Markus Heiser
250e05e826
[README] update and polish up a little by using badges
...
about markup & badges
- https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst
- https://github.com/Naereen/badges/blob/master/README.rst
- https://shields.io/
- https://gist.github.com/tterb/982ae14a9307b80117dbf49f624ce0e8
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-12 14:57:45 +02:00
Markus Heiser
e7788980ad
[fix] about page- 'How to set as the default search engine?'
...
Searx supports OpenSearch, remove the inline JS from the about page.
close: https://github.com/asciimoo/searx/issues/1949
close: https://github.com/asciimoo/searx/issues/1616
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-12 14:17:47 +02:00
Markus Heiser
9c08adf6f2
Merge branch 'master' of https://github.com/asciimoo/searx into filtron
2020-05-11 08:57:16 +02:00
Markus Heiser
e50ccc99c0
archlinux: add package 'inetutils' to boilerplate
...
Even it is a core component, some hoster do not have pre installed the
'inetutils' package. We do need this package for the 'hostname' command.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-05-04 16:15:23 +02:00
Markus Heiser
f42bc330b8
Merge branch 'master' into filtron
2020-05-01 13:35:12 +00:00
Markus Heiser
0973255aff
[fix] fatal: repository '/root/searx' does not exist
...
The $SERVICE_USER (searx) needs read permission to clone repository. The
installation script stops if permission is not granted.
- https://github.com/asciimoo/searx/pull/1803#issuecomment-616406528
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-04-30 17:49:26 +02:00
Markus Heiser
d27331c8d9
Merge pull request #1479 from milouse/fix/manage.sh
...
fix: Remove english shell dependency in manage.sh script
2020-04-29 13:01:09 +00:00
Markus Heiser
4bae1a9eab
Merge branch 'master' into fix/manage.sh
2020-04-29 12:55:13 +00:00
Markus Heiser
ceceee546b
[fix] Remove english shell dependency in manage.sh script
...
see https://github.com/asciimoo/searx/pull/1479#issuecomment-569904632
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2020-04-29 14:36:47 +02:00
Markus Heiser
5f1cba5337
Revert "fix: Remove english shell dependency in manage.sh script"
...
This reverts commit 7b9c8f777b .
2020-04-29 14:33:47 +02:00