From 18a42064f31f28edfcc4b48569de584d216ea668 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 9 Jul 2018 16:16:22 +0200 Subject: [PATCH] update Twig documentation links --- best_practices/configuration.rst | 2 +- best_practices/templates.rst | 2 +- components/form.rst | 4 ++-- contributing/documentation/standards.rst | 2 +- create_framework/http_foundation.rst | 2 +- introduction/from_flat_php_to_symfony2.rst | 2 +- page_creation.rst | 2 +- quick_tour/the_big_picture.rst | 2 +- quick_tour/the_view.rst | 4 ++-- reference/configuration/twig.rst | 2 +- reference/dic_tags.rst | 4 ++-- reference/forms/twig_reference.rst | 2 +- reference/twig_reference.rst | 2 +- templating.rst | 16 ++++++++-------- templating/escaping.rst | 2 +- templating/twig_extension.rst | 8 ++++---- 16 files changed, 29 insertions(+), 29 deletions(-) diff --git a/best_practices/configuration.rst b/best_practices/configuration.rst index 545663c90d8..32851f132c3 100644 --- a/best_practices/configuration.rst +++ b/best_practices/configuration.rst @@ -206,4 +206,4 @@ through environment variables. Learn how to do it in the following article: Next: :doc:`/best_practices/business-logic` .. _`feature toggles`: https://en.wikipedia.org/wiki/Feature_toggle -.. _`constant() function`: http://twig.sensiolabs.org/doc/functions/constant.html +.. _`constant() function`: https://twig.symfony.com/doc/2.x/functions/constant.html diff --git a/best_practices/templates.rst b/best_practices/templates.rst index b4440fd1b96..c51529560fa 100644 --- a/best_practices/templates.rst +++ b/best_practices/templates.rst @@ -170,5 +170,5 @@ name is irrelevant because you never use it in your own code): Next: :doc:`/best_practices/forms` -.. _`Twig`: http://twig.sensiolabs.org/ +.. _`Twig`: https://twig.symfony.com/ .. _`Parsedown`: http://parsedown.org/ diff --git a/components/form.rst b/components/form.rst index 593f11824cb..ca1f1e70182 100644 --- a/components/form.rst +++ b/components/form.rst @@ -774,5 +774,5 @@ Learn more /form/* .. _Packagist: https://packagist.org/packages/symfony/form -.. _Twig: http://twig.sensiolabs.org -.. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html +.. _Twig: https://twig.symfony.com +.. _`Twig Configuration`: https://twig.symfony.com/doc/2.x/intro.html diff --git a/contributing/documentation/standards.rst b/contributing/documentation/standards.rst index b0471945feb..05083334eb9 100644 --- a/contributing/documentation/standards.rst +++ b/contributing/documentation/standards.rst @@ -176,7 +176,7 @@ In addition, documentation follows these rules: * himself or herself, use themselves .. _`the Sphinx documentation`: http://sphinx-doc.org/rest.html#source-code -.. _`Twig Coding Standards`: http://twig.sensiolabs.org/doc/coding_standards.html +.. _`Twig Coding Standards`: https://twig.symfony.com/doc/2.x/coding_standards.html .. _`reserved by the IANA`: http://tools.ietf.org/html/rfc2606#section-3 .. _`American English`: https://en.wikipedia.org/wiki/American_English .. _`American English Oxford Dictionary`: http://en.oxforddictionaries.com/definition/american_english/ diff --git a/create_framework/http_foundation.rst b/create_framework/http_foundation.rst index a48cbfebaa3..d46024060cb 100644 --- a/create_framework/http_foundation.rst +++ b/create_framework/http_foundation.rst @@ -288,7 +288,7 @@ component is the start of better interoperability between all frameworks and applications using it (like `Symfony`_, `Drupal 8`_, `phpBB 3`_, `ezPublish 5`_, `Laravel`_, `Silex`_ and `more`_). -.. _`Twig`: http://twig.sensiolabs.org/ +.. _`Twig`: https://twig.symfony.com/ .. _`HTTP specification`: https://tools.ietf.org/wg/httpbis/ .. _`audited`: https://symfony.com/blog/symfony2-security-audit .. _`Symfony`: https://symfony.com/ diff --git a/introduction/from_flat_php_to_symfony2.rst b/introduction/from_flat_php_to_symfony2.rst index b7eab7f44cb..47b674ec7f5 100644 --- a/introduction/from_flat_php_to_symfony2.rst +++ b/introduction/from_flat_php_to_symfony2.rst @@ -760,5 +760,5 @@ A good selection of `Symfony community tools`_ can be found on GitHub. .. _`download Composer`: https://getcomposer.org/download/ .. _`Validator`: https://github.com/symfony/validator .. _`Varnish`: https://www.varnish-cache.org/ -.. _`Twig`: http://twig.sensiolabs.org +.. _`Twig`: https://twig.symfony.com .. _`Symfony community tools`: https://github.com/search?q=topic%3Asymfony-bundle&type=Repositories diff --git a/page_creation.rst b/page_creation.rst index 8d14d6d12d1..d2d5801d6f0 100644 --- a/page_creation.rst +++ b/page_creation.rst @@ -246,5 +246,5 @@ Go Deeper with HTTP & Framework Fundamentals introduction/* -.. _`Twig`: http://twig.sensiolabs.org +.. _`Twig`: https://twig.symfony.com .. _`Composer`: https://getcomposer.org diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst index 4a8651fd48b..83121ff925e 100644 --- a/quick_tour/the_big_picture.rst +++ b/quick_tour/the_big_picture.rst @@ -258,4 +258,4 @@ how Symfony makes it really easy to implement web sites better and faster. If you are eager to learn more about Symfony, dive into the next section: ":doc:`The View `". -.. _`Twig`: http://twig.sensiolabs.org/ +.. _`Twig`: https://twig.symfony.com/ diff --git a/quick_tour/the_view.rst b/quick_tour/the_view.rst index bf0aea76d6b..b3741557d23 100644 --- a/quick_tour/the_view.rst +++ b/quick_tour/the_view.rst @@ -287,5 +287,5 @@ But I'm getting ahead of myself. First, you need to learn more about the controller and that's exactly the topic of the :doc:`next part of this tutorial `. Ready for another 10 minutes with Symfony? -.. _`Twig`: http://twig.sensiolabs.org/ -.. _`Twig documentation`: http://twig.sensiolabs.org/documentation +.. _`Twig`: https://twig.symfony.com/ +.. _`Twig documentation`: https://twig.symfony.com/doc/2.x/ diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index 2fdf4de6914..0c643683534 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -354,4 +354,4 @@ If set to ``true``, Symfony shows an exception whenever a Twig variable, attribute or method doesn't exist. If set to ``false`` these errors are ignored and the non-existing values are replaced by ``null``. -.. _`the optimizer extension`: http://twig.sensiolabs.org/doc/api.html#optimizer-extension +.. _`the optimizer extension`: https://twig.symfony.com/doc/2.x/api.html#optimizer-extension diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index d9ae7e6e047..6ef893c644c 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -1452,8 +1452,8 @@ Then, tag it with the ``validator.initializer`` tag (it has no options). For an example, see the ``DoctrineInitializer`` class inside the Doctrine Bridge. -.. _`Twig's documentation`: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension +.. _`Twig's documentation`: https://twig.symfony.com/doc/2.x/advanced.html#creating-an-extension .. _`Twig official extension repository`: https://github.com/fabpot/Twig-extensions .. _`KernelEvents`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/KernelEvents.php .. _`SwiftMailer's Plugin Documentation`: http://swiftmailer.org/docs/plugins.html -.. _`Twig Loader`: http://twig.sensiolabs.org/doc/api.html#loaders +.. _`Twig Loader`: https://twig.symfony.com/doc/2.x/api.html#loaders diff --git a/reference/forms/twig_reference.rst b/reference/forms/twig_reference.rst index 7f6a42274a7..aae93a20128 100644 --- a/reference/forms/twig_reference.rst +++ b/reference/forms/twig_reference.rst @@ -408,4 +408,4 @@ done by using a public ``vars`` property on the +------------------------+-------------------------------------------------------------------------------------+ .. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig -.. _`the Twig documentation`: http://twig.sensiolabs.org/doc/templates.html#test-operator +.. _`the Twig documentation`: https://twig.symfony.com/doc/2.x/templates.html#test-operator diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index e7bf76e0931..61d36fbfee1 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -795,7 +795,7 @@ Those bundles can have other Twig extensions: ``{% image %}`` tags. You can read more about them in :doc:`the Assetic Documentation `. -.. _`Twig Reference`: http://twig.sensiolabs.org/documentation#reference +.. _`Twig Reference`: https://twig.symfony.com/doc/2.x/#reference .. _`Twig Extensions repository`: https://github.com/twigphp/Twig-extensions .. _`Twig Extensions documentation`: http://twig-extensions.readthedocs.io/en/latest/ .. _`Twig Bridge`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/Twig/Extension diff --git a/templating.rst b/templating.rst index 413e3ae4807..e43ecda5b50 100644 --- a/templating.rst +++ b/templating.rst @@ -820,11 +820,11 @@ Learn more /templating/* -.. _`Twig`: http://twig.sensiolabs.org -.. _`tags`: http://twig.sensiolabs.org/doc/tags/index.html -.. _`filters`: http://twig.sensiolabs.org/doc/filters/index.html -.. _`functions`: http://twig.sensiolabs.org/doc/functions/index.html -.. _`add your own extensions`: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension -.. _`with_context`: http://twig.sensiolabs.org/doc/functions/include.html -.. _`include() function`: http://twig.sensiolabs.org/doc/functions/include.html -.. _`{% include %} tag`: http://twig.sensiolabs.org/doc/tags/include.html +.. _`Twig`: https://twig.symfony.com +.. _`tags`: https://twig.symfony.com/doc/2.x/tags/index.html +.. _`filters`: https://twig.symfony.com/doc/2.x/filters/index.html +.. _`functions`: https://twig.symfony.com/doc/2.x/functions/index.html +.. _`add your own extensions`: https://twig.symfony.com/doc/2.x/advanced.html#creating-an-extension +.. _`with_context`: https://twig.symfony.com/doc/2.x/functions/include.html +.. _`include() function`: https://twig.symfony.com/doc/2.x/functions/include.html +.. _`{% include %} tag`: https://twig.symfony.com/doc/2.x/tags/include.html diff --git a/templating/escaping.rst b/templating/escaping.rst index fce167b9a01..d415a6cc220 100644 --- a/templating/escaping.rst +++ b/templating/escaping.rst @@ -88,4 +88,4 @@ in a JavaScript string, use the ``js`` context: var myMsg = 'Hello escape($name, 'js') ?>'; .. _`Cross Site Scripting`: https://en.wikipedia.org/wiki/Cross-site_scripting -.. _`Output Escaping`: http://twig.sensiolabs.org/doc/api.html#escaper-extension +.. _`Output Escaping`: https://twig.symfony.com/doc/2.x/api.html#escaper-extension diff --git a/templating/twig_extension.rst b/templating/twig_extension.rst index c482e87a861..e9a58badd5d 100644 --- a/templating/twig_extension.rst +++ b/templating/twig_extension.rst @@ -136,7 +136,7 @@ For a more in-depth look into Twig Extensions, please take a look at the `Twig extensions documentation`_. .. _`Twig official extension repository`: https://github.com/twigphp/Twig-extensions -.. _`Twig extensions documentation`: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension -.. _`global variables`: http://twig.sensiolabs.org/doc/advanced.html#id1 -.. _`functions`: http://twig.sensiolabs.org/doc/advanced.html#id2 -.. _`Twig extensions documentation legacy`: http://twig.sensiolabs.org/doc/advanced_legacy.html#creating-an-extension +.. _`Twig extensions documentation`: https://twig.symfony.com/doc/2.x/advanced.html#creating-an-extension +.. _`global variables`: https://twig.symfony.com/doc/2.x/advanced.html#id1 +.. _`functions`: https://twig.symfony.com/doc/2.x/advanced.html#id2 +.. _`Twig extensions documentation legacy`: https://twig.symfony.com/doc/2.x/advanced_legacy.html#creating-an-extension