-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Convert ERB octicon() helpers to inline SVG on the fly #847
Conversation
This pull request is automatically deployed with Now. |
@shawnbot This is neat! Would the the code block contain the code before or after this transformation happens? It seems like we'll end up displaying |
@colebemis Right now it adds an comment before the HTML, but making react-live convert it on the fly is much trickier. |
Gotcha. FYI, @broccolini, @emplums and I discussed using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we work out the Now deployment issues, you can preview this PR here: |
9d86f90
to
7bb4b44
Compare
@@ -14,6 +14,7 @@ import {CONTENT_MAX_WIDTH} from '../docs/constants' | |||
import {repository} from '../package.json' | |||
|
|||
import '../src/index.scss' | |||
import '@primer/octicons/index.scss' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete this if/when #857 lands alongside this.
import '@primer/octicons/index.scss' |
Okay @simurai, when you're back this is ready to test out and review. 🙏 |
And @colebemis, circling back on your comments above: IMO, it'd be great if there could be two "tabs" for each of our ERB examples: one with the original ERB in tact for folks to copy and paste without editing; and the other static HTML, which we'd generate from this. /cc @feministy who had some good feedback on the comments that this outputs. 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Fixes #840?!