mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added Jekyll commands IPython Notebook.
This commit is contained in:
parent
8b82750526
commit
39281aaaa8
66
commands/jekyll.ipynb
Normal file
66
commands/jekyll.ipynb
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:435af6ed0f45ee8e7981d6153b8257fea87f3b76370a481bc1ae324c7e28815d"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
"worksheets": [
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Jekyll Commands\n",
|
||||
"\n",
|
||||
"I\u2019ve also started to build up its mirror site donnemartin.github.io to try out Jekyll. So far I love that I can use my existing developer tools to generate content (SublimeText, Terminal, and GitHub).\n",
|
||||
"\n",
|
||||
"Here are other features I like about Jekyll:\n",
|
||||
"\n",
|
||||
"* Converts Markdown to produce fast, static pages\n",
|
||||
"* Simple to get started, no backend or manual updates\n",
|
||||
"* Hosted on GitHub Pages\n",
|
||||
"* Open source on GitHub"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"Many Jekyll themes require a Ruby version of 2 and above. However, the AWS CLI requires Ruby 1.8.7. Run the proper version of Ruby for Jekyll:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"rvm --default ruby-2.1.5"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"Build and run the localy Jekyll server:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"bundle exec jekyll build\n",
|
||||
"bundle exec jekyll serve"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
}
|
||||
],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user