Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to multi-page HTML output? #4

Open
lggruspe opened this issue Feb 3, 2021 · 1 comment
Open

Switch to multi-page HTML output? #4

lggruspe opened this issue Feb 3, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@lggruspe
Copy link
Owner

lggruspe commented Feb 3, 2021

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 lggruspe added the question Further information is requested label Feb 3, 2021
@lggruspe lggruspe self-assigned this Feb 3, 2021
@lggruspe
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant