Adjust the key to use for documentation depending on file type.