searxng/docs
Filip Mikina 6b57705e50
[feat] engines: add GitHub Code Search engine (#5074)
This patch adds GitHub Code Search [1] engine to allow querying the codebases.

Template code.html is changed to allow passthrough of strip and highlighting
options.

Engine Searchcode is adjusted to pass filename and not rely on hardcoded
extensions.

GitHub search code API does not return the exact code line indices, this
implementation assigns the code arbitrary numbers starting from 1
(effectively relabeling the code).

The API allows for unauth calls, and the default engine settings default to
that, although the calls are heavily rate limited.

The 'text' lexer is the default pygments lexer when parsing fails.

[1] https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#search-code

Co-authored-by: Markus Heiser <markus.heiser@darmarIT.de>
2025-08-20 07:35:31 +02:00
..
_themes/searxng [dev-env] upgrade Sphinx-doc 7.2.3 and unpin at v7.1.2 on py3.8 2023-08-27 17:22:45 +02:00
admin [enh] container: tidy builds (#5086) 2025-08-07 10:46:26 +02:00
build-templates [mod] py3.8 EOL / upgrade to actions/setup-python@v5 2024-10-03 13:05:43 +02:00
dev [feat] engines: add GitHub Code Search engine (#5074) 2025-08-20 07:35:31 +02:00
src [mod] migrate from Redis to Valkey (#4795) 2025-07-09 07:55:37 +02:00
user [fix] various issues in the documentation 2025-02-26 07:15:39 +01:00
utils [chore] overdue maintenance of shell scripts 2025-07-28 12:53:26 +02:00
conf.py [mod] migrate from Redis to Valkey (#4795) 2025-07-09 07:55:37 +02:00
index.rst [doc] update quantities on the intro page 2024-11-23 16:33:08 +01:00
own-instance.rst [enh] tidy: clean old morty, filtron, searx references 2025-05-13 10:37:02 +02:00