I am looking at https://www.gitbook.com. Have you used it? Do you know any good alternative?
You write content using reST or Markdown (HTML is also possible). Sphinx generates a static site. JavaScript can be used for dynamic content integration. Supports built-in keyword search using only JS. A theme like mxtheme makes it look good too.
Another option is Jekyll. Similar thing, except that Sphinx requires Python while Jekyll requires Ruby. https://course.fast.ai is a good example.
https://www.jeffgeerling.com/blog/6-lessons-learned-self-pub...
If you expect high traffic volumes, put it behind a CDN such as Cloudfront.
Offering multiple download options such as EPUB and PDF might entice more readers.
Or just publish it on GitHub? There's a discussions feature but I don't think it is out of beta yet. Until then you could use issues for discussions. Or reddit may be?