Initial commit
This commit is contained in:
commit
388079e6bb
1108 changed files with 330121 additions and 0 deletions
16
assets/js/plugins/createIndex-hook.js
Normal file
16
assets/js/plugins/createIndex-hook.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class index extends Paged.Handler {
|
||||
constructor(chunker, polisher, caller) {
|
||||
super(chunker, polisher, caller);
|
||||
}
|
||||
|
||||
beforeParsed(content) {
|
||||
createIndex({
|
||||
content: content,
|
||||
spanClassIndex: '.book-index',
|
||||
indexElement: '#book-index',
|
||||
alphabet: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Paged.registerHandlers(index);
|
||||
Loading…
Add table
Add a link
Reference in a new issue