Jekyll: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
git push origin gh-pages | git push origin gh-pages | ||
</pre> | </pre> | ||
[[Category:Ruby]] | |||
Revision as of 05:49, 12 April 2014
Okay, here's what I did:
The repository I was trying to create a website for was called cantera-book
Used jekyll-base https://github.com/charlesreid1/jekyll-base to create base structure for a jekyll website, and put it in my repository in jekyll directory
In the jekyll directory I created a site called _site by cloning the gh-pages branch of cantera-book
(if you don't have one, do the git branch --orphan gh-pgaes thing)
Then when you run
jekyll build
to build the site in the _site directory, it will deploy the site to your new local version of the gh-pages branch of the repository.
When you like the changes, you can do
cd _sources git push origin gh-pages