Python Static Site Generator
Text + Template = Static Site
Github:: @igauravsehrawat
Twitter:: @root3d
What exactly is this ?
● Similar to wordpress without db
● Uses markdown
● Analogous to jekyll
Why ?
● If one doesn't need
a run a server with
db.
● No apache/ngnix
● Simplicity
● Pythonic way
● Host free on Github
How ?
● Pelican
● Hyde
● Nikola
...
Pelican
● Renowned
community
● Good support
● Documentation
● Mailing list
● IRC Channel:
#pelican
● Lots of Customized
themes
● Lots of plugins
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
●
Structure
● .
● ├── Makefile
● ├── content
● ├── develop_server.sh
● ├── fabfile.py
● ├── output
● ├── pelicanconf.py
● └── publishconf.py
Customization
● Pelicanconf.py
● Publishconf.py
●
● AUTHOR
● THEMES
● PLUGINS
● SITENAME
● SITEURL
....
● Python -m
SimpleHTTPServer
● Make devserver
● 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
Who uses pelican ?
● Linux-kernel
● Debian
● Chennaipy.org
Thank you

Python Static Site Generator in Pelican