forked from Icycoide/searxng
[fix] various issues in the documentation
Closes: https://github.com/searxng/searxng/issues/4370 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
28d1240fce
commit
2e0abc9310
13 changed files with 38 additions and 22 deletions
|
@ -30,7 +30,7 @@ Optional settings are:
|
|||
shortcut: forgejo
|
||||
|
||||
If you would like to use additional instances, just configure new engines in the
|
||||
:ref:`settings <settings engine>` and set the ``base_url``.
|
||||
:ref:`settings <settings engines>` and set the ``base_url``.
|
||||
|
||||
|
||||
Implementation
|
||||
|
|
|
@ -54,7 +54,7 @@ Example
|
|||
=======
|
||||
|
||||
Here is a simple example of a JSON engine configure in the :ref:`settings
|
||||
engine` section, further read :ref:`engines-dev`.
|
||||
engines` section, further read :ref:`engines-dev`.
|
||||
|
||||
.. code:: yaml
|
||||
|
||||
|
@ -384,7 +384,7 @@ def extract_response_info(result):
|
|||
|
||||
|
||||
def response(resp):
|
||||
'''Scrap *results* from the response (see :ref:`engine results`).'''
|
||||
'''Scrap *results* from the response (see :ref:`result types`).'''
|
||||
results = []
|
||||
|
||||
if no_result_for_http_status and resp.status_code in no_result_for_http_status:
|
||||
|
|
|
@ -16,7 +16,7 @@ The engine has the following additional settings:
|
|||
- :py:obj:`lemmy_type`
|
||||
|
||||
This implementation is used by different lemmy engines in the :ref:`settings.yml
|
||||
<settings engine>`:
|
||||
<settings engines>`:
|
||||
|
||||
.. code:: yaml
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ The engine has the following additional settings:
|
|||
- :py:obj:`qwant_categ`
|
||||
|
||||
This implementation is used by different qwant engines in the :ref:`settings.yml
|
||||
<settings engine>`:
|
||||
<settings engines>`:
|
||||
|
||||
.. code:: yaml
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ The engine has the following additional settings:
|
|||
- :py:obj:`api_key`
|
||||
|
||||
This implementation is used by seekr engines in the :ref:`settings.yml
|
||||
<settings engine>`:
|
||||
<settings engines>`:
|
||||
|
||||
.. code:: yaml
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ Example
|
|||
=======
|
||||
|
||||
Here is a simple example of a XPath engine configured in the :ref:`settings
|
||||
engine` section, further read :ref:`engines-dev`.
|
||||
engines` section, further read :ref:`engines-dev`.
|
||||
|
||||
.. code:: yaml
|
||||
|
||||
|
|
|
@ -473,7 +473,7 @@ def ecma_unescape(string: str) -> str:
|
|||
def remove_pua_from_str(string):
|
||||
"""Removes unicode's "PRIVATE USE CHARACTER"s (PUA_) from a string.
|
||||
|
||||
_PUA: https://en.wikipedia.org/wiki/Private_Use_Areas
|
||||
.. _PUA: https://en.wikipedia.org/wiki/Private_Use_Areas
|
||||
"""
|
||||
pua_ranges = ((0xE000, 0xF8FF), (0xF0000, 0xFFFFD), (0x100000, 0x10FFFD))
|
||||
s = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue