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