fix docks linkcheck
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 28b35c5 · Browse files · 22 files·+63 added−81 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
22 files+63 added−81 removed
- other:+63 added−81 removed
Provenance
- Commit
cb6272c- Tree
83edd99- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
28b35c5
22 files changed+63 added−81 removed
modified:docs/deploying/cgi.rst+1 added-1 removed
56 unmodified lines57 RewriteRule ^(.*)$ /path/to/the/application.cgi/$1 [L]58 59 For more information consult the documentation of your webserver.60 61-.. _App Engine: https://developers.google.com/appengine/61+.. _App Engine: https://cloud.google.com/appengine/docs/modified:docs/deploying/index.rst+1 added-4 removed
15 unmodified lines16 Hosted options17 --------------18 19 - `Deploying Flask on Heroku <https://devcenter.heroku.com/articles/getting-started-with-python>`_20-- `Deploying Flask on OpenShift <https://developers.openshift.com/en/python-flask.html>`_21-- `Deploying Flask on Webfaction <http://flask.pocoo.org/snippets/65/>`_20 - `Deploying Flask on Google App Engine <https://cloud.google.com/appengine/docs/standard/python/getting-started/python-standard-env>`_21 - `Deploying Flask on AWS Elastic Beanstalk <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_24-- `Sharing your Localhost Server with Localtunnel <http://flask.pocoo.org/snippets/89/>`_25-- `Deploying on Azure (IIS) <https://azure.microsoft.com/documentation/articles/web-sites-python-configure/>`_22+- `Deploying on Azure (IIS) <https://docs.microsoft.com/en-us/azure/app-service/containers/how-to-configure-python>`_23 - `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_24 25 Self-hosted options26 -------------------9 unmodified linesmodified:docs/deploying/uwsgi.rst+1 added-1 removed
67 unmodified lines68 69 .. _nginx: https://nginx.org/70 .. _lighttpd: https://www.lighttpd.net/71 .. _cherokee: http://cherokee-project.com/72-.. _uwsgi: http://projects.unbit.it/uwsgi/72+.. _uwsgi: https://uwsgi-docs.readthedocs.io/en/latest/modified:docs/deploying/wsgi-standalone.rst+4 added-5 removed
41 unmodified lines42 Running `uWSGI HTTP Router`_::43 44 uwsgi --http 127.0.0.1:5000 --module myproject:app45 46-For a more optimized setup, see `configuring uWSGI and NGINX`_.46+For a more optimized setup, see :doc:`/deploying/uwsgi`.47 48-.. _uWSGI: http://uwsgi-docs.readthedocs.io/en/latest/49-.. _uWSGI HTTP Router: http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router50-.. _configuring uWSGI and NGINX: uwsgi.html#starting-your-app-with-uwsgi48+.. _uWSGI: https://uwsgi-docs.readthedocs.io/en/latest/49+.. _uWSGI HTTP Router: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router50 51 Gevent52 -------53 30 unmodified lines84 application from ``myproject``::85 86 twistd -n web --port tcp:8080 --wsgi myproject.app87 89-.. _Twisted: https://twistedmatrix.com/88+.. _Twisted: https://twistedmatrix.com/trac/89 .. _Twisted Web: https://twistedmatrix.com/trac/wiki/TwistedWeb90 91 .. _deploying-proxy-setups:92 63 unmodified linesmodified:docs/patterns/appfactories.rst+4 added-4 removed
58 unmodified lines59 60 It's preferable to create your extensions and app factories so that the61 extension object does not initially get bound to the application.62 63-Using `Flask-SQLAlchemy <http://flask-sqlalchemy.pocoo.org/>`_,63+Using `Flask-SQLAlchemy <https://flask-sqlalchemy.palletsprojects.com/>`_,64 as an example, you should not do something along those lines::65 66 def create_app(config_filename):67 app = Flask(__name__)24 unmodified lines92 To run such an application, you can use the :command:`flask` command::93 94 export FLASK_APP=myapp95 flask run96- 97-Flask will automatically detect the factory (``create_app`` or ``make_app``) 96+97+Flask will automatically detect the factory (``create_app`` or ``make_app``)98 in ``myapp``. You can also pass arguments to the factory like this::99 100 export FLASK_APP="myapp:create_app('dev')"101 flask run102- 102+103 Then the ``create_app`` factory in ``myapp`` is called with the string104 ``'dev'`` as the argument. See :doc:`/cli` for more detail.105 106 Factory Improvements11 unmodified linesmodified:docs/patterns/jquery.rst+2 added-2 removed
9 unmodified lines10 Python primitives (numbers, strings, dicts and lists) look like which is11 widely supported and very easy to parse. It became popular a few years12 ago and quickly replaced XML as transport format in web applications.13 14-.. _jQuery: http://jquery.com/14+.. _jQuery: https://jquery.com/15 16 Loading jQuery17 --------------18 7 unmodified lines26 <script type=text/javascript src="{{27 url_for('static', filename='jquery.js') }}"></script>28 29 Another method is using Google's `AJAX Libraries API30-<https://developers.google.com/speed/libraries/devguide>`_ to load jQuery:30+<https://developers.google.com/speed/libraries/>`_ to load jQuery:31 32 .. sourcecode:: html33 34 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>133 unmodified linesmodified:docs/patterns/sqlalchemy.rst+1 added-1 removed
20 unmodified lines21 22 You can download `Flask-SQLAlchemy`_ from `PyPI23 <https://pypi.org/project/Flask-SQLAlchemy/>`_.24 25-.. _Flask-SQLAlchemy: http://flask-sqlalchemy.pocoo.org/25+.. _Flask-SQLAlchemy: https://flask-sqlalchemy.palletsprojects.com/26 27 28 Declarative29 -----------189 unmodified linesmodified:docs/tutorial/deploy.rst+1 added-1 removed
114 unmodified lines115 your application. Waitress is just an example, chosen for the tutorial116 because it supports both Windows and Linux. There are many more WSGI117 servers and deployment options that you may choose for your project.118 119-.. _Waitress: https://docs.pylonsproject.org/projects/waitress/119+.. _Waitress: https://docs.pylonsproject.org/projects/waitress/en/stable/120 121 Continue to :doc:`next`.modified:docs/tutorial/install.rst+1 added-1 removed
68 unmodified lines69 70 See the `official packaging guide`_ for another explanation of the files71 and options used.72 73-.. _official packaging guide: https://packaging.python.org/tutorials/distributing-packages/73+.. _official packaging guide: https://packaging.python.org/tutorials/packaging-projects/74 75 76 Install the Project77 -------------------37 unmodified linesmodified:docs/api.rst+3 added-3 removed
41 unmodified lines42 .. attribute:: url43 .. attribute:: base_url44 .. attribute:: url_root45 46- Provides different ways to look at the current `IRI47- <http://tools.ietf.org/html/rfc3987>`_. Imagine your application is48- listening on the following application root::46+ Provides different ways to look at the current :rfc:`3987`.47+ Imagine your application is listening on the following application48+ root::49 50 http://www.example.com/myapplication51 52 And a user requests the following URI::781 unmodified linesmodified:docs/becomingbig.rst+1 added-1 removed
42 unmodified lines43 The :ref:`app-dispatch` chapter shows in detail how to apply middleware. You44 can introduce WSGI middleware to wrap your Flask instances and introduce fixes45 and changes at the layer between your Flask application and your HTTP46 server. Werkzeug includes several `middlewares47-<http://werkzeug.pocoo.org/docs/middlewares/>`_.47+<https://werkzeug.palletsprojects.com/middleware/>`_.48 49 Fork.50 -----51 50 unmodified linesmodified:docs/cli.rst+3 added-3 removed
8 unmodified lines9 interface, in your virtualenv. Executed from the terminal, this script gives10 access to built-in, extension, and application-defined commands. The ``--help``11 option will give more information about any commands and options.12 13-.. _Click: http://click.pocoo.org/13+.. _Click: https://click.palletsprojects.com/14 15 16 Application Discovery17 ---------------------321 unmodified lines339 },340 )341 342 343-.. _entry point: https://packaging.python.org/tutorials/distributing-packages/#entry-points343+.. _entry point: https://packaging.python.org/tutorials/packaging-projects/#entry-points344 345 Inside :file:`flask_my_extension/commands.py` you can then export a Click346 object::347 60 unmodified lines408 409 The ``flask`` command, being separate from your code, does not have410 this issue and is recommended in most cases.411 412-.. _console script: https://packaging.python.org/tutorials/distributing-packages/#console-scripts412+.. _console script: https://packaging.python.org/tutorials/packaging-projects/#console-scripts413 414 415 PyCharm Integration416 -------------------50 unmodified linesmodified:docs/errorhandling.rst+2 added-2 removed
32 unmodified lines33 34 Sending error mails, even if just for critical ones, can become35 overwhelming if enough users are hitting the error and log files are36 typically never looked at. This is why we recommend using `Sentry37-<https://www.getsentry.com/>`_ for dealing with application errors. It's37+<https://sentry.io/welcome/>`_ for dealing with application errors. It's38 available as an Open Source project `on GitHub39 <https://github.com/getsentry/sentry>`__ and is also available as a `hosted version40-<https://getsentry.com/signup/>`_ which you can try for free. Sentry40+<https://sentry.io/signup/>`_ which you can try for free. Sentry41 aggregates duplicate errors, captures the full stack trace and local42 variables for debugging, and sends you mails based on new errors or43 frequency thresholds.44 171 unmodified linesmodified:docs/extensiondev.rst+5 added-6 removed
2 unmodified lines3 Flask Extension Development4 ===========================5 6 Flask, being a microframework, often requires some repetitive steps to get7-a third party library working. Because very often these steps could be8-abstracted to support multiple projects the `Flask Extension Registry`_9-was created.7+a third party library working. Many such extensions are already available8+on `PyPI <https://pypi.org/search/?c=Framework+%3A%3A+Flask>`_.9 10 If you want to create your own Flask extension for something that does not11 exist yet, this guide to extension development will help you get your12 extension running in no time and to feel like users would expect your313 unmodified lines326 *ExtensionName-Flask*.327 6. Approved extensions must define all their dependencies in the328 :file:`setup.py` file unless a dependency cannot be met because it is not329 available on PyPI.331-7. The documentation must use the ``flask`` theme from the `Official332- Pallets Themes`_.330+7. The documentation must use the ``flask`` theme from the331+ `Official Pallets Themes`_.332 8. The setup.py description (and thus the PyPI description) has to333 link to the documentation, website (if there is one) and there334 must be a link to automatically install the development version335 (``PackageName==dev``).4 unmodified lines340 341 .. _OAuth extension: https://pythonhosted.org/Flask-OAuth/342 .. _mailinglist: http://flask.pocoo.org/mailinglist/343 .. _IRC channel: http://flask.pocoo.org/community/irc/345-.. _Official Pallets Themes: https://pypi.org/project/pallets-sphinx-themes/344+.. _Official Pallets Themes: https://pypi.org/project/Pallets-Sphinx-Themes/modified:docs/htmlfaq.rst+1 added-1 removed
184 unmodified lines185 Many other features have been added, as well. A good guide to new features186 in HTML5 is Mark Pilgrim's soon-to-be-published book, `Dive Into HTML5`_.187 Not all of them are supported in browsers yet, however, so use caution.188 189-.. _Dive Into HTML5: http://diveintohtml5.info/189+.. _Dive Into HTML5: https://diveintohtml5.info/190 191 What should be used?192 --------------------193 14 unmodified linesmodified:docs/index.rst+1 added-1 removed
17 unmodified lines18 Flask depends on the `Jinja`_ template engine and the `Werkzeug`_ WSGI19 toolkit. The documentation for these libraries can be found at:20 21 - `Jinja documentation <http://jinja.pocoo.org/docs>`_22-- `Werkzeug documentation <http://werkzeug.pocoo.org/docs>`_22+- `Werkzeug documentation <https://werkzeug.palletsprojects.com/>`_23 24 .. _Jinja: https://www.palletsprojects.com/p/jinja/25 .. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/26 65 unmodified linesmodified:docs/installation.rst+5 added-5 removed
23 unmodified lines24 to protect Flask's session cookie.25 * `Click`_ is a framework for writing command line applications. It provides26 the ``flask`` command and allows adding custom management commands.27 28-.. _Werkzeug: http://werkzeug.pocoo.org/29-.. _Jinja: http://jinja.pocoo.org/30-.. _MarkupSafe: https://pypi.org/project/MarkupSafe/31-.. _ItsDangerous: https://pythonhosted.org/itsdangerous/32-.. _Click: http://click.pocoo.org/28+.. _Werkzeug: https://palletsprojects.com/p/werkzeug/29+.. _Jinja: https://palletsprojects.com/p/jinja/30+.. _MarkupSafe: https://palletsprojects.com/p/markupsafe/31+.. _ItsDangerous: https://palletsprojects.com/p/itsdangerous/32+.. _Click: https://palletsprojects.com/p/click/33 34 Optional dependencies35 ~~~~~~~~~~~~~~~~~~~~~36 150 unmodified linesmodified:docs/quickstart.rst+6 added-7 removed
67 unmodified lines68 This launches a very simple builtin server, which is good enough for testing69 but probably not what you want to use in production. For deployment options see70 :ref:`deployment`.71 72-Now head over to `http://127.0.0.1:5000/ <http://127.0.0.1:5000/>`_, and you73-should see your hello world greeting.72+Now head over to http://127.0.0.1:5000/, and you should see your hello73+world greeting.74 75 .. _public-server:76 77 .. admonition:: Externally Visible Server88 unmodified lines166 167 More information on using the debugger can be found in the `Werkzeug168 documentation`_.169 170-.. _Werkzeug documentation: http://werkzeug.pocoo.org/docs/debug/#using-the-debugger170+.. _Werkzeug documentation: https://werkzeug.palletsprojects.com/debug/#using-the-debugger171 172 Have another debugger in mind? See :ref:`working-with-debuggers`.173 174 208 unmodified lines383 /hello.html384 385 For templates you can use the full power of Jinja2 templates. Head over386 to the official `Jinja2 Template Documentation387-<http://jinja.pocoo.org/docs/templates>`_ for more information.387+<http://jinja.pocoo.org/docs/templates/>`_ for more information.388 389 Here is an example template:390 391 .. sourcecode:: html+jinja426 unmodified lines818 app.logger.warning('A warning occurred (%d apples)', 42)819 app.logger.error('An error occurred')820 821 The attached :attr:`~flask.Flask.logger` is a standard logging822-:class:`~logging.Logger`, so head over to the official `logging823-documentation <https://docs.python.org/library/logging.html>`_ for more824-information.822+:class:`~logging.Logger`, so head over to the official :mod:`logging`823+docs for more information.824 825 Read more on :ref:`application-errors`.826 827 Hooking in WSGI Middlewares23 unmodified linesmodified:docs/templating.rst+1 added-1 removed
9 unmodified lines10 11 This section only gives a very quick introduction into how Jinja212 is integrated into Flask. If you want information on the template13 engine's syntax itself, head over to the official `Jinja2 Template14-Documentation <http://jinja.pocoo.org/docs/templates>`_ for14+Documentation <http://jinja.pocoo.org/docs/templates/>`_ for15 more information.16 17 Jinja Setup18 -----------218 unmodified linesmodified:docs/testing.rst+3 added-4 removed
18 unmodified lines19 framework for our tests. You can install it with ``pip``, like so::20 21 pip install pytest22 23-.. _pytest:24- https://pytest.org23+.. _pytest: https://docs.pytest.org/24 25 The Application26 ---------------27 423 unmodified lines451 def test_hello_params():452 context = hello_command.make_context('hello', ['--name', 'flask'])453 assert context.params['name'] == 'FLASK'454 456-.. _click: http://click.pocoo.org/457-.. _utilities for testing: http://click.pocoo.org/testing455+.. _click: https://click.palletsprojects.com/456+.. _utilities for testing: https://click.palletsprojects.com/testing/modified:docs/unicode.rst+3 added-3 removed
4 unmodified lines5 text. Not only these libraries, also the majority of web related Python6 libraries that deal with text. If you don't know Unicode so far, you7 should probably read `The Absolute Minimum Every Software Developer8 Absolutely, Positively Must Know About Unicode and Character Sets9-<http://www.joelonsoftware.com/articles/Unicode.html>`_. This part of the10-documentation just tries to cover the very basics so that you have a11-pleasant experience with Unicode related things.9+<https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/>`_.10+This part of the documentation just tries to cover the very basics so11+that you have a pleasant experience with Unicode related things.12 13 Automatic Conversion14 --------------------15 92 unmodified linesmodified:CONTRIBUTING.rst+13 added-24 removed
7 unmodified lines8 9 Please, don't use the issue tracker for this. Use one of the following10 resources for questions about your own code:11 12-* The ``#get-help`` channel on our Discord chat: https://discord.gg/t6rrQZH12+* The ``#get-help`` channel on our Discord chat: https://discordapp.com/invite/t6rrQZH13 14 * The IRC channel ``#pocoo`` on FreeNode is linked to Discord, but15 Discord is preferred.16 6 unmodified lines23 Reporting issues24 ----------------25 26 - Describe what you expected to happen.27-- If possible, include a `minimal, complete, and verifiable example`_ to help28- us identify the issue. This also helps check that the issue is not with your29- own code.27+- If possible, include a `minimal reproducible example`_ to help us28+ identify the issue. This also helps check that the issue is not with29+ your own code.30 - Describe what actually happened. Include the full traceback if there was an31 exception.32 - List your Python, Flask, and Werkzeug versions. If possible, check if this33 issue is already fixed in the repository.34 35-.. _minimal, complete, and verifiable example: https://stackoverflow.com/help/mcve35+.. _minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example36 37 Submitting patches38 ------------------39 35 unmodified lines75 pip install -e ".[dev]"76 77 .. _GitHub account: https://github.com/join78 .. _latest version of git: https://git-scm.com/downloads79-.. _username: https://help.github.com/articles/setting-your-username-in-git/80-.. _email: https://help.github.com/articles/setting-your-email-in-git/79+.. _username: https://help.github.com/en/articles/setting-your-username-in-git80+.. _email: https://help.github.com/en/articles/setting-your-commit-email-address-in-git81 .. _Fork: https://github.com/pallets/flask/fork82-.. _Clone: https://help.github.com/articles/fork-a-repo/#step-2-create-a-local-clone-of-your-fork82+.. _Clone: https://help.github.com/en/articles/fork-a-repo#step-2-create-a-local-clone-of-your-fork83 84 Start coding85 ~~~~~~~~~~~~86 8 unmodified lines95 96 git checkout -b your-branch-name origin/master97 98 - Using your favorite editor, make your changes, `committing as you go`_.99-- Try to follow `PEP8`_, but you may ignore the line length limit if following100- it would make the code uglier.99+- Try to follow `PEP8`_. We have a pre-commit config and tests that will100+ ensure the code follows our style guide.101 - Include tests that cover any code changes you make. Make sure the test fails102 without your patch. `Run the tests. <contributing-testsuite_>`_.103 - Push your commits to GitHub and `create a pull request`_ by using::104 105 git push --set-upstream origin your-branch-name106 107 - Celebrate 🎉108 109-.. _committing as you go: http://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes109+.. _committing as you go: https://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes110 .. _PEP8: https://pep8.org/111-.. _create a pull request: https://help.github.com/articles/creating-a-pull-request/111+.. _create a pull request: https://help.github.com/en/articles/creating-a-pull-request112 113 .. _contributing-testsuite:114 115 Running the tests40 unmodified lines156 make html157 158 Open ``_build/html/index.html`` in your browser to view the docs.159 160-Read more about `Sphinx <http://www.sphinx-doc.org>`_.160+Read more about `Sphinx <https://www.sphinx-doc.org/en/master/>`_.161 162 163-make targets164-~~~~~~~~~~~~165-166-Flask provides a ``Makefile`` with various shortcuts. They will ensure that167-all dependencies are installed.168-169-- ``make test`` runs the basic test suite with ``pytest``170-- ``make cov`` runs the basic test suite with ``coverage``171-- ``make test-all`` runs the full test suite with ``tox``172-- ``make docs`` builds the HTML documentation173-163 Caution: zero-padded file modes164 -------------------------------165 166 This repository contains several zero-padded file modes that may cause issues18 unmodified lines