Skip to content

Commit

Permalink
update Twig documentation links
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jul 9, 2018
1 parent 1fe37a2 commit 18a4206
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion best_practices/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion best_practices/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
4 changes: 2 additions & 2 deletions components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion contributing/documentation/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion create_framework/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion introduction/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <the_view>`".

.. _`Twig`: http://twig.sensiolabs.org/
.. _`Twig`: https://twig.symfony.com/
4 changes: 2 additions & 2 deletions quick_tour/the_view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
<the_controller>`. 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/
2 changes: 1 addition & 1 deletion reference/configuration/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion reference/forms/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ Those bundles can have other Twig extensions:
``{% image %}`` tags. You can read more about them in
:doc:`the Assetic Documentation </frontend/assetic/asset_management>`.

.. _`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
16 changes: 8 additions & 8 deletions templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion templating/escaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ in a JavaScript string, use the ``js`` context:
var myMsg = 'Hello <?php echo $view->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
8 changes: 4 additions & 4 deletions templating/twig_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 18a4206

Please sign in to comment.