document generation documentation