def parameter_desc(self, param):
    desc = self.doc_parameters[param][1]
    for directive in DIRECTIVES:
        full_directive = '.. {}'.format(directive)
        if (full_directive in desc):
            desc = desc[:desc.index(full_directive)]
    return desc
def parameter_desc(self, param):
    desc = self.doc_parameters[param][1]
    for directive in DIRECTIVES:
        full_directive = '.. {}'.format(directive)
        if (full_directive in desc):
            desc = desc[:desc.index(full_directive)]
    return desc