mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add a settings for PDF generation.
This commit is contained in:
parent
b7179548c3
commit
efc6bb7aa4
3 changed files with 8 additions and 2 deletions
|
|
@ -31,5 +31,10 @@ if __name__ == '__main__':
|
|||
generator = Generator(args.settings, args.path, args.theme,
|
||||
args.output, markup)
|
||||
clean_output_dir(args.output)
|
||||
generator.run([ArticlesProcessor, PagesProcessor, StaticProcessor])
|
||||
|
||||
processors = [ArticlesProcessor, PagesProcessor, StaticProcessor]
|
||||
if generator.settings['PDF_PROCESSOR']:
|
||||
processors.append(PdfProcessor)
|
||||
|
||||
generator.run(processors)
|
||||
print "Enjoy !"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue