You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ TypeScript and Glint ready
🧵 V2 addon format
🚀 FastBoot support
📦 Lazy loaded packages — minimal impact on initial load
#️⃣ Syntax highlighting for 170+ languages — including .gjs and .gts
🎨 Theme support: 29 included themes — load any external
🔢 Line number support
🔤 Custom fonts — including font ligature support
📋 Copy code to clipboard
🏷️ Code block naming
🗂️ Group code blocks with tabs
✨ Line highlighting
🖌️ Stylable via CSS variables
This is much more sophisticated than what we're doing with highlight / prism, so I think we should use it.
Basically, "for free", we get the JS/TS toggle we want on all the code snippets (just have to write them).
The fastboot support is good.
The theme / etc can change per snippet.
It's very good, and supports everything we need for our future documentation plans, which means we don't have to re-implement all of the above ourselves (which is a huge win, because this stuff is non-trivial).
I know code is authored in markdown, so we can easily support ember-shiki by ripping out our current code-rendering logic / plugin and replacing it with a light-weight plugin that does this transform:
prose prose prose
```{languageTag}
code here
```
prose prose prose
We discussed this in the learning team meeting and we agreed that this kind of general issue is in RFC territory. We are happy to open smaller issues on smaller sub-projects that will discuss how to proceed 👍
Resolves:
Helps with:
"Element Modifiers"
to Stage Recommended emberjs/rfcs#934Supersedes:
Courtesy of @IgnaceMaes
Docs (which uses the component itself!): https://ember-shiki.pages.dev/
GitHub: https://github.com/IgnaceMaes/ember-shiki
This is much more sophisticated than what we're doing with highlight / prism, so I think we should use it.
Basically, "for free", we get the JS/TS toggle we want on all the code snippets (just have to write them).
The fastboot support is good.
The theme / etc can change per snippet.
It's very good, and supports everything we need for our future documentation plans, which means we don't have to re-implement all of the above ourselves (which is a huge win, because this stuff is non-trivial).
cc @gitKrystan @wagenet @wycats @mansona 🥳
I know code is authored in markdown, so we can easily support ember-shiki by ripping out our current code-rendering logic / plugin and replacing it with a light-weight plugin that does this transform:
=>
Here is how js/ts or gjs/gts could be supported: https://ember-shiki.pages.dev/#code-groups
The text was updated successfully, but these errors were encountered: