Пример #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()
Пример #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")
Пример #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")
Пример #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")
Пример #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")