def create_entry(self, dash_type, key, inv_entry): if dash_type == 'Guide': path_str = inv_entry_to_path(inv_entry) name = inv_entry[3] if name == '<no title>': return if inv_entry[2].startswith('modules/generated/'): return if inv_entry[2].startswith('auto_examples/'): name = 'Example: ' + name if inv_entry[2].startswith('tutorial/'): name = 'Tutorial: ' + name return ParserEntry(name=name, type=dash_type, path=path_str) return super(ScikitLearnDocs, self).create_entry(dash_type, key, inv_entry)
def create_entry(self, dash_type, key, inv_entry): path_str = inv_entry_to_path(inv_entry) return ParserEntry(name=f"!{key}!", type=dash_type, path=path_str)