Remove themes: update documentation

This commit is contained in:
Alexandre Flament 2022-05-13 17:31:06 +02:00
parent 31bb938126
commit 603e131147
6 changed files with 9 additions and 23 deletions

View file

@ -24,7 +24,6 @@ Sample response
"images",
],
"default_locale": "",
"default_theme": "simple",
"engines": [
{
"categories": [

View file

@ -18,12 +18,12 @@ All of the engines above are just commented out in the :origin:`settings.yml
dependencies before using them.
By default, the engines use the ``key-value`` template for displaying results /
see :origin:`simple <searx/templates/simple/result_templates/key-value.html>`
theme. If you are not satisfied with the original result layout, you can use
your own template, set ``result_template`` attribute to ``{template_name}`` and
place the templates at::
see :origin:`simple <searx/templates/result_templates/key-value.html>`.
If you are not satisfied with the original result layout, you can use your own
template, set ``result_template`` attribute to ``{template_name}`` and place
the templates at::
searx/templates/{theme_name}/result_templates/{template_name}
searx/templates/result_templates/{template_name}
Futhermore, if you do not wish to expose these engines on a public instance, you
can still add them and limit the access by setting ``tokens`` as described in

View file

@ -232,7 +232,6 @@ Global Settings
query_in_title: false
infinite_scroll: false
center_alignment: false
default_theme: simple
theme_args:
simple_style: auto
@ -254,9 +253,6 @@ Global Settings
side of the screen. This setting only affects the *desktop layout*
(:origin:`min-width: @tablet <searx/static/themes/simple/src/less/definitions.less>`)
``default_theme`` :
Name of the theme you want to use by default on your SearXNG instance.
``theme_args.simple_style``:
Style of simple theme: ``auto``, ``light``, ``dark``

View file

@ -30,12 +30,12 @@ engines, e.g. ``database:`` ...
query_str: ...
By default, the engines use the ``key-value`` template for displaying results /
see :origin:`simple <searx/templates/simple/result_templates/key-value.html>`
theme. If you are not satisfied with the original result layout, you can use
see :origin:`simple <searx/templates/result_templates/key-value.html>`.
If you are not satisfied with the original result layout, you can use
your own template, set ``result_template`` attribute to ``{template_name}`` and
place the templates at::
searx/templates/{theme_name}/result_templates/{template_name}
searx/templates/result_templates/{template_name}
If you do not wish to expose these engines on a public instance, you can still
add them and limit the access by setting ``tokens`` as described in section

View file

@ -25,7 +25,7 @@ choose a meaningful commit message and we are happy to receive your pull
request. To not end in *wild west* we have some directives, please pay attention
to our ":ref:`how to contribute`" guideline.
If you implement themes, you will need to setup a :ref:`make node.env` once:
If you implement theme, you will need to setup a :ref:`make node.env` once:
.. code:: sh

View file

@ -75,15 +75,6 @@ Parameters
Filter search results of engines which support safe search. See if an engine
supports safe search in the preferences page of an instance.
``theme`` : default ``simple``
[ ``simple`` ]
Theme of instance.
Please note, available themes depend on an instance. It is possible that an
instance administrator deleted, created or renamed themes on their instance.
See the available options in the preferences page of the instance.
``enabled_plugins`` : optional
List of enabled plugins.