diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 8bf240967..0b3ca7159 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -4,7 +4,7 @@ on: pull_request: push: branches: - - '1.x' + - '3.x' jobs: build: diff --git a/doc/.doctor-rst.yaml b/doc/.doctor-rst.yaml index d3c671fe5..bfb404263 100644 --- a/doc/.doctor-rst.yaml +++ b/doc/.doctor-rst.yaml @@ -38,16 +38,16 @@ rules: yarn_dev_option_at_the_end: ~ versionadded_directive_major_version: - major_version: 2 + major_version: 3 versionadded_directive_min_version: - min_version: '2.0' + min_version: '3.0' deprecated_directive_major_version: - major_version: 2 + major_version: 3 deprecated_directive_min_version: - min_version: '2.0' + min_version: '3.0' whitelist: lines: diff --git a/doc/advanced.rst b/doc/advanced.rst index 117f096b6..e70c640fd 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -879,7 +879,9 @@ structure in your test directory:: The ``IntegrationTest.php`` file should look like this:: - class Project_Tests_IntegrationTest extends \Twig\Test\IntegrationTestCase + use Twig\Test\IntegrationTestCase; + + class Project_Tests_IntegrationTest extends IntegrationTestCase { public function getExtensions() { diff --git a/doc/filters/batch.rst b/doc/filters/batch.rst index f8f14015c..18a227feb 100644 --- a/doc/filters/batch.rst +++ b/doc/filters/batch.rst @@ -10,13 +10,13 @@ missing items: {% set items = ['a', 'b', 'c', 'd'] %} - {% for row in items|batch(3, 'No item') %} - - {% for column in row %} - - {% endfor %} - - {% endfor %} + {% for row in items|batch(3, 'No item') %} + + {% for column in row %} + + {% endfor %} + + {% endfor %}
{{ column }}
{{ column }}
The above example will be rendered as: diff --git a/doc/filters/format.rst b/doc/filters/format.rst index 00c09bd7e..782ea75cc 100644 --- a/doc/filters/format.rst +++ b/doc/filters/format.rst @@ -11,8 +11,8 @@ The ``format`` filter formats a given string by replacing the placeholders {# outputs I like foo and bar if the foo parameter equals to the foo string. #} -.. _`sprintf`: https://secure.php.net/sprintf - .. seealso:: :doc:`replace` + +.. _`sprintf`: https://secure.php.net/sprintf