shorepine / tulipcc

The Tulip Creative Computer - a portable Python synthesizer for music and graphics
https://tulip.computer/
Other
431 stars 28 forks source link

Add on-device documentation using LVGL #206

Open coolcoder613eb opened 5 months ago

coolcoder613eb commented 5 months ago

Add a documentation browser on the device, using LVGL so it can be used at the same time as the repl.

bwhitman commented 5 months ago

Nice idea. I imagine someone could write a pure Tulip/micropython parser from .md files (like our API docs) to LVGL "spans": https://docs.lvgl.io/master/widgets/span.html for font size / bold etc. A full HTML renderer is off the table for now but there's probably a nice middle ground. I hope someone can build this on Tulip!

coolcoder613eb commented 5 months ago

Hmm.. It would only really need to render these things:

coolcoder613eb commented 5 months ago

I wrote a little program to compile markdown to this IR: https://github.com/coolcoder613eb/mdc