diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-09 14:49:08 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:23:21 +0000 |
| commit | 61eb86951287667ca0ee305baa5c3cd6ad29ba36 (patch) | |
| tree | 7551d6b9c8af01c049adab0ee027dbad68f28808 /docs | |
| parent | more internal doc fixes (diff) | |
| download | alive-61eb86951287667ca0ee305baa5c3cd6ad29ba36.tar.gz alive-61eb86951287667ca0ee305baa5c3cd6ad29ba36.zip | |
add types.T, fix spec + docs
Diffstat (limited to 'docs')
| -rwxr-xr-x | docs/gen/index | 3 | ||||
| -rw-r--r-- | docs/gen/layout.moon | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/gen/index b/docs/gen/index index a2fe486..55dd1df 100755 --- a/docs/gen/index +++ b/docs/gen/index @@ -1,4 +1,5 @@ #!/usr/bin/env moon +require 'alv' import render, layout, autoref from require 'docs.gen.layout' import section, h1, h2, p, ul, li, a, code from require 'docs.gen.dom' import opairs from require 'alv.util' @@ -43,6 +44,6 @@ spit OUT, layout p "These definitions are automatically loaded into the global Scope of every alive session." ul for key, val in opairs (require 'alv.builtin').values - li render key, val.value + li render key, val.result } } diff --git a/docs/gen/layout.moon b/docs/gen/layout.moon index 60ee80d..f695963 100644 --- a/docs/gen/layout.moon +++ b/docs/gen/layout.moon @@ -21,13 +21,13 @@ render = (name, result, prefix=nil, index=false) -> import div, label, code, ul, li, i, a, pre from dom id = if prefix then "#{prefix}/#{name}" else name - type = i tostring result.type + typestr = i tostring result.type assert result.meta, "#{id} doesn't have any metadata!" summary = assert result.meta.summary, "#{id} doesn't have a summary!" if index div { - label (a (code name), href: "##{id}"), ' (', type, '):  – ' + label (a (code name), href: "##{id}"), ' (', typestr, '):  – ' summary } else @@ -41,7 +41,7 @@ render = (name, result, prefix=nil, index=false) -> content.class = 'nest' div { :id, class: 'def' - label (a (code name), href: "##{id}"), ' (', type, '):  – ' + label (a (code name), href: "##{id}"), ' (', typestr, '):  – ' summary div content } |
