Skip to content

Website: remove ember-prism#3776

Open
shleewhite wants to merge 2 commits intomainfrom
hds-5834/website-remove-ember-prism
Open

Website: remove ember-prism#3776
shleewhite wants to merge 2 commits intomainfrom
hds-5834/website-remove-ember-prism

Conversation

@shleewhite
Copy link
Copy Markdown
Contributor

@shleewhite shleewhite commented Apr 2, 2026

📌 Summary

If merged, this PR would remove the ember-prism dependency from the website.

This includes a few changes:

  • Removed the ember-prism related configs from ember-cli-build.js
  • Removed prism-dracula styles
  • Removed CodeBlock component styles + any references to the code block classes
  • Removed showdown sub parser to convert demos wrapped in ``` to code blocks
  • Removed function to apply Prism code highlighting

🔗 External links

Jira ticket: HDS-5834


💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hds-showcase Ready Ready Preview Apr 2, 2026 6:20pm
hds-website Ready Ready Preview Apr 2, 2026 6:20pm

Request Review

// we use the PHP tag as passthrough "tag" because is simply ignored by the `hashHTMLBlocks` function in Showdown
// see: https://github.com/showdownjs/showdown/blob/master/src/subParsers/makehtml/hashHTMLBlocks.js#L93-L95
return `\n<?php start="content-block" type="${type.toLowerCase()}" ?>\n${content}\n<?php end="content-block" type="${type.toLowerCase()}" ?>\n`;
return `\n<?php start="content-block" type="${type.toLowerCase()}" ?>\n\n${content}\n\n<?php end="content-block" type="${type.toLowerCase()}" ?>\n`;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change is to fix an edge case I noticed that broke recently. It only broke on the dodont testing page

this do don't testing example that only contained an inline code snippet was treated as a full code block

Screenshot 2026-04-02 at 2 28 11 PM

but this doesn't work when I removed ember prism

Screenshot 2026-04-02 at 2 27 32 PM

when the code snippet had other text, it never broke. here is an example:
Screenshot 2026-04-02 at 2 29 29 PM

Now, with this the normal inline code snippets still work + when the do/dont only includes an inline code snippet it works.

Screenshot 2026-04-02 at 2 30 35 PM

}

// TODO! fix this once Alex has completed the work on the code blocks
.doc-code-block__code-snippet,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Kind of made the executive decision that you can't put a full demo in a do/dont. Theres no instances of this currently and it seems like a not ideal UX.

@include doc-font-style-body-small();
}

.doc-code-block__code-snippet,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Kind of made the executive decision that you can't put a full demo in a banner. Theres no instances of this currently and it seems like a not ideal UX.

@include doc-font-style-body-small();
}

.doc-code-block__code-snippet,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Kind of made the executive decision that you can't put a full demo in a banner. Theres no instances of this currently and it seems like a not ideal UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant