这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def source_read(app, docname, source):
"sphinx_tabs.tabs", # https://github.com/djungelorm/sphinx-tabs
'myst_parser', # https://www.sphinx-doc.org/en/master/usage/markdown.html
'notfound.extension', # https://github.com/readthedocs/sphinx-notfound-page
'sphinx.ext.inheritance_diagram', # https://www.sphinx-doc.org/en/master/usage/extensions/inheritance.html
]

myst_enable_extensions = [
Expand Down
27 changes: 27 additions & 0 deletions docs/dev/engine_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,30 @@ the parameter ``template`` must be set to the desired type.
address.postcode postcode of object
address.country country of object
========================= =====================================================


.. _engine weather media types:

.. list-table:: Parameter of the **weather** media type
:header-rows: 2
:width: 100%

* - result parameter
- Python type
- information

* - template
- :py:class:`str`
- is set to ``weather.html``

* - location
- :py:class:`str`
- name of the location

* - currently
- :py:class:`dict`
- current weather data

* - forecast
- :py:class:`List <list>`\ [\ :py:class:`dict`\ ]
- weather forecast data
8 changes: 8 additions & 0 deletions docs/src/searx.result.weather.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. _searx.results.weather:

================
Weather forecast
================

.. automodule:: searx.results.weather
:members:
File renamed without changes.
Loading