def generate_catalog(self): logger.info("Generate catalog page.") if self.configs["index"]: cgen = CustomCatalogGenerator(self.configs, os.getcwd()) else: cgen = CatalogGenerator(self.configs, os.getcwd()) cgen.update_catalog_page()
def generate_catalog(self, pages): logger.info("Generate catalog page.") if self.configs["index"]: cgen = CustomCatalogGenerator(self.configs, os.getcwd(), None) else: cgen = CatalogGenerator(self.configs, os.getcwd(), pages) html = cgen.generate_catalog_html() ofile = osp.join(os.getcwd(), self.configs["destination"], "index.html") write_file(html, ofile, "index")
def generate_catalog(self, pages): logger.info("Generate catalog page.") if self.configs["index"]: cgen = CustomCatalogGenerator(self.configs, self.target_path) else: cgen = CatalogGenerator(self.configs, self.target_path, pages) html = cgen.generate_catalog_html() ofile = os.path.join(self.target_path, self.configs["destination"], "index.html") write_file(html, ofile, "index")
def generate_catalog(self, pages): logger.info("Generate catalog page.") if self.configs["index"]: cgen = CustomCatalogGenerator(self.configs, self.target_path) else: cgen = CatalogGenerator(self.configs, self.target_path, pages) html = cgen.generate_catalog_html() ofile = os.path.join( self.target_path, self.configs["destination"], "index.html" ) write_file(html, ofile, "index")