feat(hook): add doneEach
This commit is contained in:
parent
558d73c2a8
commit
c6f760275c
6 changed files with 30 additions and 5 deletions
|
|
@ -67,7 +67,7 @@ window.$docsify = {
|
|||
plugins: [
|
||||
function (hook) {
|
||||
hook.init(function() {
|
||||
// Called when the script starts running, only trigger once.
|
||||
// Called when the script starts running, only trigger once, no arguments,
|
||||
})
|
||||
|
||||
hook.beforeEach(function(content) {
|
||||
|
|
@ -84,8 +84,13 @@ window.$docsify = {
|
|||
next(html)
|
||||
})
|
||||
|
||||
hook.doneEach(function() {
|
||||
// Invoked each time after the data is fully loaded, no arguments,
|
||||
// ...
|
||||
})
|
||||
|
||||
hook.ready(function() {
|
||||
// Called after initialization is complete. Only trigger once.
|
||||
// Called after initialization is complete. Only trigger once, no arguments.
|
||||
})
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue