Pelican: Clean & Simple Page Generation

Pelican: Clean & Simple Page Generation

2014/05/17 Lightning Talk @ PyCON APAC 2014, Academia Sinica, Taipei, Taiwan.

B3ecf4287d58054135af5d7b4d741021?s=128

Poren Chiang

May 17, 2014
Tweet

Transcript

  1. Pelican RSChiang @ PyCON APAC 2014 Clean & Simple Page

    Generation
  2. Hi, I’m RSChiang • Legal science major at NTU •

    SITCON / COSCUP staff • Python advocate • You can reach me at http://poren.tw
  3. Outline • What’s Pelican? • Why not Octopress? • How

    does it work • Conclusion
  4. Pelican • Static page generator • Anagram for “calepin” (notebook)

    • Support Theming / RSS / Import / IPython / Plugins … • http://docs.getpelican.com
  5. so would you ask. “Why not Jekyll or Octopress?”

  6. None
  7. It just doesn’t feel right to mix all of these

    in…
  8. Installing • [sudo] pip install pelican • pip install Markdown

    for .md support • Use pelican command to tranform any text file • Interactive ones: pelican-quickstart
  9. None
  10. pelicanconf.py • Just like Django’s settings.py • Available as template

    variables • Specify plugins by path or Python import • Control your own naming & pagination patterns!
  11. None
  12. Commands • Available as Fabric fabfile.py or Makefile • make

    html (or fab build) • Preview your site using make serve • Publish via make github • make xxx_upload for SSH / FTP / S3 / rsync …
  13. None
  14. Conclusion • Pelican generates page in a clean, Django-like way

    • Granular control on naming / folder structure 
 with almost no restriction • Simple build & deployment to multiple targets • It’s written in Python. 
 Good reason to switch from Octopress now
  15. Thanks! RSChiang @ PyCON APAC 2014