Get documentation on any Lua object. Includes documentation for several items in the lua stdlibrary.

Making a library's types self-documenting is easy:

local mty = require'metaty'

-- My module docs
local M = mty.mod'mymod'

--- my fn docs in [$cxt]
function M.myFn(a, b) --> string
  -- do stuff
end
Once that is done, you can view your docs in the terimal with doc'mymod'.

Other Resources

Command doc-cmd

Usage: doc some.symbol Arguments:

Types: Doc

Methods and Functions

Record Doc

Object passed to __doc methods. Aids in writing cxt.

Fields:

Methods

Mod doc.lua

Functions