Skip to content

Commit 8bdf95f

Browse files
committed
Add Pelican commands.
1 parent cb8677d commit 8bdf95f

File tree

2 files changed

+58
-6
lines changed

2 files changed

+58
-6
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ IPython Notebook(s) demonstrating various command lines for Linux, Git, etc.
272272
| [ipython notebook](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#ipython-notebook) | Web-based interactive computational environment where you can combine code execution, text, mathematics, plots and rich media into a single document. |
273273
| [git](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#git) | Distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. |
274274
| [ruby](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#ruby) | Used to interact with the AWS command line and for Jekyll, a blog framework that can be hosted on GitHub Pages. |
275-
| [jekyll](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#jekyll) | Simple, blog-aware, static site generator for personal, project, or organization sites. Renders Markdown or Textile and Liquid templates, and produces a complete, static website ready to be served by Apache HTTP Server, Nginx or another web server. [Pelican](https://github.com/getpelican/pelican) is a python-based alternative. |
275+
| [jekyll](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#jekyll) | Simple, blog-aware, static site generator for personal, project, or organization sites. Renders Markdown or Textile and Liquid templates, and produces a complete, static website ready to be served by Apache HTTP Server, Nginx or another web server. |
276+
| [pelican](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#pelican) | Python-based alternative to Jekyll. |
276277
| [django](http://nbviewer.ipython.org/github/donnemartin/data-science-ipython-notebooks/blob/master/commands/misc.ipynb#django) | High-level Python Web framework that encourages rapid development and clean, pragmatic design. It can be useful to share reports/analyses and for blogging. Lighter-weight alternatives include [Pyramid](https://github.com/Pylons/pyramid), [Flask](https://github.com/mitsuhiko/flask), [Tornado](https://github.com/tornadoweb/tornado), and [Bottle](https://github.com/bottlepy/bottle).
277278

278279
## misc

commands/misc.ipynb

+56-5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"* Git\n",
1919
"* Ruby\n",
2020
"* Jekyll\n",
21+
"* Pelican\n",
2122
"* Django"
2223
]
2324
},
@@ -442,6 +443,56 @@
442443
"!bundle exec jekyll serve"
443444
]
444445
},
446+
{
447+
"cell_type": "markdown",
448+
"metadata": {},
449+
"source": [
450+
"<h2 id=\"pelican\">Pelican</h2>"
451+
]
452+
},
453+
{
454+
"cell_type": "markdown",
455+
"metadata": {},
456+
"source": [
457+
"I've switched my personal website [donnemartin.com](http://donnemartin.com/) to run off Pelican, a python-based alternative to Jekyll. Previous iterations ran off Wordpress and Jekyll.\n",
458+
"\n",
459+
"Setup [reference](http://nafiulis.me/making-a-static-blog-with-pelican.html)."
460+
]
461+
},
462+
{
463+
"cell_type": "code",
464+
"execution_count": null,
465+
"metadata": {
466+
"collapsed": true
467+
},
468+
"outputs": [],
469+
"source": [
470+
"# Install\n",
471+
"!pip install pelican\n",
472+
"!pip install markdown\n",
473+
"!pip install ghp-import\n",
474+
"\n",
475+
"# Quick retup\n",
476+
"!pelican-quickstart\n",
477+
"\n",
478+
"# Run server\n",
479+
"!make devserver\n",
480+
"\n",
481+
"# Stop server\n",
482+
"!make stopserver\n",
483+
"\n",
484+
"# Run ghp-import on output folder\n",
485+
"# Review https://pypi.python.org/pypi/ghp-import\n",
486+
"# There's a \"Big Fat Warning\" section\n",
487+
"!ghp-import output\n",
488+
"\n",
489+
"# Update gh-pages (if using a project page)\n",
490+
"!git push origin gh-pages\n",
491+
"\n",
492+
"# Update gh-pages (if using a user or org page)\n",
493+
"!git merge gh-pages master"
494+
]
495+
},
445496
{
446497
"cell_type": "markdown",
447498
"metadata": {},
@@ -515,21 +566,21 @@
515566
],
516567
"metadata": {
517568
"kernelspec": {
518-
"display_name": "Python 2",
569+
"display_name": "Python 3",
519570
"language": "python",
520-
"name": "python2"
571+
"name": "python3"
521572
},
522573
"language_info": {
523574
"codemirror_mode": {
524575
"name": "ipython",
525-
"version": 2
576+
"version": 3
526577
},
527578
"file_extension": ".py",
528579
"mimetype": "text/x-python",
529580
"name": "python",
530581
"nbconvert_exporter": "python",
531-
"pygments_lexer": "ipython2",
532-
"version": "2.7.10"
582+
"pygments_lexer": "ipython3",
583+
"version": "3.4.3"
533584
}
534585
},
535586
"nbformat": 4,

0 commit comments

Comments
 (0)