I'm convinced this is what most tech oriented books are about, not so much about earning money from a book, but putting "Author of xyz" on their CV and website; "you literally wrote the book on xyz, you are an authority on xyz"
And traditional technical publishers are probably a more effective route for this reason even if you’re leaving some direct money on the table.