If all BIP mentioned on bitcoin.org isn't detailed enough for you, i guess your other option is only by reading the source code.
[1] https://github.com/luke-jr/bfgminer
[2] https://bitcointalksearch.org/topic/guide-solo-mine-testnet-bitcoins-with-bfgminer-bitcoin-core-and-a-cpugpu-5415861
Explaining all the details was a bad choice of words. The BIPS are of course detailed but it's harder to get an overview by of the full protocol by diving into each BIP. In that sense I find it easier to follow some sample source code.
I was looking for a plain cpuminer for this purpose. bfgminer is of course a good reference but it contains a lot of driver code for different miners as well as scrypt support.
Thank you for the pointer to the guide. I had some problems reproducing it. I will add a message in the thread describing my issues.
I've found some references to https://en.bitcoin.it/wiki/Getblocktemplate which does not appear to be up to date since it does not include the segwit rules.
If I try to include it:
"coinbaseaux": {
"coinbasevalue": 3041246,