I started with gitbook for deploymentfromscratch.com but run into various issues and now adopted a similar approach to OP by using Pandoc with Markdown and some Latex here and there (like some custom boxes). I really wish there is something more streamlined :(