doc generation fixes