jalovatt / scythe

Lua GUI library and utility framework for Reaper scripts (formerly Lokasenna_GUI)
https://jalovatt.github.io/scythe
MIT License
26 stars 6 forks source link

Generate example articles directly from the example scripts #163

Open jalovatt opened 4 years ago

jalovatt commented 4 years ago

Similar to the doc parser, it should be fairly straightforward to write documentation as script comments:

-- To begin, we load the `GUI` module.
local GUI = require("gui.core")

and invert the code/comments into a Markdown article:

To begin, we load the `GUI` module.

```lua
local GUI = require("gui.core")


The full, uncommented code could then be appended at the end.