slipbox icon indicating copy to clipboard operation
slipbox copied to clipboard

Switch to multi-page HTML output?

Open lggruspe opened this issue 4 years ago • 1 comments

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?

lggruspe avatar Feb 03 '21 08:02 lggruspe

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...

lggruspe avatar Feb 13 '21 10:02 lggruspe