#
hs.doc
Create documentation objects for interactive help within Hammerspoon
The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created.
From the Hammerspoon console:
doc = require("hs.doc")
doc.hs.application
Results in:
Manipulate running applications
[submodules]
hs.application.watcher
[subitems]
hs.application:activate([allWindows]) -> bool
hs.application:allWindows() -> window[]
...
hs.application:visibleWindows() -> win[]
By default, the internal core documentation and portions of the Lua 5.3 manual, located at http://www.lua.org/manual/5.3/manual.html, are already registered for inclusion within this documentation object, but you can register additional documentation from 3rd party modules with hs.registerJSONFile(...)
.
#
Submodules
#
API Overview
Functions - API calls offered directly by the extension
help locateJSONFile preloadSpoonDocs registeredFiles registerJSONFile unregisterJSONFile