forked from github/pelican
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 !"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ _DEFAULT_CONFIG = {'PATH': None,
|
|||
'CATEGORY_FEED': 'feeds/%s.atom.xml',
|
||||
'SITENAME': 'A Pelican Blog',
|
||||
'DISPLAY_PAGES_ON_MENU': True,
|
||||
'PDF_PROCESSOR': False,
|
||||
}
|
||||
|
||||
def read_settings(filename):
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -8,7 +8,7 @@ if sys.version_info < (2,7):
|
|||
|
||||
setup(
|
||||
name = "pelican",
|
||||
version = '2.4.1',
|
||||
version = '2.4.2',
|
||||
url = 'http://alexis.notmyidea.org/pelican/',
|
||||
author = 'Alexis Metaireau',
|
||||
author_email = 'alexis@notmyidea.org',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue