I recently built a site with hugo. Its very easy. You pick a theme, then write some markdown files. And when you need flexibility, you have it for later. I also think it’s the most popular right now, which lends to a lot of themes to pick from and a lot of cpmmunity support.
Paperlessngx will store pdfs and index their contents for searching. It’s not necessarily meant for books but I think it would work.