summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAge
* [mod] get rid of ./utils/brand.env and its workflowMarkus Heiser2024-01-09
| | | | | | | | All the environments defined in ./utils/brand.env are generated on the fly, so there is no longer a need to define the brand environment in this file and all the workflows to handle this file. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [doc] improve documentation of make targets and ./manage scriptMarkus Heiser2023-08-06
| | | | | | | | | | | | BTW force modularization of the ./mange script into sub modules: - utils/lib_sxng_data.sh - utils/lib_sxng_node.sh - utils/lib_sxng_static.sh - utils/lib_sxng_test.sh - utils/lib_sxng_themes.sh Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] ./manage: replace data.languages by data.traitsMarkus Heiser2023-04-05
| | | | | | | | | | Follow up of https://github.com/searxng/searxng/pull/2269 Related: - https://github.com/searxng/searxng/issues/2314 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] install developer tools by: make node.env.devMarkus Heiser2023-02-11
| | | | | | | | - rename ``./manage node.env.devtools`` to ``./manage node.env.dev`` - add ``make node.env.dev`` - remove local developer tools by ``make node.clean`` Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [clean up] drop obsolete searx, filtron and morty install scriptsMarkus Heiser2022-07-30
| | | | | | | | | | Since ./utils/searxng.sh is implemented, the old installation procedures from filtron, morty and searx can be removed. For users who want to upgrade, the procedures for removing old installations have still been retained. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [utils/searxng.sh] implement new script to install SearXNGMarkus Heiser2022-07-30
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [theme] peel out oscar from SearXNG developmentMarkus Heiser2022-04-30
| | | | | | This is the first step of removing oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] add test.pybabel to cover issues in translation tasksMarkus Heiser2022-04-23
| | | | | | | | | | | | We need to cover issue related to pybabel/translation tasks. By example there was an issue [1] (fixed [2]) when upgrading jinja2 from 3.0.3 to 3.1.0 [3] that has not been covered by the CI tests. [1] https://github.com/searxng/searxng/runs/5688624325?check_suite_focus=true#step:6:348 [2] https://github.com/searxng/searxng/pull/1011 [3] https://github.com/searxng/searxng/pull/1008 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] add test.pyright to test & ci.test targetsMartin Fischer2022-01-23
| | | | | | | | | | | | | | 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.
* [mod] manage test.pyright: a commandline to run pyright testsMarkus Heiser2022-01-23
| | | | | | | | | This patch implements the command and Makefile target:: ./manage test.pyright make test.pyright Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] CI target test.rst: test reST markup of README.rstMarkus Heiser2022-01-17
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Merge pull request #686 from return42/lib_redisMarkus Heiser2022-01-11
|\ | | | | Add redis DB and connector
| * [mod] test.shell: add utils/lib_redis.sh to shellcheck procedureMarkus Heiser2022-01-03
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | Merge pull request #664 from return42/themes.liveMarkus Heiser2022-01-04
|\ \ | |/ |/| [mod] manage: add themes.live command (rebuild on modification)
| * [mod] live build of a theme: LIVE_THEME=simple make runMarkus Heiser2021-12-29
| | | | | | | | | | | | | | | | Environment variable to get live builds while modifying CSS & JS of a theme:: LIVE_THEME=simple make run Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [fix] Makefile: mixed tab & space indentationMarkus Heiser2022-01-03
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] replace pycodestyle by blackAlexandre Flament2021-12-27
|/ | | | | "make test.black" checks for the code style "make format.python" format the python code
* [simple theme] activate - SearXNG JavaScript Style GuideMarkus Heiser2021-12-14
| | | | | | | | | | | | | | Add the 'SearXNG JavaScript Style Guide' as one quality gate in the build chain of the simple theme:: make themes.simple make themes.simple.test In the github CI the `themes.all` target enforce a `themes.simple`. BTW: Remove 'jshint' left overs from 0ee316f3d Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Merge pull request #508 from return42/arm64Markus Heiser2021-11-18
|\ | | | | [mod] Tools to install and maintain golang binaries & packages.
| * [mod] Tools to install and maintain golang [1] binaries & packages.Markus Heiser2021-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] https://golang.org/doc/devel/release#policy A simple *helloworld* test with user 'my_user' : sudo -H adduser my_user ./manage go.golang go1.17.3 my_user ./manage go.install github.com/go-training/helloworld@latest my_user ./manage go.bash my_user $ helloword Hello World!! Don't forget to remove 'my_user': sudo -H deluser --remove-home my_user Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] Makefile - remove targets marked as deprecatedMarkus Heiser2021-11-17
| | | | | | | | | | | | | | | | Remove targets marked as deprecated and convert selected to short hands [1]. [1] https://github.com/searxng/searxng/pull/511#issuecomment-971324265 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] Tools to install and maintain NVM versions manager for Node.jsMarkus Heiser2021-11-16
|/ | | | | | [1] https://github.com/nvm-sh/nvm Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* SearXNG: environment variablesAlexandre Flament2021-10-02
|
* SearXNG: .github, searxng-dockerAlexandre Flament2021-10-01
|
* [mod] debug mode: use coloredlogs packageAlexandre Flament2021-09-10
| | | | | in debug mode, add some padding to make the output more readable in procution mode, add the timestamp
* [translations] ./manage rename shell functions to integrate weblateMarkus Heiser2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functions implemented to run *Weblate* workflows should use prefix 'weblate.': - babel.setup.translations.worktree --> weblate.translations.worktree Create git worktree ${TRANSLATIONS_WORKTREE} and checkout branch 'translations' from Weblate's counterpart (weblate) of the SearXNG (origin):: remote weblate https://weblate.bubu1.eu/git/searxng/searxng/ - babel.weblate.to.translations --> weblate.to.translations Update 'translations' branch of SearXNG (origin) with last additions from Weblate. - babel.translations.to.master --> weblate.translations.commit Update 'translations' branch of SearXNG (origin) with last additions from Weblate. Copy the changes to the master branch, compile translations and create a commit in the local branch (master) - babel.master.to.translations --> weblate.push.translations Push *translation changes* from SearXNG (origin) to Weblate's counterpart (weblate). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [translations] web integrationAlexandre Flament2021-08-07
| | | | | * make babel.translations.to.master: pull weblate updates * make babel.master.to.translations: push .pot and .po files to weblate
* [mod] manage - implement babel commands, drop update_translations.shMarkus Heiser2021-08-02
| | | | | | | | | | | | | | In ./manage implement babel.*: - extract : extract messages from source files and generate POT file - update : update existing message catalogs from POT file - compile : compile translation catalogs into binary MO files Replace searx_extra/update/update_translations.sh by command: - ci.babel.update Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] load .config.sh from installation (utils/lib_install.sh)Markus Heiser2021-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **new** utils/lib_install.sh: Used to initialize installation procedures - Modified source_dot_config function that - loads .config.sh from an existing installation (at SEARX_SRC). - initialize **SEARX_SRC_INIT_FILES** - functions like: - install_log_searx_instance() - install_searx_get_state() **modified** utils/searx.sh - obsolete environment SEARX_INSTANCE_NAME has been replaced by string 'SearXNG'. **modified** utils/filtron.sh, utils/morty.sh, utils/searx.sh - source utils/lib_install.sh - normalize logging of environment variables using new function install_log_searx_instance() **modified** utils/lib.sh - fix marginal typos **Installation scripts** The utils/lib_install.sh is sourced by the installations scripts: - utils/searx.sh - utils/morty.sh - utils/filtron.sh If '${SEARX_SRC}/.config.sh' exists, the modified source_dot_config() function loads this configuration (instead of './.config.sh'). **SEARX_SRC_INIT_FILES** Array of file names to sync into a installation at $SEARX_SRC. The file names are relative to the $REPO_ROOT. Set by function init_SEARX_SRC_INIT_FILES(). Most often theses are files like: - .config.sh - searx/settings.yml - utils/brand.env - ... Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] add Makfile target lxc.clean which deletes ./lxc-envMarkus Heiser2021-07-03
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] move functions from utils/manage_static.sh to ./manage scriptMarkus Heiser2021-06-26
| | | | | | | | | | | | | The functions: - static.build.commit - static.build.commit.drop - static.build.restore are imported into the ./manage script. To avoid name collisions some variables and fucntions has been renamed by adding the prefix *static_*. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] utils/manage_static.sh: add script to shellcheckMarkus Heiser2021-06-26
| | | | | | | | | | - add script to shellcheck, - fix error messages from shellcheck and - moved global variables to local variables (lower case) No functional change! Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] add make targets to manage the build files in the /searx/static directoryAlexandre Flament2021-06-26
| | | | | | | | | | | | | | | | | | | | | | | | | The idea is to avoid conflict when there are differents branches with changes are made on the static files. A solution is to ask the administrators to build the files from the sources, but it requires to install the npm dependencies. So the solution in this commit keep the sources and the build files in the same git repository. In one branch, the modification of the source (*.less, *.js) are commited without the built files. The built files are commited in a uniq commit, with a commit message "Static build" In case of merge or rebase, this commit can be dropped. New make targets: * static.build.commit.drop: drop the last "Static build". The command checks that there are only build files in the commit. * static.build.commit : call "make static.build.commit.drop" call "make themes.all" commit the files * static.git.restore.staged: git restore --staged <build files> * static.git.restore: git restore <build files> Related to https://github.com/searxng/searxng/issues/137
* [fix] Makefile: remove themes.bootstrapAlexandre Flament2021-06-22
|
* [fix] pygments.less - remove pyenv_OK conditionMarkus Heiser2021-06-22
| | | | | | BTW: add pygments.less to the help message Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [data.all] add searx_extra/update/update_osm_keys_tags.pyMarkus Heiser2021-06-09
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [enh] add test.yamllint - lint yaml filesMarkus Heiser2021-06-05
| | | | | | | | | | | | Usage:: make test.yamllint ./manage test.yamllint test.yamllint is also added to the `test` makefile target. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] docker-entrypoint.sh - add script to make test.sh (shellcheck)Markus Heiser2021-05-17
| | | | | | | | | | | | Add script docker-entrypoint.sh to shellcheck and try to _simplify_ and _normalize_ some parts: - fix issues reported by shellcheck - don't mix tab and space indent - command 'help' replaced by '-h': ./dockerfiles/docker-entrypoint.sh -h - replace printf in help() by 'cat <<EOF' Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [docker] multiarch support: linux/amd64,linux/arm64,linux/arm/v7Alexandre Flament2021-04-28
| | | | | | | | make docker.buildx : build and push multiarch build. (it can't be only build) use buildx with the --cache-from and --cache-to options to cache the layers (only the last built is cached)
* [fix] Makefile fix target 'test' & 'test.sh'Markus Heiser2021-04-23
| | | | | | | | | | | | | | | | | Renamed 'test.sh' to 'test.shell' seems to solve this issue on my ubu204:: $ make test.sh ... TEST robot ... INSTALL gecko.driver ... Running 7 tests cat test.sh >test cat: test.sh: Datei oder Verzeichnis nicht gefunden make: *** [<eingebaut>: test] Fehler 1 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] replace makefile boilerplate by 'manage' scriptMarkus Heiser2021-04-23
| | | | | | Replaces the make targets with the bash scripts Signed-off-by: Markus Heiser <markus@darmarit.de>
* Merge pull request #15 from return42/add-springerAlexandre Flament2021-04-22
|\ | | | | Add a search engine for Springer Nature
| * [enh] Add Springer Nature enginePierre Chevalier2021-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Springer Nature is a global publisher dedicated to providing service to research community [1] with official API [2]. To test this PR, first get your API key following this page: https://dev.springernature.com/signup In searx/engines/springer.py at line 24, add this API key. I left my own key, commented out in the line aboce. Feel free to use it, if needed. [1] https://www.springernature.com/ [2] https://dev.springernature.com/
* | [enh] add engine using API from "The Art Institute of Chicago"habsinn2021-04-22
|/
* Add Meilisearch engineNoémi Ványi2021-04-06
| | | | Website: https://www.meilisearch.com/
* Add Solr engineNoémi Ványi2021-03-13
|
* Merge pull request #2346 from dalf/upgrade-oscarAlexandre Flament2021-03-13
|\ | | | | [mod] oscar: upgrade dependencies
| * [mod] oscar: get bootstrap and typeahead from NPMAlexandre Flament2021-03-11
| |
* | Merge pull request #2626 from mikeri/solidtorrentsAlexandre Flament2021-03-12
|\ \ | | | | | | Add Solid Torrents engine
| * | Add Solid Torrents engineMichael Ilsaas2021-03-07
| | |