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. 2.

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

    SITCON / COSCUP staff • Python advocate • You can reach me at http://poren.tw
  2. 4.

    Pelican • Static page generator • Anagram for “calepin” (notebook)

    • Support Theming / RSS / Import / IPython / Plugins … • http://docs.getpelican.com
  3. 6.
  4. 8.

    Installing • [sudo] pip install pelican • pip install Markdown

    for .md support • Use pelican command to tranform any text file • Interactive ones: pelican-quickstart
  5. 9.
  6. 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!
  7. 11.
  8. 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 …
  9. 13.
  10. 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