Skip to content

[Site] switch from highlight.js to tempest/highlight #1808

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 1 commit into from
Apr 30, 2024

Conversation

kbond
Copy link
Member

@kbond kbond commented Apr 30, 2024

Q A
Bug fix? no
New feature? no
Issues n/a
License MIT

Continuation of #1742. I now fully removed highlight.js.

@carsonbot carsonbot added Site ux.symfony.com Status: Needs Review Needs to be reviewed labels Apr 30, 2024
color: #8b949e;
user-select: none;
-webkit-user-select: none
/** tempest/highlight theme (https://github.com/tempestphp/highlight/blob/main/src/Themes/Css/dracula.css) */
Copy link
Member Author

@kbond kbond Apr 30, 2024

Choose a reason for hiding this comment

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

@smnandre, perhaps you can create a follow-up PR to adjust the styles/theme (I may have broken some stuff (ie .codeblock-terminal .hljs-keyword).

BTW, I just randomly picked a dark theme here.

@@ -1,8 +1,8 @@
{% props highlight = false, code = '', height = null %}
{% props code = '', height = null %}
Copy link
Member Author

Choose a reason for hiding this comment

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

I broke highlighting here and was unsure on how to fix.

@smnandre, what do you think about merging this component with CodeBlock to keep it simple? (again, followup PR)

@kbond kbond force-pushed the site/tempest-highlight-2 branch from 0c79bb9 to 22ef22e Compare April 30, 2024 16:20
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Apr 30, 2024
@kbond kbond merged commit 324e976 into symfony:2.x Apr 30, 2024
@kbond kbond deleted the site/tempest-highlight-2 branch May 1, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Site ux.symfony.com Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants