Cannot make use of the gitbook.js file
Hello, I tried to use the your instruction as I am trying to save a gitbook link. but I get the following error.
update chapterLinksElmSelector: 'body > div > div > aside > div > ul a', in gitbook.js
I tried that, but ending up in a loop for https://docs.facefusion.io.
can you try this https://github.com/AhmadManzoor/gitbook-exporter
@AhmadManzoor works but the output looks not that good - basic typo like headlines are missing
i believe it is generating headlines. YOu can tweak the code according to your needs
@Lumerica @henryruhs docs.facefusion.io html structure is different from legacy gitbook, we have to modify the selectors, try this https://github.com/lufengd3/htmlbook2pdf/blob/main/gitbook.js#L24
const SITE_CONFIG = {
chapterLinksElmSelector: 'body > div > div > aside > div > ul a',
bookContentSelector: 'main',
headerSelector: 'header',
}
Does not work, again infinity loops.