diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-08-21 17:57:58 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-09-01 14:51:15 +0200 |
| commit | 9ac9c8c4f50acd801bfc39107c94d17ee9bee72b (patch) | |
| tree | 0545c9e9ae37462cfd64b5e85620453ffe2981c8 /docs/dev/templates.rst | |
| parent | b8085d27aca35b3c60ef50bf0683018d6a6b51b3 (diff) | |
[mod] typification of SearXNG: add new result type Code
This patch adds a new result type: Code
- Python class: searx/result_types/code.py
- Jinja template: searx/templates/simple/result_templates/code.html
- CSS (less) client/simple/src/less/result_types/code.less
Signed-of-by: Markus Heiser <markus.heiser@darmarIT.de>
Diffstat (limited to 'docs/dev/templates.rst')
| -rw-r--r-- | docs/dev/templates.rst | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/docs/dev/templates.rst b/docs/dev/templates.rst index 3633eb2ef..e2fa879c8 100644 --- a/docs/dev/templates.rst +++ b/docs/dev/templates.rst @@ -469,33 +469,6 @@ links : :py:class:`dict` Additional links in the form of ``{'link_name': 'http://example.com'}`` -.. _template code: - -``code.html`` -------------- - -Displays result fields from: - -- :ref:`macro result_header` and -- :ref:`macro result_sub_header` - -Additional fields used in the :origin:`code.html -<searx/templates/simple/result_templates/code.html>`: - -content : :py:class:`str` - Description of the code fragment. - -codelines : ``[line1, line2, ...]`` - Lines of the code fragment. - -code_language : :py:class:`str` - Name of the code language, the value is passed to - :py:obj:`pygments.lexers.get_lexer_by_name`. - -repository : :py:class:`str` - URL of the repository of the code fragment. - - .. _template files: ``files.html`` |