adds type to doc, adds doc link to resource