aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gen/layout.moon
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gen/layout.moon')
-rw-r--r--docs/gen/layout.moon6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/gen/layout.moon b/docs/gen/layout.moon
index 4c75749..895baaa 100644
--- a/docs/gen/layout.moon
+++ b/docs/gen/layout.moon
@@ -20,11 +20,15 @@ render_meta = (meta) ->
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
+ prefix = if prefix then prefix .. "/" else ""
+ id = prefix .. name
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 result.meta.name != name
+ summary = i "alias of ", a (code result.meta.name), href: "##{prefix}#{result.meta.name}"
+
if index
div {
label (a (code name), href: "##{id}"), ' (', typestr, '):  – '