Skip to content

Tweaked the configuration block directive #85

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

Merged
merged 3 commits into from
Mar 26, 2021

Conversation

javiereguiluz
Copy link
Collaborator

Configuration blocks weren't styled yet in the new doc builder, so I did that and to make CSS and JS code much easier, I propose this tweaks in the generated HTML code for them.

@javiereguiluz
Copy link
Collaborator Author

Sorry for the continuous changes in the proposed HTML code. I'm happy with the latest result, so I don't plan to change this for now ... so this can be reviewed. Thanks!

<ul class="configuration-tabs">
<li data-language="YAML" data-active="true"> <span>YAML</span> </li>
<li data-language="XML" > <span>XML</span> </li>
<li data-language="PHP" > <span>PHP</span> </li>
Copy link
Contributor

@OskarStark OskarStark Mar 25, 2021

Choose a reason for hiding this comment

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

-        <li data-language="PHP" > <span>PHP</span> </li>
+        <li data-language="PHP"><span>PHP</span></li>

Do we really need to generate these spaces?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd prefer to keep it (it's the same case as https://github.com/weaverryan/docs-builder/pull/56#issuecomment-791463260).

I know some people disagree but ... I prefer to make templates readable instead of making the generated HTML perfect, because templates are for humans (and they must maintain them in the future) and HTML is for machines and they don't care.

I hope you agree somewhat on this 🙏

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 to be pragmatic on this kind of things

@weaverryan weaverryan merged commit acbe4bc into symfony-tools:main Mar 26, 2021
@weaverryan
Copy link
Contributor

Thanks Javier!

@javiereguiluz javiereguiluz deleted the configuration_block branch March 26, 2021 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants