Describe doc attribute in the reference

FIxes #7963.