searxng/docs/dev
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
..
answerers [refactor] typification of SearXNG (initial) / result items (part 1) 2025-01-28 07:07:08 +01:00
engines [feat] engines: add GitHub Code Search engine (#5074) 2025-08-20 07:35:31 +02:00
plugins [refactor] typification of SearXNG (initial) / result items (part 1) 2025-01-28 07:07:08 +01:00
result_types [mod] typification of SearXNG: add new result type KeyValue 2025-03-15 10:36:33 +01:00
searxng_extra [refactor] typification of SearXNG (initial) / result items (part 1) 2025-01-28 07:07:08 +01:00
commits.rst [doc] add chapter on the purpose of (git) commits (#4729) 2025-05-12 08:27:16 +02:00
contribution_guide.rst [doc] add chapter on the purpose of (git) commits (#4729) 2025-05-12 08:27:16 +02:00
csv_table.txt docs: reST-primer describe table markup (WIP) 2019-12-20 20:39:14 +01:00
extended_types.rst [refactor] typification of SearXNG (initial) / result items (part 1) 2025-01-28 07:07:08 +01:00
hello.dot doc: add content to reST primer (WIP) // linuxdoc 2019-12-19 23:36:53 +01:00
index.rst [chore] overdue maintenance of shell scripts 2025-07-28 12:53:26 +02:00
makefile.rst [mod] theme/simple: migrate codebase to TypeScript 2025-08-18 16:38:32 +02:00
quickstart.rst [doc] Development Quickstart: debug with the Python Debugger pdb (#5100) 2025-08-09 12:16:19 +02:00
reST.rst [fix] remove twine from requirements-dev 2024-02-16 18:29:40 +01:00
rtm_asdf.rst [dev] manage runtime versions with asdf 2023-11-12 20:54:57 +01:00
search_api.rst [feat] hostname replace plugin: possibility to prioritize certain websites 2024-06-07 14:42:52 +02:00
svg_image.svg doc: add content to reST primer (WIP) // linuxdoc 2019-12-19 23:36:53 +01:00
templates.rst [fix] docs: typo in templates dev doc developerat -> developer at 2025-04-17 16:47:52 +02:00
translation.rst [fix] typos in documentation & messages 2023-08-13 08:50:29 +02:00
translation.svg [fix] translation: lock weblate only when there is an actual change of messages.pot 2021-09-06 17:16:51 +02:00