Skip to content

Commit

Permalink
Remove obsolete docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 7, 2023
1 parent 7bec535 commit 6c2ef00
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 60 deletions.
10 changes: 3 additions & 7 deletions doc/filters/format_datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ You can tweak the output for the date part and the time part:
{# mercredi 7 août 2019 23:39:12 UTC #}
{{ '2019-08-07 23:39:12'|format_datetime('full', 'full', locale='fr') }}
Supported values are: ``none``, ``short``, ``medium``, ``long``, and ``full``.

.. versionadded:: 3.6

``relative_short``, ``relative_medium``, ``relative_long``, and ``relative_full`` are also supported when running on
PHP 8.0 and superior or when using a polyfill that define the ``IntlDateFormatter::RELATIVE_*`` constants and
associated behavior.
Supported values are: ``none``, ``short``, ``medium``, ``long``, ``full``,
``relative_short``, ``relative_medium``, ``relative_long``, and
``relative_full``.

For greater flexibility, you can even define your own pattern
(see the `ICU user guide`_ for supported patterns).
Expand Down
4 changes: 0 additions & 4 deletions doc/functions/country_names.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``country_names``
=================

.. versionadded:: 3.5

The ``country_names`` function was added in Twig 3.5.

The ``country_names`` function returns the names of the countries:

.. code-block:: twig
Expand Down
4 changes: 0 additions & 4 deletions doc/functions/currency_names.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``currency_names``
==================

.. versionadded:: 3.5

The ``currency_names`` function was added in Twig 3.5.

The ``currency_names`` function returns the names of the currencies:

.. code-block:: twig
Expand Down
4 changes: 0 additions & 4 deletions doc/functions/language_names.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``language_names``
==================

.. versionadded:: 3.5

The ``language_names`` function was added in Twig 3.5.

The ``language_names`` function returns the names of the languages:

.. code-block:: twig
Expand Down
4 changes: 0 additions & 4 deletions doc/functions/locale_names.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``locale_names``
================

.. versionadded:: 3.5

The ``locale_names`` function was added in Twig 3.5.

The ``locale_names`` function returns the names of the locales:

.. code-block:: twig
Expand Down
4 changes: 0 additions & 4 deletions doc/functions/script_names.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``script_names``
================

.. versionadded:: 3.5

The ``script_names`` function was added in Twig 3.5.

The ``script_names`` function returns the names of the scripts:

.. code-block:: twig
Expand Down
4 changes: 0 additions & 4 deletions doc/functions/timezone_names.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``timezone_names``
==================

.. versionadded:: 3.5

The ``timezone_names`` function was added in Twig 3.5.

The ``timezone_names`` function returns the names of the timezones:

.. code-block:: twig
Expand Down
2 changes: 1 addition & 1 deletion doc/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Slim, Yii, Laravel, and Codeigniter — just to name a few.
Prerequisites
-------------

Twig 4.x needs at least **PHP 8.0.0** to run.
Twig 4.x needs at least **PHP 8.2.0** to run.

Installation
------------
Expand Down
5 changes: 0 additions & 5 deletions doc/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,6 @@ is accessible via the ``loop.parent.loop.index`` variable.
Defining undefined Functions, Filters, and Tags on the Fly
----------------------------------------------------------

.. versionadded:: 3.2

The ``registerUndefinedTokenParserCallback()`` method was added in Twig
3.2.

When a function/filter/tag is not defined, Twig defaults to throw a
``\Twig\Error\SyntaxError`` exception. However, it can also call a `callback`_
(any valid PHP callable) which should return a function/filter/tag.
Expand Down
4 changes: 0 additions & 4 deletions doc/tags/cache.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
``cache``
=========

.. versionadded:: 3.2

The ``cache`` tag was added in Twig 3.2.

The ``cache`` tag tells Twig to cache a template fragment:

.. code-block:: twig
Expand Down
19 changes: 0 additions & 19 deletions tests/Fixtures/regression/simple_xml_element.test

This file was deleted.

0 comments on commit 6c2ef00

Please sign in to comment.