Skip to content

Instantly share code, notes, and snippets.

@shashi
Last active October 12, 2015 12:00
Show Gist options
  • Save shashi/5b2c8cd95d2f3834f9c7 to your computer and use it in GitHub Desktop.
Save shashi/5b2c8cd95d2f3834f9c7 to your computer and use it in GitHub Desktop.
using Lazy
function methoddoc(name, sign, doc)
vbox(
fontweight(bold, code(string(name) * "(" * join(map(string, sign.types), ", ") *")" )),
doc
)
end
function showdoc(fn::Function, fndoc)
vbox(
h2(code(string(fn))),
[methoddoc(fn, typ, fndoc.meta[typ]) for typ in fndoc.order]...
)
end
function showdoc(name, docstr)
vbox(
h2(code(name)),
docstr
)
end
function main(window)
m = Lazy.__META__
m1 = copy(m)
pop!(m1, m)
vbox(
[showdoc(k, v) for (k, v) in m1]
) |> pad(2em)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment