The AMP HTML library includes many extended components that bring third-party functionality as first-class components in AMP.
We like to introduce a new component to integrate Github gist in AMP. This would allow developers to include their code from Github in their AMP pages.
<amp-gist data-src="https://gist.github.com/cramforce/c5d8ae62be229291e421.js"></amp-gist>.3p/github.js also very similar to 3p/twitter.js. The JS loading can be simpler in the initial version (Just insert the script tag)context.updateDimensions(
body./*OK*/offsetWidth,
body./*OK*/offsetHeight + /* margins */ 20);
closes Issue #829 in the description.Once approved, your changes will be merged. ⚡⚡⚡Congrats on making your first contribution to the AMP Project!⚡⚡⚡ You'll be able to see it live across the web soon!
Thanks, and we hope to see more contributions from you soon.
If you have questions ask in this issue or on your Pull Request (mentioning @aghassemi) or see the How to get help section of the Getting Started guide.
From what I see, the work has started in https://github.com/jmadler/amphtml/tree/amp-github
@jmadler Can you give an update on the status of this?
@jmadler have you managed to get this to work?
Quick update, I just learned that you can append ".pibb" to any Gist url, which will render the contents directly in HTML (interestingly, without head but who cares). This makes it viable to use amp-iframe to insert Gists into a page, but we still don't know the resulting height. Thoughts?
Hello, is this up for grabs? If so, I would like to give it a shot :)
Go for it!
On Thu, Mar 16, 2017, 12:48 PM Levi Durfee notifications@github.com wrote:
Hey guys, is this up for grabs? If so, I would like to give it a shot :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ampproject/amphtml/issues/829#issuecomment-286933623,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACn_K-ZqOfzNutdL0VhQqebCg6wOlHJks5rmJTbgaJpZM4GZ1x_
.
Most helpful comment
Hello, is this up for grabs? If so, I would like to give it a shot :)