1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-15 09:10:12 +01:00

[docs] improve Hostname plugin documentation

This commit is contained in:
Dennis ten Hoove 2024-08-16 05:14:25 +02:00 committed by Markus Heiser
parent fe6bac5a08
commit 2033f30c8d

View File

@ -1,7 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=too-many-branches # pylint: disable=too-many-branches
"""In addition to rewriting/replace reslut URLs, the *hoostnames* plugin offers """
other features. .. attention::
The **"Hostname replace"** plugin has been replace by **"Hostnames
plugin"**, see :pull:`3463` & :pull:`3552`.
The **Hostnames plugin** can be enabled by adding it to the
``enabled_plugins`` **list** in the ``setting.yml`` like so.
.. code:: yaml
enabled_plugins:
- 'Hostnames plugin'
...
- ``hostnames.replace``: A **mapping** of regular expressions to hostnames to be - ``hostnames.replace``: A **mapping** of regular expressions to hostnames to be
replaced by other hostnames. replaced by other hostnames.