Move doc to if(...)

2 jobs for master in 22 minutes and 33 seconds (queued for 65 minutes and 39 seconds)