Martin Fischer
8e9ad1ccc2
[enh] introduce categories_as_tabs
...
Previously all categories were displayed as search engine tabs.
This commit changes that so that only the categories listed under
categories_as_tabs in settings.yml are displayed.
This lets us introduce more categories without cluttering up the UI.
Categories not displayed as tabs can still be searched with !bangs.
3 years ago
Martin Fischer
02e9bdf755
[doc] engine tables: show engines in all categories
...
Previously the documentation grouped the engines by their first
category so e.g. YouTube and Invidious were only shown in the
in the videos section but not in the music section.
This commit fixes this by iterating over searx.engines.categories,
which also has the added benefit that the sections are now in the
same order as the tabs in the user interface.
3 years ago
Martin Fischer
d8af94b721
[doc] engine-table: stop sorting by Disabled
...
It's only the default value for disabled it's not that important,
since users can easily toggle it anytime in the engine preferences.
3 years ago
Martin Fischer
df34b1ddcf
[enh] settings.yml: allow granular overwrites for about
3 years ago
Martin Fischer
8a0810cedc
[fix] bang syntax for categories with spaces
3 years ago
Alexandre Flament
458b7fb72d
Merge pull request #610 from return42/img-load-error
...
[fix] simple theme: hide the image if img load fails
3 years ago
Alexandre Flament
d83aa2b0d2
Merge pull request #613 from return42/pylint-bing-images
...
[pylint] Bing (Images) engine
3 years ago
Markus Heiser
c2e4b95e8d
Merge pull request #672 from searxng/update_data_update_languages.py
...
Update searx.data - update_languages.py
3 years ago
Markus Heiser
3cdf2d6570
Update searx.data - update_languages.py
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
8191e1a253
[fix] update_languages.py: generate code that passes CI
...
File searx/languages.py, created by update_languages.py has to pass quality
check from CI::
make format.python
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
21d7c8b367
Merge pull request #676 from return42/fix-bing-lang
...
Fix issues on running update_languages.py
3 years ago
Markus Heiser
8a07559ab5
[fix] update_languages.py: no excption on unknown locale & language
...
Fix exception handling of unknown locales and languages::
ERROR: ca_ES_valencia --> [Errno 2] No such file or directory: 'local/py3/lib/python3.8/site-packages/babel/locale-data/ca_ES_valencia.dat'
ERROR: languages['fil-PH'] --> {'name': None, 'english_name': None}
ERROR: languages['nb-NO'] --> {'name': None, 'english_name': None}
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
61ce0c2244
[fix] bing engines: fetch_supported_languages
...
The Request to and the Response from https://www.bing.com/account/general has
been changed.
[1] https://github.com/searxng/searxng/pull/672#discussion_r777104919
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
6b49f32d3e
Merge pull request #670 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
3 years ago
Markus Heiser
3dcba2f67c
Merge pull request #671 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
3 years ago
Markus Heiser
877293c470
Merge pull request #673 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
3 years ago
Markus Heiser
9f175295dd
Merge pull request #674 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
3 years ago
dalf
127da09fc9
Update searx.data - update_wikidata_units.py
3 years ago
dalf
291483af53
Update searx.data - update_currencies.py
3 years ago
dalf
a0016250ec
Update searx.data - update_ahmia_blacklist.py
3 years ago
dalf
184242d36b
Update searx.data - update_firefox_version.py
3 years ago
Markus Heiser
021b4a0a02
Merge pull request #667 from searxng/dependabot/pip/master/pygments-2.11.0
...
Bump pygments from 2.10.0 to 2.11.0
3 years ago
Markus Heiser
efbcaaab3b
[build] /static
3 years ago
Markus Heiser
391e4b57c9
make pygments.less
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
cd6b64156b
Merge pull request #668 from searxng/translations_update
...
Update translations
3 years ago
searxng-bot
db4885f7d4
[translations] update from Weblate
...
055a6080
- 2021-12-28 - Markus Heiser <markus.heiser@darmarit.de>
d028dfd7
- 2021-12-26 - Gert-dev <gert+github@disroot.org>
d2f3b998
- 2021-12-24 - Markus Heiser <markus.heiser@darmarit.de>
1b882f56
- 2021-12-29 - VaiTon <eyadlorenzo@gmail.com>
f8e524a3
- 2021-12-27 - Markus Heiser <markus.heiser@darmarit.de>
70eafa9c
- 2021-12-26 - Frederik From <frederikfrom@pm.me>
7eb20cec
- 2021-12-28 - Markus Heiser <markus.heiser@darmarit.de>
3cb754a4
- 2021-12-25 - Markus Heiser <markus.heiser@darmarit.de>
3 years ago
dependabot[bot]
94289b1e02
Bump pygments from 2.10.0 to 2.11.0
...
Bumps [pygments](https://github.com/pygments/pygments ) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/pygments/pygments/releases )
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES )
- [Commits](https://github.com/pygments/pygments/compare/2.10.0...2.11.0 )
---
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Markus Heiser
f087d01e24
[build] /static
3 years ago
Markus Heiser
f75199b1ec
[fix] simple theme: hide the image if img load fails
...
Add event listener to query selector::
'#urls img.image'
From the user point of view, I think it is better to hide the image:
img_load_error.svg is helplful in the image category because it still allows to
select the image. IMO, in the news category, the fact there is a missing image
won't help to choose the links. From a developer point of view, the place holder
is signal that may be the engine needs to be updated (at least give a look). The
browser console should show the same information too, but it requires some
additional steps. [1]
[1] https://github.com/searxng/searxng/pull/610#issuecomment-997640132
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
7966fd3bbd
Merge pull request #663 from dalf/mod_secret_key
...
changes about the secret_key
3 years ago
Markus Heiser
5cbbdc305f
Merge pull request #614 from return42/pylint-bing-video
...
[pylint] Bing (Videos) engine
3 years ago
Markus Heiser
8f3a7feb47
[mod] implement is_hmac_of() in webutils / close to new_hmac()
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>, Alexandre Flament
3 years ago
Markus Heiser
dc4f1f705d
[pylint] Bing (Images) engine
...
Fix remarks from pylint and remove obsolete try/except block
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
6d7a38a912
[pylint] Bing (Videos) engine
...
Fix remarks from pylint and remove obsolete try/except block
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
7d4834ac4d
[mod] webutils.py: remove dead code
...
secret_key can't be bytes (see settings_default.py)
3 years ago
Alexandre Flament
d784870209
[fix] use hmac.compare_digest instead of ==
...
see https://docs.python.org/3/library/hmac.html#hmac.HMAC.hexdigest
3 years ago
Alexandre Flament
c6922ae7c5
Merge pull request #619 from dalf/apply-black
...
Apply black
3 years ago
Markus Heiser
d84226bf63
[fix] issues reported by pylint
...
Fix pylint issues from commit (3d96a983
)
[format.python] initial formatting of the python code
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
fcdc2c2cd2
[format.python] disable py code formatting for some hunks of code
...
Disable the python code formatting from python-black, where the readability of
code suffers by formatting.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
c849731eb1
[mod] test.black: show issues (diff) reported by python-black
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
3c77412d33
[mod] replace pycodestyle by black
...
"make test.black" checks for the code style
"make format.python" format the python code
3 years ago
Markus Heiser
54bce130f9
Merge pull request #658 from dalf/fix-standalone-script
...
Fix standalone script
3 years ago
Alexandre Flament
9215d4cde7
[fix] python searxng_extra/standalone_searx.py --help
...
The scripts loads the engine and then parse the arguments.
After that the engines are initialized.
Before this commit, with "--help", the HTTP clients are closed before
the engine initialization threads. When these init threads try to send
an HTTP request, an exception is raised.
3 years ago
Alexandre Flament
811837d109
[remove] searxng_extra/google_search.py
...
remove deprecated script
3 years ago
Markus Heiser
6ffa741e7a
Merge pull request #653 from searxng/dependabot/pip/master/linuxdoc-20211220
...
Bump linuxdoc from 20210324 to 20211220
3 years ago
Markus Heiser
e1c7623100
Merge pull request #652 from searxng/dependabot/pip/master/sphinx-4.3.2
...
Bump sphinx from 4.3.1 to 4.3.2
3 years ago
Markus Heiser
6c32043e47
Merge pull request #648 from return42/doc-globaltoc
...
[doc] add global TOC to sidebar
3 years ago
dependabot[bot]
8acde3745f
Bump sphinx from 4.3.1 to 4.3.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.1...v4.3.2 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Alexandre Flament
7bef2cc8dc
Merge pull request #548 from searxng/dependabot/pip/master/selenium-4.1.0
...
Bump selenium from 3.141.0 to 4.1.0
3 years ago