Added docs as asciidoctor with cross platform support.

This commit is contained in:
SamTV12345 2023-06-20 23:11:43 +02:00
parent 1c23a40aea
commit 4ca30166b8
No known key found for this signature in database
GPG key ID: E63EEC7466038043
29 changed files with 1401 additions and 860 deletions

22
doc/api/pluginfw.adoc Normal file
View file

@ -0,0 +1,22 @@
== Plugin Framework
`require("ep_etherpad-lite/static/js/plugingfw/plugins")`
=== plugins.update
`require("ep_etherpad-lite/static/js/plugingfw/plugins").update()` will use npm
to list all installed modules and read their ep.json files, registering the
contained hooks. A hook registration is a pair of a hook name and a function
reference (filename for require() plus function name)
=== hooks.callAll
`require("ep_etherpad-lite/static/js/plugingfw/hooks").callAll("hook_name",
{argname:value})` will call all hook functions registered for `hook_name` with
`{argname:value}`.
=== hooks.aCallAll
?
=== ...