docs: baked a lot of API docs

This commit is contained in:
Zef Hemel
2026-08-06 14:48:21 +02:00
parent 9b4de31ca3
commit 754e8525b9
36 changed files with 4888 additions and 49 deletions
+7 -2
View File
@@ -23,7 +23,9 @@ end
Can be used as follows:
${helloWorld("Pete")}
<!--#lua helloWorld("Pete") -->
Hello world, *Pete*!
<!--/lua-->
## DOM widgets
To render a custom HTML-based widget, use the [[API/dom]] elements passed as an argument to `widget.html`:
@@ -74,7 +76,9 @@ function clock()
end
```
${clock()}
<!--#lua clock() -->
Not supported
<!--/lua-->
# API
## widget.new(spec)
@@ -114,3 +118,4 @@ Keys:
* `markdown` (Copy-button content)
* `cssClasses`
* `display` (defaults to `block`)