]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
fix linkcheck issues
authorDavid Lord <davidism@gmail.com>
Fri, 26 Jul 2019 19:12:41 +0000 (12:12 -0700)
committerDavid Lord <davidism@gmail.com>
Fri, 26 Jul 2019 19:12:41 +0000 (12:12 -0700)
CHANGES.rst
docs/api.rst
docs/extensions.rst
docs/faq.rst
docs/integration.rst
docs/intro.rst
jinja2/bccache.py

index 241136b33725fd5f9b9b37a70a633e1cc72d11c3..4d5ba6deb9152dc0cf082ec576380af270e192bd 100644 (file)
@@ -205,10 +205,10 @@ Version 2.7.2
 - Prefix loader was not forwarding the locals properly to
   inner loaders.  This is now fixed.
 - Security issue: Changed the default folder for the filesystem cache to be
-  user specific and read and write protected on UNIX systems.  See `Debian bug
-  734747`_ for more information.
+  user specific and read and write protected on UNIX systems.  See
+  `Debian bug 734747`_ for more information.
 
-.. _Debian bug 734747: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
+.. _Debian bug 734747: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
 
 Version 2.7.1
 -------------
index fdd508d3a2d6413b04316bb6c7ab1bde6998e091..a11ddde7986757388977274542dd595559af7b01 100644 (file)
@@ -114,7 +114,7 @@ for everything else `unicode`:
 u'f\xf6\xf6'
 
 
-.. _Unicode documentation: http://docs.python.org/dev/howto/unicode.html
+.. _Unicode documentation: https://docs.python.org/3/howto/unicode.html
 
 High Level API
 --------------
index 43ee2e2784d10cfa21aeeb370c82ece94a78c407..a07b557dd3cf1d4aafba84221fa8133148990cce 100644 (file)
@@ -106,7 +106,7 @@ current configuration.  (For example by using `gettext.find`)
 The usage of the `i18n` extension for template designers is covered as part
 :ref:`of the template documentation <i18n-in-templates>`.
 
-.. _gettext: http://docs.python.org/dev/library/gettext
+.. _gettext: https://docs.python.org/3/library/gettext.html
 .. _Babel: http://babel.pocoo.org/
 
 .. _newstyle-gettext:
@@ -223,7 +223,7 @@ Example Extension
 ~~~~~~~~~~~~~~~~~
 
 The following example implements a `cache` tag for Jinja2 by using the
-`Werkzeug`_ caching contrib module:
+`cachelib`_ library:
 
 .. literalinclude:: cache_extension.py
     :language: python
@@ -231,7 +231,7 @@ The following example implements a `cache` tag for Jinja2 by using the
 And here is how you use it in an environment::
 
     from jinja2 import Environment
-    from werkzeug.contrib.cache import SimpleCache
+    from cachelib import SimpleCache
 
     env = Environment(extensions=[FragmentCacheExtension])
     env.fragment_cache = SimpleCache()
@@ -247,7 +247,7 @@ following example caches a sidebar for 300 seconds:
     </div>
     {% endcache %}
 
-.. _Werkzeug: http://werkzeug.pocoo.org/
+.. _cachelib: https://github.com/pallets/cachelib
 
 Extension API
 ~~~~~~~~~~~~~
index 9dd348f59bcb7d0c1c7454e0f260a72901dd1a45..ef521992136652bb29bcc0b906517c3b01708234 100644 (file)
@@ -26,7 +26,7 @@ speaking the performance of a template engine doesn't matter much as the
 usual bottleneck in a web application is either the database or the application
 code.
 
-.. _Mako: http://www.makotemplates.org/
+.. _Mako: https://www.makotemplates.org/
 
 How Compatible is Jinja2 with Django?
 -------------------------------------
@@ -145,7 +145,7 @@ work in production environments::
         sandbox._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']
 
 Credit for this snippet goes to `Thomas Johansson
-<http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_
+<https://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_
 
 Why is there no Python 2.3/2.4/2.5/3.1/3.2 support?
 ---------------------------------------------------
@@ -188,4 +188,4 @@ templates passing information to the parent template.  To avoid this
 issue rename the macro or variable in the parent template to have an
 uncommon prefix.
 
-.. _Jinja 1: http://jinja.pocoo.org/1/
+.. _Jinja 1: https://pypi.org/project/Jinja/
index 3a4988b00d4fd0e1d44b4f56d47a42c8832436cb..e84e5793a7ce1e39cc505c5b03097db62428d65a 100644 (file)
@@ -76,7 +76,7 @@ snippet and add it into your `config/environment.py`::
 
     config['pylons.strict_c'] = True
 
-.. _Pylons: http://www.pylonshq.com/
+.. _Pylons: https://pylonshq.com/
 
 TextMate
 --------
@@ -91,11 +91,11 @@ Vim
 
 A syntax plugin for `Vim`_ exists in the Vim-scripts directory as well as the
 `ext` folder at the root of the Jinja2 project.  `The script
-<http://www.vim.org/scripts/script.php?script_id=1856>`_ supports Jinja1 and
+<https://www.vim.org/scripts/script.php?script_id=1856>`_ supports Jinja1 and
 Jinja2.  Once installed two file types are available `jinja` and `htmljinja`.
 The first one for text based templates, the latter for HTML templates.
 
 Copy the files into your `syntax` folder.
 
 .. _Babel: http://babel.pocoo.org/
-.. _Vim: http://www.vim.org/
+.. _Vim: https://www.vim.org/
index e097718e3d4597460eeef598a7f427099bdb9d72..90636f57f457b230c0b7acb7f5d74a6db3e520c4 100644 (file)
@@ -60,12 +60,12 @@ As an alternative to steps 4 you can also do ``python setup.py develop``
 which will install the package via `distribute` in development mode.  This also
 has the advantage that the C extensions are compiled.
 
-.. _download page: http://pypi.python.org/pypi/Jinja2
-.. _distribute: http://pypi.python.org/pypi/distribute 
-.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools
-.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
-.. _pip: http://pypi.python.org/pypi/pip
-.. _git: http://git-scm.org/
+.. _download page: https://pypi.org/project/Jinja2/
+.. _distribute: https://pypi.org/project/distribute/
+.. _setuptools: https://pypi.org/project/setuptools/
+.. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html
+.. _pip: https://pypi.org/project/pip/
+.. _git: https://git-scm.com/
 
 
 MarkupSafe Dependency
@@ -75,7 +75,7 @@ As of version 2.7 Jinja2 depends on the `MarkupSafe`_ module.  If you
 install Jinja2 via `pip` or `easy_install` it will be installed
 automatically for you.
 
-.. _MarkupSafe: http://pypi.python.org/pypi/MarkupSafe
+.. _MarkupSafe: https://markupsafe.palletsprojects.com/
 
 Basic API Usage
 ---------------
@@ -117,4 +117,4 @@ in mind, so you will have to adapt the shown code examples to Python 3 syntax
 for yourself.
 
 
-.. _Jinja bug tracker: http://github.com/pallets/jinja/issues
+.. _Jinja bug tracker: https://github.com/pallets/jinja/issues
index d687d036fb73a4cca1cae49990496ff9efc74f74..507a9b3dee1f0bed8347729ea9d7baf7a910eca9 100644 (file)
@@ -296,9 +296,8 @@ class MemcachedBytecodeCache(BytecodeCache):
 
     Libraries compatible with this class:
 
-    -   `werkzeug <http://werkzeug.pocoo.org/>`_.contrib.cache
-    -   `python-memcached <http://www.tummy.com/Community/software/python-memcached/>`_
-    -   `cmemcache <http://gijsbert.org/cmemcache/>`_
+    -   `cachelib <https://github.com/pallets/cachelib>`_
+    -   `python-memcached <https://pypi.org/project/python-memcached/>`_
 
     (Unfortunately the django cache interface is not compatible because it
     does not support storing binary data, only unicode.  You can however pass