Manage the internal documentation web server.
This module provides functions for managing the Hammerspoon built-in documentation web server. Currently, this is the same documentation available in the Dash docset for Hammerspoon, but does not require third party software for viewing.
Future enhancements to this module under consideration include:
The intent of this sub-module is to provide as close a rendering of the same documentation available at the Hammerspoon GitHub site and Dash documentation as possible in a manner suitable for run-time modification so module developers can test out documentation additions without requiring a complete recompilation of the Hammerspoon source. As always, the most current and official documentation can be found at https://www.hammerspoon.org and in the official Hammerspoon Dash docset.
Signature | hs.doc.hsdocs.browserDarkMode([value]) -> currentValue |
---|---|
Type | Function |
Description | Get or set whether or not the Hammerspoon browser renders output in Dark mode. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 635 |
Signature | hs.doc.hsdocs.browserFrame([frameTable]) -> currentValue |
---|---|
Type | Function |
Description | Get or set the currently saved initial frame location for the documentation browser. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 567 |
Signature | hs.doc.hsdocs.forceExternalBrowser([value]) -> currentValue |
---|---|
Type | Function |
Description | Get or set whether or not hs.doc.hsdocs.help uses an external browser. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 663 |
Signature | hs.doc.hsdocs.help([identifier]) -> nil |
---|---|
Type | Function |
Description | Display the documentation for the specified Hammerspoon function, or the Table of Contents for the Hammerspoon documentation in a built-in mini browser. |
Parameters |
|
Returns |
|
Source | extensions/doc/hsdocs/init.lua line 532 |
Signature | hs.doc.hsdocs.interface([interface]) -> currentValue |
---|---|
Type | Function |
Description | Get or set the network interface that the Hammerspoon documentation web server will be served on |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 409 |
Signature | hs.doc.hsdocs.moduleEntitiesInSidebar([value]) -> currentValue |
---|---|
Type | Function |
Description | Get or set whether or not a module's entity list is displayed as a column on the left of the rendered page. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 613 |
Signature | hs.doc.hsdocs.port([value]) -> currentValue |
---|---|
Type | Function |
Description | Get or set the Hammerspoon documentation server HTTP port. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 453 |
Signature | hs.doc.hsdocs.start() -> |
---|---|
Type | Function |
Description | Start the Hammerspoon internal documentation web server. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 479 |
Signature | hs.doc.hsdocs.stop() -> |
---|---|
Type | Function |
Description | Stop the Hammerspoon internal documentation web server. |
Parameters |
|
Returns |
|
Source | extensions/doc/hsdocs/init.lua line 513 |
Signature | hs.doc.hsdocs.trackBrowserFrame([value]) -> currentValue |
---|---|
Type | Function |
Description | Get or set whether or not changes in the documentation browsers location and size persist through launches of Hammerspoon. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/doc/hsdocs/init.lua line 593 |