Baron Schwartz has “a long discussion of the genesis of _High Performance MySQL_ 2nd Ed”:http://www.xaprb.com/blog/2008/06/15/what-is-it-like-to-write-a-technical-book/ that goes into some detail about what’s involved in producing such a book.
There’s a reason Free Software often has dodgy or incomplete documentation–documentation is hard!