Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pelican: Clean & Simple Page Generation

Pelican: Clean & Simple Page Generation

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

Avatar for Poren Chiang

Poren Chiang

May 17, 2014
Tweet

More Decks by Poren Chiang

Other Decks in Technology

Transcript

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

    SITCON / COSCUP staff • Python advocate • You can reach me at http://poren.tw
  2. Pelican • Static page generator • Anagram for “calepin” (notebook)

    • Support Theming / RSS / Import / IPython / Plugins … • http://docs.getpelican.com
  3. Installing • [sudo] pip install pelican • pip install Markdown

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