updated code generator callback setting in docs