'Turns a hierarchical list of TOC href\'s into a flat list.'

def create_flat_toc(self, nodes):

    for item in nodes:
        self.toc_titles.append(item.title)
        self.toc_ids.append(item.href)
        self.create_flat_toc(item.nodes)
