|
18 | 18 | "* Git\n",
|
19 | 19 | "* Ruby\n",
|
20 | 20 | "* Jekyll\n",
|
| 21 | + "* Pelican\n", |
21 | 22 | "* Django"
|
22 | 23 | ]
|
23 | 24 | },
|
|
442 | 443 | "!bundle exec jekyll serve"
|
443 | 444 | ]
|
444 | 445 | },
|
| 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 | + }, |
445 | 496 | {
|
446 | 497 | "cell_type": "markdown",
|
447 | 498 | "metadata": {},
|
|
515 | 566 | ],
|
516 | 567 | "metadata": {
|
517 | 568 | "kernelspec": {
|
518 |
| - "display_name": "Python 2", |
| 569 | + "display_name": "Python 3", |
519 | 570 | "language": "python",
|
520 |
| - "name": "python2" |
| 571 | + "name": "python3" |
521 | 572 | },
|
522 | 573 | "language_info": {
|
523 | 574 | "codemirror_mode": {
|
524 | 575 | "name": "ipython",
|
525 |
| - "version": 2 |
| 576 | + "version": 3 |
526 | 577 | },
|
527 | 578 | "file_extension": ".py",
|
528 | 579 | "mimetype": "text/x-python",
|
529 | 580 | "name": "python",
|
530 | 581 | "nbconvert_exporter": "python",
|
531 |
| - "pygments_lexer": "ipython2", |
532 |
| - "version": "2.7.10" |
| 582 | + "pygments_lexer": "ipython3", |
| 583 | + "version": "3.4.3" |
533 | 584 | }
|
534 | 585 | },
|
535 | 586 | "nbformat": 4,
|
|
0 commit comments