-
Notifications
You must be signed in to change notification settings - Fork 193
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
Docs code playground #474
Comments
Hey @hatemhosny, I really like what you’ve done with LiveCodes—it looks like a fantastic playground, and I’d love to support it. Your implementation in the fork looks great, and I’m definitely open to integrating it into the docs. I’d also be happy to contribute to your project whenever my time allows. Feel free to submit a PR, and we can review it together. Thanks again for your efforts and for sharing such a great tool! |
Thank you, @ismail9k , for the kind words. I will start a PR with implementation. Then we can discuss if you also want to add the "Preview in LiveCodes" GH action. I would be very grateful if you contribute to LiveCodes. My experience in Vue is no where near yours. Thank you 🌹 |
Thanks! 😊 I’ll gladly accept the PR for integrating LiveCodes into the docs and will try to help improve Vue SFC support whenever I’m available. Let me know how I can assist! 🌟 |
Thank you, @ismail9k Would you also be interested in "Preview in LiveCodes" GitHub action for PRs? Shall I open a PR for that? I have already started working on improving Vue SFC (e.g. allowing to show 2 SFCs, so that one can import the other and show-case passing props, etc). Also I'm working on improved editor support and other things. |
Thank you for such a nice project.
I suggest changing the code playground in the examples page of the docs website to use LiveCodes.
Demo: https://hatemhosny.github.io/vue3-carousel/examples.html
Screenshots:
I'm the author of LiveCodes, a feature-rich open-source code playground that supports 90+ languages/frameworks (see starter templates). It runs totally on the client with no backend. It is totally free for unlimited usage with no account required. It has good mobile support. Projects can be shared, exported, deployed (to GitHub Pages) or embedded in web pages. There is a powerful SDK that allows embedding and communicating with playgrounds.
Please see the docs for details.
You can see it used in the-algorithms, RacingBars and CheatSheets websites.
I have already implemented adding LiveCodes to your docs website in a fork. Please see the commit I added to use the new playground.
Advantages over the current playground
There is also a "Preview in LiveCodes" GitHub action for PRs:
(demos: RacingBars - Jotai)
This adds a comment in PR with every push to show pre-configured demos for your library that use the newly pushed code. This does not need to publish the library to npm or any other registry.
If you are interested, I'd be happy to add a PR to your repo.
Obviously, if you are not interested, please feel free to close this issue.
Thank you.
The text was updated successfully, but these errors were encountered: