Skip to content

Commit 38022b0

Browse files
committed
minor #2027 [Doc] Fix some misc issues in UX Icons docs (javiereguiluz)
This PR was merged into the 2.x branch. Discussion ---------- [Doc] Fix some misc issues in UX Icons docs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | - | License | MIT This fixes the doc issues reported in https://symfony.com/doc/build_errors#ux-icons-2.x The relative URL links don't work because the UX docs are considered a different book from Symfony Docs, so relative links like `:doc: ... </templates>` can't be resolved. Commits ------- c476e3a [Doc] Fix some misc issues in UX Icons docs
2 parents c69bd67 + c476e3a commit 38022b0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Icons/doc/index.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,10 @@ of the following attributes: ``aria-label``, ``aria-labelledby`` or ``title``.
384384
If you don't want to set ``aria-hidden="true"`` for a specific icon, you can
385385
explicitly set the ``aria-hidden`` attribute to ``false``:
386386

387-
.. code-block:: twig+html
387+
.. code-block:: html+twig
388388

389389
<twig:ux:icon name="user-profile" aria-hidden="false" />
390390

391-
392391
Performance
393392
-----------
394393

@@ -458,7 +457,7 @@ returning the HTML output.
458457

459458
The <twig:ux:icon> component does not support embedded content.
460459

461-
.. code-block:: twig+html
460+
.. code-block:: html+twig
462461

463462
{# The 🧸 will be ignore in the HTML output #}
464463
<twig:ux:icon name="user-profile" class="w-4 h-4">🧸</twig:ux:icon>
@@ -519,8 +518,8 @@ Full Configuration
519518
Learn more
520519
----------
521520

522-
* :doc:`Creating and Using Templates </templates>`
523-
* :doc:`How to manage CSS and JavaScript assets in Symfony applications </frontend>`
521+
* `Creating and Using Templates`_
522+
* `How to manage CSS and JavaScript assets in Symfony applications`_
524523

525524
.. _`SVG`: https://en.wikipedia.org/wiki/SVG
526525
.. _`ux.symfony.com/icons`: https://ux.symfony.com/icons
@@ -539,3 +538,5 @@ Learn more
539538
.. _`Octicons`: https://github.com/primer/octicons/
540539
.. _`Phosphor Icons`: https://github.com/phosphor-icons/homepage
541540
.. _`Tabler Icons`: https://github.com/tabler/tabler-icons
541+
.. _`Creating and Using Templates`: https://symfony.com/doc/current/templates.html
542+
.. _`How to manage CSS and JavaScript assets in Symfony applications`: https://symfony.com/doc/current/frontend.html

0 commit comments

Comments
 (0)