Skip to content

[Icons] Docs: Merging code blocks; language improvements #2793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

ThomasLandauer
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Docs? yes
Issues
License MIT

Page: https://symfony.com/bundles/ux-icons/current/index.html#installation

@carsonbot carsonbot added Icons Status: Needs Review Needs to be reviewed labels May 29, 2025
Comment on lines -19 to -26
HTTP Client for On-Demand Icons
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you plan to use provided icon sets, make sure that you have the HTTP client installed:

.. code-block:: terminal

$ composer require symfony/http-client
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not remove this. It has been discussed already, and this information is usefull.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't remove it, I just moved it upwards.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we have improved the DX here, I'm ok removing this as a "doc section". Maybe a tip or note admonition though so it's still obvious?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's in the very first code block on the page :-)
What would you suggest?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A tip just below the composer require symfony/ux-icons code block.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a second tip about installing ux-twig-component that links to a single html-syntax section as proposed in #2795 (review)

@smnandre
Copy link
Member

I really don’t want to clutter the installation instructions for users who just want to display icons.

That’s in line with how many Symfony docs are written:

This first install block needs to stay short and intuitive. Adding lines that aren't strictly necessary for most users just adds noise.

That said, I’m totally open to making the rest better.. (optional dependencies and/or how we explain the HTML syntax)

My personal take would be to have a separate “HTML Syntax” section with a code sample and a composer require, and then point to it when relevant. Same thing for the HTTP client.

But placing all of that right after “install” and before showing how it actually works still feels too soon to me.

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels May 30, 2025
@ThomasLandauer
Copy link
Contributor Author

I see that you have strong opinions.

So just take what you think is useful, and close/delete the rest.

@smnandre
Copy link
Member

smnandre commented Jun 2, 2025

We're always open to improvements

Recent suggestions felt a bit mixed --some very valid points, others less aligned with concrete user needs or going against points we've already covered.

Thanks again for your time and input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Icons Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants