def METHOD_NAME(content):
    command_pattern = re.compile(r"^(?P<command>.+) command\s*\n")
    m = command_pattern.match(content)
    if m:
        cmd = m.group('command')
        index = ".. index:: %s\n\n" % cmd
        return index + content
    return content