summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-24Merge pull request #802 from MontyQI/Icon-updateAlexandre Flament
Changed preferences icon to settings icon in gruntfile
2022-01-24Merge pull request #804 from return42/minor-fixMartin Fischer
[mod] lib_nvm.sh: minor improvements / no functional change
2022-01-24Merge pull request #816 from return42/fix-emacsMarkus Heiser
[emacs] flycheck should use the eslint checker from developer tools
2022-01-24[emacs] flycheck should use the eslint checker from developer toolsMarkus Heiser
Since commit cac03529 the eslint has been moved from the local nvm to the developer packages (in `./node_modules`). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-24Merge pull request #783 from not-my-profile/pyrightconfig.jsonMartin Fischer
[enh] add pyrightconfig.json and integrate pyright into CI
2022-01-24[mod] introduce node.env.devtools functionMarkus Heiser
2022-01-23move WolframAlpha away from Science categoryMarc Abonce Seguin
2022-01-23[mod] configuration to overwrite engine descriptionMarkus Heiser
Engine description can be configured, this is needed e.g. by custom search engines. Here is an example of a command engine with a description in the about section:: - name: locate engine: command command: ['locate', '{{QUERY}}'] disabled: true categories: files about: description: local files website: 'https://www.man7.org/linux/man-pages/man1/locate.1.html' delimiter: chars: ' ' keys: ['line'] Closes: https://github.com/searxng/searxng/issues/788 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23Merge pull request #799 from return42/brave-completeAlexandre Flament
Add autocompleter from Brave
2022-01-23[fix] brave autocompleter: charset_normalizer issuesMarkus Heiser
Use httpx.Response.json() to avoid charset_normalizer issues: DEBUG charset_normalizer : override steps (5) and chunk_size (512) as content does not fit (153 byte(s) given) parameters. INFO charset_normalizer : ascii passed initial chaos probing. Mean measured chaos is 0.000000 % DEBUG charset_normalizer : ascii should target any language(s) of ['Latin Based'] INFO charset_normalizer : ascii is most likely the one. Stopping the process. [1] https://www.python-httpx.org/api/#response Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23Merge pull request #807 from spalinger/masterMarkus Heiser
[fix] url
2022-01-23Merge pull request #758 from not-my-profile/introduce-userdocAlexandre Flament
Introduce `searx/help/`
2022-01-23[pylint] searx/autocomplete.pyMarkus Heiser
Fix remarks from pylint, BTW set SPDX-License-Identifier. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[help] stop rendering documentation with Jinja2Martin Fischer
To facilitate translation of the user documentation we move the templating logic outside of the user documentation.
2022-01-23[help] convert about.html to MarkdownMartin Fischer
To facilitate translation the new user documentation shall be written in Markdown (which is more human-friendly than HTML and reStructuredText).
2022-01-23[help] render user documentation once on startupMartin Fischer
Currently we have two kinds of user documentation: * the about page[1] which is written in HTML and part of the web application and can therefore link instance-specific pages (like e.g. the preferences) via Jinja variables * the Sphinx documentation[2] which is written in reStructuredText and cannot link instance-specific pages since it doesn't know which instance the user is using The plan is to integrate the user documentation currently in Sphinx into the application, so that it can also link instance specific pages. We also want to enable the user documentation to be translated. This commit implements the first step in this endeavor (see #722). [1]: searx/templates/__common__/about.html [2]: docs/user/ (currently served at https://docs.searxng.org/user/)
2022-01-23[mod] remove .nvm_packages, add eslint to package.jsonMartin Fischer
2022-01-23[fix] ensure that test.pyright installs pyrightMartin Fischer
nodejs.ensure only sets up NVM if there isn't a system-wide installation of Node that matches our NODE_MINIMUM_VERSION. The ubuntu image in the CI comes with an up to date node version, so pyright from .nvm_packages is never installed. This commit fixes this by introducing a package.json file.
2022-01-23[mod] add test.pyright to test & ci.test targetsMartin Fischer
Since we currently have many type checking errors, we for now only test with typeCheckingMode: off which makes pyright only check files that contain a comment: # pyright: basic to enable basic type checking, or # pyright: strict to enable strict type checking.
2022-01-23[enh] clarify why we run pyright in the pyenvMartin Fischer
2022-01-23[emacs] .dir-locals.el: activate pyright in python-modeMarkus Heiser
To get in use of pyright type cheker in Emacs, a pyright installation [1] is needed and in Emacs the lsp-pyright package has to be installed:: M-x package-install lsp-pyright [1] https://github.com/Microsoft/pyright [2] https://github.com/emacs-lsp/lsp-pyright Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[mod] manage test.pyright: a commandline to run pyright testsMarkus Heiser
This patch implements the command and Makefile target:: ./manage test.pyright make test.pyright Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[mod] add pyright to nvm's node installationMarkus Heiser
Pyright [1] is in the nvm enviroment, may be you need to rebuild the nvm environment and install nodejs in:: ./manage nvm.clean ./manage nvm.nodejs The last command installs nodejs and the packages from .nvm_packages. You can test your pyright installation, to get a bash within the nvm run:: ./manage nvm.bash (nvm) $ which pyright ./.nvm/versions/node/v16.13.0/bin/pyright If you have a local nvm in your HOME folder, the output from ``which`` is different. Press ``[CTRL-D]`` to get out of this bash. [1] https://github.com/microsoft/pyright Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[fix] pyrightconfig.json include only dedicated folders in the testMarkus Heiser
Without specifying folders to check, pyright will also scan files in folders like ./build, ./cache, ./.nvm and more. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[enh] add pyrightconfig.jsonMartin Fischer
By adding this file Pyright automatically detects the packages from our Python virtual environment. This can be tested by using the Pyright extension for VS Code or by running npx pyright.
2022-01-23[fix] urlspalinger
2022-01-22[mod] lib_nvm.sh: minor improvements / no functional changeMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-22Merge pull request #801 from dalf/fix-checkerAlexandre Flament
[fix] checker: fix image fetch
2022-01-22[build] /staticMonty
2022-01-22Changed preferences icon to settings icon in gruntfileMonty
2022-01-22[fix] checker: fix image fetchAlexandre Flament
Since https://github.com/searxng/searxng/pull/354 the searx.network.stream(...) returns a tuple This commits update the checker code according to this function signature change.
2022-01-22Merge pull request #775 from return42/redis-4.1.1Alexandre Flament
Revert "[hotfix] interim fix to get docker-build of CI without issues"
2022-01-21[enh] Add autocompleter from BraveAllen
Raw response example: https://search.brave.com/api/suggest?q=how%20to:%20with%20j Headers are needed in order to get a 200 response, thus Searx user-agent is used. Other URL param could be '&rich=false' or '&rich=true'. Cherry-pick: https://github.com/allendema/searx/commit/71786bf9cb6fbb175a054692e6951e77769aac1b
2022-01-21Merge pull request #795 from searxng/dependabot/pip/master/sphinx-4.4.0Markus Heiser
Bump sphinx from 4.3.2 to 4.4.0
2022-01-21[docs] fix some warnings from Sphinx-doc update 4.3.2 to 4.4.0Markus Heiser
With Sphinx-doc update 4.4.0 we get some warnings about links that can be replaced by already defined 'sphinx.ext.extlinks': admin/engines/sql-engines.rst:144: WARNING: hardcoded link 'https://pypi.org/project/mysql-connector-python' could be replaced by an extlink (try using ':pypi:`mysql-connector-python`' instead) docs/admin/installation-switch2ng.rst:10: WARNING: hardcoded link 'https://github.com/searxng/searxng/pull/446#issuecomment-954730358' could be replaced by an extlink (try using ':pull:`446#issuecomment-954730358`' instead) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-21Merge pull request #796 from searxng/translations_updateMarkus Heiser
Update translations
2022-01-21[translations] update from Weblatesearxng-bot
f3f70b7d - 2022-01-20 - Genghis Khan <genghiskhan@gmx.ca> c66d23fb - 2022-01-15 - Linerly <linerly@protonmail.com> c2b9f7f7 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> 159ec416 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> 8184a23b - 2022-01-17 - lucky13820 <hello@ryanyao.design> c4b476d4 - 2022-01-18 - Go2SheeP <allen.ccccnm@gmail.com> eaf18ed5 - 2022-01-17 - Markus Heiser <markus.heiser@darmarit.de> e7fec156 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> 99368a91 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> a8b23af9 - 2022-01-19 - Markus Heiser <markus.heiser@darmarit.de> 7af1ba21 - 2022-01-17 - Genghis Khan <genghiskhan@gmx.ca> 0af5a3ee - 2022-01-15 - Alexandre Flament <alex@al-f.net> a448183b - 2022-01-14 - Markus Heiser <markus.heiser@darmarit.de> ea4f95cf - 2022-01-19 - Markus Heiser <markus.heiser@darmarit.de> 2f3e7ac9 - 2022-01-17 - Iosevka <iosevka@protonmail.com> c28ae5a8 - 2022-01-17 - Markus Heiser <markus.heiser@darmarit.de> b664bd3b - 2022-01-17 - Pham Nguyen <akizminet@gmail.com>
2022-01-21Bump sphinx from 4.3.2 to 4.4.0dependabot[bot]
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.2 to 4.4.0. - [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.2...v4.4.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18Merge pull request #773 from not-my-profile/typingMartin Fischer
More typing
2022-01-18Merge pull request #781 from return42/fix-googleMarkus Heiser
[fix] google engine: remove adds and fix mobile_ui selector
2022-01-18Merge pull request #782 from return42/fix-sh-issuesMarkus Heiser
[fix] issues reported by and fix documentation of test.shell
2022-01-18[fix] googel engine - "some results are invalids: invalid content"Markus Heiser
Fix google issues listet in the `/stats?engine=google` and message:: some results are invalids: invalid content The log is:: DEBUG searx : result: invalid content: {'url': 'https://de.wikipedia.org/wiki/Foo', 'title': 'Foo - Wikipedia', 'content': None, 'engine': 'google'} WARNING searx.engines.google : ErrorContext('searx/search/processors/abstract.py', 111, 'result_container.extend(self.engine_name, search_results)', None, 'some results are invalids: invalid content', ()) True Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-18[fix] typo 'test.sh' in the docs/dev/makefile.rst to 'test.shell'Markus Heiser
make test.sh --> make test.shell Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-18[fix] issue reported by: make test.shellMarkus Heiser
$ make test.shell ./manage line 716: build_msg TEST "[reST markup] ${RST_FILES[@]}"" ^-------------^ SC2145: Argument mixes string and array. Use * or separate argument. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-18[fix] google engine: remove adds and fix mobile_ui selectorMarkus Heiser
1. Fix issue reported in comment [1] 2. Fix XPath selector for the response of google's mobile UI, reported in comment [2] [1] https://github.com/searxng/searxng/pull/777#issuecomment-1015121322 [2] https://github.com/searxng/searxng/pull/777#issuecomment-1015236238 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-18Merge pull request #776 from mrpaulblack/simple-ltr-varsAlexandre Flament
[simple theme] dont hardcode border radius
2022-01-18Merge pull request #777 from unixfox/patch-4Alexandre Flament
Update XPath for Google engine
2022-01-17Update XPath for Google engineÉmilien Devos
2022-01-17[build] /staticmrpaulblack
2022-01-17[simple theme] dynamic border radius in CSSmrpaulblack