def build_filepaths(pargs): filepaths = find_hrs_files(pargs.root_html_dirs) filepaths = errata_discard_files(filepaths) if pargs.filter_only: filepaths = [fp for fp in filepaths if pargs.filter_only in str(fp)] logger.info("filtered filepaths={}".format(filepaths)) return filepaths
def populate_sections(args): hrs_index_filepaths = find_hrs_files(args, True) hrs_elements = get_aggregated_hrs_elements(hrs_index_filepaths) sections = build_sections_map(hrs_elements) return sections