aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gen/module
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-06-03 10:50:20 +0000
committers-ol <s-ol@users.noreply.github.com>2020-06-03 11:04:00 +0000
commit4b8a0f024606ca8c602a4e886767d414995ca0a2 (patch)
tree0477d875efed4bc495827ccf265c1bb44397ce4e /docs/gen/module
parentadd loop/recur (diff)
downloadalive-4b8a0f024606ca8c602a4e886767d414995ca0a2.tar.gz
alive-4b8a0f024606ca8c602a4e886767d414995ca0a2.zip
split guide into guide and reference
Diffstat (limited to 'docs/gen/module')
-rwxr-xr-xdocs/gen/module16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/gen/module b/docs/gen/module
index d726845..77336cf 100755
--- a/docs/gen/module
+++ b/docs/gen/module
@@ -1,7 +1,7 @@
#!/usr/bin/env moon
-import Scope from require 'alv'
-import render, layout from require 'docs.gen.layout'
-import section, h2, h3, ul, li, code from require 'docs.gen.dom'
+import Constant from require 'alv'
+import render, layout, subnav from require 'docs.gen.layout'
+import h2, h3, ul, li, code from require 'docs.gen.dom'
import opairs from require 'alv.util'
export OUT, require
@@ -26,11 +26,13 @@ spit = (file, str) ->
{ OUT, module, name } = arg
name or= module
-module = Scope.from_table require module
+const = Constant.wrap require module
+module = const\unwrap!
spit OUT, layout
- title: "#{name} reference"
- body: section {
+ title: "#{name} module reference"
+ body: table.concat {
+ subnav [a for a in *arg[4,]]
h2 (code name), ' module reference'
h3 'index'
ul for key, node in opairs module.values
@@ -38,4 +40,4 @@ spit OUT, layout
h3 'details'
ul for key, node in opairs module.values
li render key, node.result
- }
+ }, ''