https://pastebin.com/24BQbVmn
Place a text file in the same location as the directory, .lua file, .wlua file, or .dll file. The file for xxx should be named xxx.help, the help system will substitute "To get more detailed help ..." for the string "{{explanation}}". Perhaps it would have been better to use "{{details}}".
To provide detailed help for an individual module, crate a sub-directory and put the .help files in it. For example if we have the module xxx.lua, the path for help with the module would be .\xxx.help (where . is the path to xxx.lua), while the detailed help for the yyy function will be .\xxx\yyy.help. All the user has to do is write text files and creare sub-directories. The script help.lua handles the rest, and if no help file is found, help.lua gracefully returns "No help available for " .. name rather than crashing.