Module chapter-navigation
Functions
addChapterInPageNavigation
- addChapterInPageNavigation(doc: Document, root: DOMStringLike): void
addFullTextUrl
- addFullTextUrl(doc: Document, url: string, root: DOMStringLike): void
-
Parameters
-
doc: Document
-
url: string
-
Returns void
createLink
- createLink(doc: Document, rel: Rel, urlFragment: URLFragment, text: string, callback: (anchor: Node) => void): void
-
Parameters
-
doc: Document
-
-
-
text: string
-
callback: (anchor: Node) => void
Returns void
Adds navigation between chapters (prev chapter link at the beggining and next chapter link at the end) to a provided list of documents (chapters).