From 1ebfb13938badf39e4b962bc5c999621764cbd15 Mon Sep 17 00:00:00 2001 From: John Whitlock Date: Thu, 18 Aug 2022 13:17:16 -0500 Subject: [PATCH] Fix missing links in docs --- docs/flask.rst | 2 +- docs/sanic.rst | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/flask.rst b/docs/flask.rst index 9941551..db11ea2 100644 --- a/docs/flask.rst +++ b/docs/flask.rst @@ -127,7 +127,7 @@ specific casters for typical Flask configuration values. E.g.: Flask-Env ~~~~~~~~~ -If you need to solve :ref:`more complex configuration scenarios ` +If you need to solve more complex configuration scenarios there are tools like Flask-Env_ which allows loading settings for different environments (e.g. dev, stage, prod) via environment variables. It provides a small Python meta class to allow setting up the configuration values: diff --git a/docs/sanic.rst b/docs/sanic.rst index ce60bb9..646bae6 100644 --- a/docs/sanic.rst +++ b/docs/sanic.rst @@ -80,11 +80,13 @@ for settings and other variables. loaded by the application automatically and fed into the ``REQUEST_TIMEOUT`` config variable. - -- :doc:`Sanic docs on configuration `. + -- `Sanic docs on configuration`_. The downside of that is that it nicely works only for string based variables, since that's what ``os.environ`` returns. +.. _Sanic docs on configuration: https://sanic.dev/en/guide/deployment/configuration.html#environment-variables + python-decouple ~~~~~~~~~~~~~~~ @@ -190,8 +192,9 @@ Uvicorn, and Hypercorn. .. seealso:: - The :doc:`Sanic deployment documentation ` has more - for more details. + The `Sanic deployment documentation`_ has more details. + +.. _Sanic deployment documentation: https://sanic.dev/en/guide/deployment/running.html#asgi .. _sanic-versions: @@ -454,5 +457,7 @@ Alternatively you can also pass the same logging config dictionary to the Static content -------------- -Please refer to the Sanic documentation about -:doc:`serving static files ` for more information. +Please refer to the Sanic documentation about `serving static files`_ for more +information. + +.. _serving static files: https://sanic.dev/en/guide/basics/routing.html#static-files