getting started with pelican
TRANSCRIPT
Pelican for n00bsStatic Site Generator Powered by Python
Who am i?
@nazrollSoftware Engineer, Sparkline.comOrganizer, Google Developer Groups Kuala Lumpur
Previously: Media Prima Digital (Digital Media & Online Services), Chalkboard (Hyperlocal Ad Network) & a long list of adventures.
Building software for the World Wide Web since 1999.
Today, we’re going to learn (hopefully)
Why use a static site generator?
Setting up Pelican
Generate your site
Deploy to the World Wide Web
Why?Warning: Bad Jokes Ahead
Which one is the best?
Complex plugins to maintain
BLOAT LIKE ME
CMS + Plugins = BLOATED!
Security vulnerabilities
I am too lazy!Maintain server-side scripting software (PHP,
etc)
Maintain a database and it’s software (MySQL,
etc)
Read other people's code to patch that security
leak.
How?Let’s all pray to the Demo Gods
Setting up Pelican
Requirements
python. REQUIRED. At least version 2.7.x
pip. REQUIRED. At least version 7.1.x
virtualenv. RECOMMENDED. At least version 13.x
To maintain sanity, install pelican within a virtual environment!
# Install Pelicanpip install --no-cache-dir pelican
# feedgenerator# RSS/XML feed generator.
# unidecode# Translate Unicode string to ASCII string
# MarkupSafe# Escape Unicode characters/strings safely for HTML templates.
# docutils# Process text documentation into useable formats like HTML, XML, etc.
# blinker# Object to object broadcasting and signaling
# Markdownpip install --no-cache-dir Markdown
DemoSetting up Pelican
DemoGenerate your site
pelican-quickstart
content/
<empty>
output/
<empty>
develop_server.py
fabfile.py
Makefile
pelicanconf.py
publishconf.py
# Generate HTML pages
pelican content
# Preview your site build
cd output && python -m pelican.server
# Open a browser and go to http://localhost:8000
DemoDeploy to the World Wide Web
Deploy to the World Wide WebFTPSSH
Deploy to the World Wide Web
Other Python static site generatorsNikolahttps://getnikola.com/
Hydehttp://hyde.github.io/
I recommend you to read these!Pelican documentation (like duh!)http://docs.getpelican.com/
Static site with Pelican, Grunt, Travis & Github Pageshttp://goo.gl/B7evGr
Install and deploy a Pelican blog using Fabric - Part 1, 2, 3 & 4http://goo.gl/ACVS1B
Pelican Guide Moving from Wordpress and Initial Setuphttp://goo.gl/QEiOiN
Bonus read!Host a Static Website on Google Cloud Storagehttps://goo.gl/9HN75X
Google Developer Launchpadhttps://developers.google.com/startups/Get FREE credits & loads of other stuff!
Keep in [email protected] / nazroll.com