Upgrade doc generation