Before wasting time writing a book that nobody read, pretotype your idea publishing a title, a toc and a good cover.
Forget word processor to write your book. Write it as you write your code. When ready push it into your repository.
Publish your draft, ask for feedbacks and collect comments. Before go on adjust the route.