mirror of https://github.com/tLDP/python-tldp
revise BaseDoctype to add generic generation method
This commit is contained in:
parent
7daefd03bd
commit
f9aa61fa32
|
@ -38,12 +38,16 @@ class BaseDoctype(object):
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
os.chdir(self.output.dirname)
|
os.chdir(self.output.dirname)
|
||||||
self.output.clear()
|
vector = [self.output.clean(),
|
||||||
self.platform_check()
|
self.platform_check(),
|
||||||
self.create_htmls()
|
self.create_htmls(),
|
||||||
self.create_pdf()
|
self.create_pdf(),
|
||||||
self.create_txt()
|
self.create_txt(),
|
||||||
self.create_html()
|
self.create_html(),
|
||||||
|
]
|
||||||
|
result = all(vector)
|
||||||
|
logger.info("%s generation of all documents %s", self.source.stem, result)
|
||||||
|
return all(vector)
|
||||||
|
|
||||||
#
|
#
|
||||||
# -- end of file
|
# -- end of file
|
||||||
|
|
Loading…
Reference in New Issue