slipbox
slipbox copied to clipboard
Switch to multi-page HTML output?
Why?
-
slipbox build
generates HTML every time it's run. It might run into problems with extremely large notes. - Large pages take a while to load; the js waits for the entire DOM to load first.
Issues:
- Some features rely on the output being single page. Ex: text search works by running fuse.js on the DOM.
- Where to save HTML pages?
The search index could be pre-built using lunr.py at compile time, but it would need the content in plain text, and slipbox stores the notes as HTML in the database.
- Getting the text from the note source isn't an option, because each file can contain multiple notes.
- Another option is to get the textContent from the HTML in python...