From 547a30ef3e2ab5c5ab9121495dbc6f84e05dc760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:23:28 +0100 Subject: [PATCH] [BUGFIX] Fix typos in documentation --- docs/extension/structure.rst | 2 +- docs/extension/templates.rst | 8 ++++---- docs/extension/text-roles.rst | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/extension/structure.rst b/docs/extension/structure.rst index c8b9a94ff..d16539aa0 100644 --- a/docs/extension/structure.rst +++ b/docs/extension/structure.rst @@ -32,7 +32,7 @@ For the PHP package to be an extension you need a class extending `\Symfony\Component\DependencyInjection\Extension\Extension` by implementing the interface `Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface` we -can also add our ow configurations to our extension: +can also add our own configurations to our extension: .. literalinclude:: _YourExtension.php :language: php diff --git a/docs/extension/templates.rst b/docs/extension/templates.rst index 795d2ea42..23457761e 100644 --- a/docs/extension/templates.rst +++ b/docs/extension/templates.rst @@ -6,7 +6,7 @@ Extending Templates =================== -Register the templates overrides in your extensions +Register the templates overrides in your extension's :ref:`Extension class `: .. literalinclude:: _YourExtension.php @@ -15,8 +15,8 @@ Register the templates overrides in your extensions :lineos: :emphasize-lines: 29-35 -It is recommended to always extend an existing template so that the base -templates twig files can be used as fallback for non-defined specific template +It is recommended to always extend an existing template so that the Twig files +of the base templates can be used as fallback for non-defined specific template files. In order to extend the default bootstrap theme, require the according base @@ -46,7 +46,7 @@ To extend the base template (plain HTML) require `phpdocumentor/guides` in your 'themes' => ['mytheme' => dirname(__DIR__, 3) . '/resources/template'], ]); -You can now copy any twig file from the extended extensions and change it with +You can now copy any Twig file from the extended extensions and change it with the full power of `Twig `__. Have a look at the `custom theme for TYPO3 Documentation `__ diff --git a/docs/extension/text-roles.rst b/docs/extension/text-roles.rst index f5964b099..8eb65a905 100644 --- a/docs/extension/text-roles.rst +++ b/docs/extension/text-roles.rst @@ -12,7 +12,7 @@ to introduce a new template in path :file:`resources/template/html/guides/inline See also :ref:`basic-text-role`. For more complex examples you can implement `\phpDocumentor\Guides\RestructuredText\TextRoles\TextRole` -and let the method `processNode` return a custom `\phpDocumentor\Guides\Nodes\InlineToken` if this token extends +and let the method `processNode` return a custom `\phpDocumentor\Guides\Nodes\InlineToken`. If this token extends `\phpDocumentor\Guides\Nodes\GenericTextRoleToken` the template will be automatically resolved by the name of the type. For more control rendering you can also implement your own token renderer.