mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
doc: Moved flask links to new home and HTTPS
Seems like Flask is no longer pocoo project but palletsprojects.com
This commit is contained in:
parent
cfa449624d
commit
bb173a5789
@ -112,7 +112,7 @@ must update the websupport package's data::
|
|||||||
should be a boolean representing whether the user has moderation privileges.
|
should be a boolean representing whether the user has moderation privileges.
|
||||||
The default value for *moderator* is ``False``.
|
The default value for *moderator* is ``False``.
|
||||||
|
|
||||||
An example `Flask <http://flask.pocoo.org/>`_ function that checks whether a
|
An example `Flask <https://flask.palletsprojects.com/>`_ function that checks whether a
|
||||||
user is logged in and then retrieves a document is::
|
user is logged in and then retrieves a document is::
|
||||||
|
|
||||||
from sphinxcontrib.websupport.errors import *
|
from sphinxcontrib.websupport.errors import *
|
||||||
@ -152,7 +152,7 @@ To use the search form built-in to the Sphinx sidebar, create a function to
|
|||||||
handle requests to the URL 'search' relative to the documentation root. The
|
handle requests to the URL 'search' relative to the documentation root. The
|
||||||
user's search query will be in the GET parameters, with the key `q`. Then use
|
user's search query will be in the GET parameters, with the key `q`. Then use
|
||||||
the :meth:`~sphinxcontrib.websupport.WebSupport.get_search_results` method to
|
the :meth:`~sphinxcontrib.websupport.WebSupport.get_search_results` method to
|
||||||
retrieve search results. In `Flask <http://flask.pocoo.org/>`_ that would be
|
retrieve search results. In `Flask <https://flask.palletsprojects.com/>`_ that would be
|
||||||
like this::
|
like this::
|
||||||
|
|
||||||
@app.route('/search')
|
@app.route('/search')
|
||||||
|
Loading…
Reference in New Issue
Block a user