Add code to generate documentation for descriptors.