'Add the master_doc, pre and post files to a list of refnodes.'

def toc_add_files(self, refnodes):

    refnodes.insert(0, {'level': 1, 'refuri': self.esc((self.config.master_doc + self.out_suffix)), 'text': ssp(self.esc(self.env.titles[self.config.master_doc].astext()))})
    for (file, text) in reversed(self.config.epub_pre_files):
        refnodes.insert(0, {'level': 1, 'refuri': self.esc(file), 'text': ssp(self.esc(text))})
    for (file, text) in self.config.epub_post_files:
        refnodes.append({'level': 1, 'refuri': self.esc(file), 'text': ssp(self.esc(text))})
