mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Remove themes: update documentation
This commit is contained in:
parent
31bb938126
commit
603e131147
6 changed files with 9 additions and 23 deletions
|
@ -24,7 +24,6 @@ Sample response
|
||||||
"images",
|
"images",
|
||||||
],
|
],
|
||||||
"default_locale": "",
|
"default_locale": "",
|
||||||
"default_theme": "simple",
|
|
||||||
"engines": [
|
"engines": [
|
||||||
{
|
{
|
||||||
"categories": [
|
"categories": [
|
||||||
|
|
|
@ -18,12 +18,12 @@ All of the engines above are just commented out in the :origin:`settings.yml
|
||||||
dependencies before using them.
|
dependencies before using them.
|
||||||
|
|
||||||
By default, the engines use the ``key-value`` template for displaying results /
|
By default, the engines use the ``key-value`` template for displaying results /
|
||||||
see :origin:`simple <searx/templates/simple/result_templates/key-value.html>`
|
see :origin:`simple <searx/templates/result_templates/key-value.html>`.
|
||||||
theme. If you are not satisfied with the original result layout, you can use
|
If you are not satisfied with the original result layout, you can use your own
|
||||||
your own template, set ``result_template`` attribute to ``{template_name}`` and
|
template, set ``result_template`` attribute to ``{template_name}`` and place
|
||||||
place the templates at::
|
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
|
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
|
can still add them and limit the access by setting ``tokens`` as described in
|
||||||
|
|
|
@ -232,7 +232,6 @@ Global Settings
|
||||||
query_in_title: false
|
query_in_title: false
|
||||||
infinite_scroll: false
|
infinite_scroll: false
|
||||||
center_alignment: false
|
center_alignment: false
|
||||||
default_theme: simple
|
|
||||||
theme_args:
|
theme_args:
|
||||||
simple_style: auto
|
simple_style: auto
|
||||||
|
|
||||||
|
@ -254,9 +253,6 @@ Global Settings
|
||||||
side of the screen. This setting only affects the *desktop layout*
|
side of the screen. This setting only affects the *desktop layout*
|
||||||
(:origin:`min-width: @tablet <searx/static/themes/simple/src/less/definitions.less>`)
|
(: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``:
|
``theme_args.simple_style``:
|
||||||
Style of simple theme: ``auto``, ``light``, ``dark``
|
Style of simple theme: ``auto``, ``light``, ``dark``
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,12 @@ engines, e.g. ``database:`` ...
|
||||||
query_str: ...
|
query_str: ...
|
||||||
|
|
||||||
By default, the engines use the ``key-value`` template for displaying results /
|
By default, the engines use the ``key-value`` template for displaying results /
|
||||||
see :origin:`simple <searx/templates/simple/result_templates/key-value.html>`
|
see :origin:`simple <searx/templates/result_templates/key-value.html>`.
|
||||||
theme. If you are not satisfied with the original result layout, you can use
|
If you are not satisfied with the original result layout, you can use
|
||||||
your own template, set ``result_template`` attribute to ``{template_name}`` and
|
your own template, set ``result_template`` attribute to ``{template_name}`` and
|
||||||
place the templates at::
|
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
|
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
|
add them and limit the access by setting ``tokens`` as described in section
|
||||||
|
|
|
@ -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
|
request. To not end in *wild west* we have some directives, please pay attention
|
||||||
to our ":ref:`how to contribute`" guideline.
|
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
|
.. code:: sh
|
||||||
|
|
||||||
|
|
|
@ -75,15 +75,6 @@ Parameters
|
||||||
Filter search results of engines which support safe search. See if an engine
|
Filter search results of engines which support safe search. See if an engine
|
||||||
supports safe search in the preferences page of an instance.
|
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
|
``enabled_plugins`` : optional
|
||||||
List of enabled plugins.
|
List of enabled plugins.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue