scripting / drummerRFC

A place to post RFCs for people who use and develop in Drummer.
MIT License
11 stars 0 forks source link

Embed GitHub gists in the same way we embed tweets and video? #15

Open scripting opened 2 years ago

scripting commented 2 years ago

In a thread on the support site @cro suggested embedding gists.

I found some docs on how this is done, and it looks approachable.

scripting commented 2 years ago

Here's the docs on GitHub.

https://docs.github.com/en/github/writing-on-github/editing-and-sharing-content-with-gists/creating-gists

scripting commented 2 years ago

Apparently GitHub doesn't want us to be doing this.

I've been trying things out and reading Stack Exchange posts for the last half-hour.

https://github.com/spotify/web-api/issues/1052

https://stackguides.com/questions/66565504/svelte-embedded-github-gist-throws-failed-to-execute-write-on-document

I would have loved to have Gist display in Drummer blogs.

cro commented 2 years ago

Soooo...I tried this out by going to one of my gists, copying the script code, and pasting it into a point in my Drummer outline and it seemed to work?

See blog test here: http://oldschool.scripting.com/croldham/

Am I missing something?

scripting commented 2 years ago

I wanted to make it unnecessary to paste their code, the same way we include tweets and YouTube videos.