On this page
hs.doc.hsdocs
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:
- Support for third-party modules to add to the documentation set at run-time
- Markdown/HTML based tutorials and How-To examples
- Documentation for the LuaSkin Objective-C Framework
- Lua Reference documentation
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.
API Overview
- Functions - API calls offered directly by the extension
API Documentation
Functions
browserDarkMode
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 |
browserFrame
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 |
forceExternalBrowser
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 |
help
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 |
interface
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 |
moduleEntitiesInSidebar
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 |
port
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 |
start
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 |
stop
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 |
trackBrowserFrame
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 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.doc.hsdocs.html