fix doc generation for build