vriteio / vrite

Open-source developer content platform
https://vrite.io
Other
1.62k stars 64 forks source link

Feat: Gist embeds #32

Open kcoderhtml opened 1 year ago

kcoderhtml commented 1 year ago

It would be a nice to have as an embed option in addition to the already implemented CodePen and CodeSandbox integrations.

This could be fairly easily implemented by having people provide a link and putting it into the following template

<script src="https://gist.github.com/${username}/${id}.js"></script>
areknawo commented 1 year ago

Indeed should be too difficult to implement. Out of curiosity - what's your use case for Gists that the built-in code blocks can't handle?

kcoderhtml commented 1 year ago

Having a version controlled system to manage the content mostly, but also being able to update the code without rebuilding the website.

areknawo commented 1 year ago

Easy code updates make sense, though you have the drawback of having to edit the blocks separately. I can it being useful though and will try to add it in the next release.

As for version control, I plan to add a built-in system to create and manage versions directly in Vrite.

In case you haven't seen it, there's also a new built-in support for GitHub sync in case you want to version control your entire Markdown content.

Updated docs for that are in the works, but a blog post is available.

kcoderhtml commented 1 year ago

Thank you! I will check out Github sync.