Commits

Alexis Metaireau  committed 484728f

Add a settings for PDF generation.

  • Participants
  • Parent commits 0813e13

Comments (0)

Files changed (3)

     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 !"

File pelican/settings.py

                    'CATEGORY_FEED': 'feeds/%s.atom.xml',
                    'SITENAME': 'A Pelican Blog',
                    'DISPLAY_PAGES_ON_MENU': True,
+                   'PDF_PROCESSOR': False,
                   }
 
 def read_settings(filename):
 
 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',