stlite icon indicating copy to clipboard operation
stlite copied to clipboard

Quarto integration

Open gshotwell opened this issue 2 years ago • 5 comments

Would it be possible to add a quarto filter for stlite? We did this for shinylive and it's been extremely convenient for our documentation.

Example documentation: https://shiny.rstudio.com/py/docs/overview.html

Quarto integration: https://github.com/quarto-ext/shinylive

gshotwell avatar Mar 17 '23 11:03 gshotwell

Thank you for the suggestion. While I'm not familiar with Quarto, it seems possible. I will give it a try.

whitphx avatar Mar 22 '23 14:03 whitphx

Awesome, I'm sure that the quarto team would be happy to help out if you have questions

gshotwell avatar Mar 23 '23 18:03 gshotwell

@GShotwell Hi, do you think it's ok just to convert the code blocks to iframes embedding the stlite sharing, or should it be completely self-containing?

whitphx avatar Jul 14 '23 18:07 whitphx

Sorry for missing this, I'm not totally sure about the answer to that. My guess is that with stlite it would be fine to use iframes given the way the rendering works, but I don't actually know the reason why shinylive used the implementation it did. I'll ask Winston to see if he has any thoughts.

gshotwell avatar Jul 26 '23 13:07 gshotwell

Thank you! I created a very first version with iframe anyway: https://github.com/whitphx/quarto-stlite (It's easier to implement.)

I appreciate it if you give it a try and give some feedback!

Also, I'm a beginner of Lua and Quarto, so some code-level advice/feedback is helpful :)

whitphx avatar Jul 27 '23 10:07 whitphx