Skip to content

Commit

Permalink
[BUGFIX] Fix typos in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml authored and jaapio committed Nov 7, 2023
1 parent 4f516f4 commit 547a30e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/extension/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions docs/extension/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Extending Templates
===================

Register the templates overrides in your extensions
Register the templates overrides in your extension's
:ref:`Extension class <extension_symfony>`:

.. literalinclude:: _YourExtension.php
Expand All @@ -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
Expand Down Expand Up @@ -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 <https://twig.symfony.com/>`__.

Have a look at the `custom theme for TYPO3 Documentation <https://github.com/TYPO3-Documentation/typo3-docs-theme>`__
Expand Down
2 changes: 1 addition & 1 deletion docs/extension/text-roles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 547a30e

Please sign in to comment.