Open gbinal opened 10 years ago
@kinlane, @konklone, @benbalter, @ctbarna - any thoughts on ways to do this?
Ben had a great idea about generating json that contains the html, but I didn't document it at the time.
P.S. A 12 pack for whoever helps spell this out.
Adding @philipashlock, @jaalfaro, @leahbannon, and @MikePulsiferDOL
Seriously, I want to use this for every website I'm involved with, so there are some serious friend points to be had in this. :)
So trivial with Gist! So difficult with Github proper.
Maybe Gist is enough for you, actually? No way to manage pull requests with Gist, though.
No matter what happens, write an email to support@github.com and ask for a Gist-style embed feature for files in Github repos. That's a needed feature.
Gist does embedding the hard-but-more-useful way, sans iframes, so the script embed rewrites the DOM of the page it's embedded in. I would look around for some sort of JS library that makes that general task easier, and then devise a snippet that uses it that's right for someone's blog. Work through those steps, and see how hard it is.
For cross-domain stuff, I don't think Github Pages (or Github's raw.github.com
URLs) support CORS. So that might pose a problem too.
Maybe someone else wants to take the thinking from here?
@benbalter