Example #1
0
 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()
Example #2
0
 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")
Example #3
0
 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")
Example #4
0
 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")
Example #5
0
 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")