make the README runnable in Livebook :)#415
make the README runnable in Livebook :)#415spencerolson wants to merge 3 commits intowojtekmach:mainfrom
Conversation
|
took surprisingly few changes to get this working in Livebook! There is one thing I still can't figure out: with the final code code sample in the README i get And I'm not sure of any way around that other than requiring all of those dependencies at the top in setup (and I felt that'd mess with the flow and intent of the README to have those all installed at the top). |
| [](https://hex.pm/packages/req) | ||
| [](https://hexdocs.pm/req) | ||
|
|
||
| [](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fwojtekmach%2Freq%2Fblob%2Fmain%2FREADME.livemd) |
There was a problem hiding this comment.
Adds a "Run in Livebook" button.
The rest of the changes are minor changes to the code samples to make them work in Livebook.
|
Check it out in action! livebook-demo.mp4 |
|
This is a really nice idea! We cannot remove README.md though as it's rendered on GitHub which is important to me. How about we make any necessary changes to README.md and have a README.livemd which is the exact copy (we can have mix.exs keep them identical)?
Yeah not sure what to do about that either maybe we don't have an exact copy after all and we skip this section in the README.livemd. |
|
Thanks!
I believe GitHub supports |
|
Given that GitHub will render |
|
I was unsure whether README.livemd is considered the README, i.e. rendered when going to project page, and it sure does. So I think this is viable, I'll think about for sure, thank you! |
No description provided.