Baron Schwartz has a long discussion of the genesis of High Performance MySQL 2nd Ed 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!