Jekyll: Difference between revisions
From charlesreid1
(moved Jekyll to Jekyll/Old Crap) |
No edit summary |
||
| Line 1: | Line 1: | ||
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 <code>git branch --orphan gh-pgaes</code> thing) | |||
Then when you run | |||
<pre> | |||
jekyll build | |||
</pre> | |||
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 | |||
<pre> | |||
cd _sources | |||
git push origin gh-pages | |||
</pre> | |||
Revision as of 05:48, 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