You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide.rst
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -663,8 +663,6 @@ And if the files have been modified after run `path_deploy() <pywebio.platform.p
663
663
664
664
You can also use the command ``pywebio-path-deploy`` to start a server just like using `path_deploy() <pywebio.platform.path_deploy>`. For more information, refer ``pywebio-path-deploy --help``
665
665
666
-
In Server mode, you can use `pywebio.platform.seo()` to set the `SEO <https://en.wikipedia.org/wiki/Search_engine_optimization>`_ information. If ``seo()`` is not used, the `docstring <https://www.python.org/dev/peps/pep-0257/>`_ of the task function will be regarded as SEO information by default.
667
-
668
666
.. attention::
669
667
670
668
Note that in Server mode, all functions from ``input``, ``output`` and ``session`` modules can only be called in the context of task functions. For example, the following code is **not allowed**::
If not ``seo()`` is not used, the `docstring <https://www.python.org/dev/peps/pep-0257/>`_ of the task function will be regarded as SEO information by default.
290
+
If ``seo()`` is not used, the `docstring <https://www.python.org/dev/peps/pep-0257/>`_ of the task function will be regarded as SEO information by default.
278
291
279
292
``seo()`` can be used in 2 ways: direct call and decorator::
280
293
@@ -299,18 +312,88 @@ def hello():
299
312
])
300
313
301
314
.. versionadded:: 1.1
315
+
.. deprecated:: 1.4
316
+
Use :func:`pywebio.config` instead.
302
317
"""
318
+
importwarnings
319
+
warnings.warn("`pywebio.platform.seo()` is deprecated since v1.4 and will remove in the future version, "
0 commit comments