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

Python Static Site Generator using Pelican

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Python Static Site Generator using Pelican

Python meetup talk

Avatar for igauravsehrawat

igauravsehrawat

December 20, 2014

Other Decks in Technology

Transcript

  1. Python Static Site Generator Text + Template = Static Site

    Github:: @igauravsehrawat Twitter:: @root3d
  2. What exactly is this ? • Similar to wordpress without

    db • Uses markdown • Analogous to jekyll
  3. Why ? • If one doesn't need a run a

    server with db. • No apache/ngnix • Simplicity • Pythonic way • Host free on Github
  4. Pelican • Renowned community • Good support • Documentation •

    Mailing list • IRC Channel: #pelican • Lots of Customized themes • Lots of plugins
  5. Getting Started • Pip install pelican markdown • mkdir <dir_name>

    • Cd <dir_name> • Pelican-quickstart • • Cd content • Touch <file-name.md> • Write some markdown • Pelican content •
  6. Structure • . • ├── Makefile • ├── content •

    ├── develop_server.sh • ├── fabfile.py • ├── output • ├── pelicanconf.py • └── publishconf.py
  7. • DELETE_OUTPUT_DIRECTORY = False in publishconf.py Publish to github •

    Easy Way: Git checkout -b gh- pages • Git add . • Git commit -m “message” • Git push origin gh- pages