$30 off During Our Annual Pro Sale. View Details »

Pelican: Clean & Simple Page Generation

Pelican: Clean & Simple Page Generation

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

Poren Chiang

May 17, 2014
Tweet

More Decks by Poren Chiang

Other Decks in Technology

Transcript

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

    View Slide

  2. Hi, I’m RSChiang
    • Legal science major at NTU
    • SITCON / COSCUP staff
    • Python advocate
    • You can reach me at http://poren.tw

    View Slide

  3. Outline
    • What’s Pelican?
    • Why not Octopress?
    • How does it work
    • Conclusion

    View Slide

  4. Pelican
    • Static page generator
    • Anagram for “calepin” (notebook)
    • Support Theming / RSS / Import / IPython / Plugins …
    • http://docs.getpelican.com

    View Slide

  5. so would you ask.
    “Why not Jekyll or Octopress?”

    View Slide

  6. View Slide

  7. It just doesn’t feel right to mix all of these in…

    View Slide

  8. Installing
    • [sudo] pip install pelican
    • pip install Markdown for .md support
    • Use pelican command to tranform any text file
    • Interactive ones: pelican-quickstart

    View Slide

  9. View Slide

  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!

    View Slide

  11. View Slide

  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 …

    View Slide

  13. View Slide

  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

    View Slide

  15. Thanks!
    RSChiang @ PyCON APAC 2014

    View Slide