'Find the name and anchor for a given section
Args:
section: A section of parsed HTML
Returns:
name: Name of the section
anchor: Anchor tag to use when linking back to the docs (ie #tags)'

def parse_name_and_anchor_from_data(self, section):

    (name, anchor) = (None, None)
    a_tag = section.find('a', {'class': 'headerlink'})
    if a_tag:
        anchor = a_tag['href']
        name = a_tag.parent.text[:(-1)].replace('()', '').replace('.', '')
    return (name, anchor)
