Add relationships to function documentation.