jgd 1.4 → 1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +24 -2
  2. data/bash/deploy.sh +7 -1
  3. data/jgd.gemspec +1 -1
  4. metadata +2 -2
data/README.md CHANGED
@@ -1,5 +1,16 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/jgd.svg)](http://badge.fury.io/rb/jgd)
2
2
 
3
+ # What is jgd ?
4
+
5
+ If you use some plugins with you Jekyll blog, chances are you can not
6
+ have you blog generated by GitHub.
7
+
8
+ This is where jekyll-github-deploy (a.k.a. jgd) comes in: it will
9
+ automatically build your Jekyll blog and push it to your gh-pages
10
+ branch.
11
+
12
+ # Installing
13
+
3
14
  It is assumed that your blog is in the home directory of your repo.
4
15
 
5
16
  Install it first:
@@ -16,9 +27,20 @@ jgd
16
27
 
17
28
  Now your site is deployed to `gh-pages` branch of your repo. Done.
18
29
 
30
+ # Production variables
31
+
32
+ If you need to have different values for your deployed blog, just add a
33
+ `_config-deploy.yml` file in your project's root and you're set. Values
34
+ re-defined in `_config-deploy.yml` will override those defined in
35
+ `_config.yml`.
36
+
37
+ Typical usage includes changing site `url`, disable disqus or ga in
38
+ development...., you name it.
39
+
40
+ # Deploying with Travis
41
+
19
42
  This is how I configure [my Jekyll blog](https://github.com/yegor256/blog)
20
- to be deployed automatically by
21
- [travis-ci](http://www.travis-ci.org):
43
+ to be deployed automatically by [travis-ci](http://www.travis-ci.org):
22
44
 
23
45
  ```yaml
24
46
  branches:
@@ -21,7 +21,13 @@ VERSION=$(git describe --always --tag)
21
21
 
22
22
  echo -e "\nBuilding Jekyll site:"
23
23
  rm -rf _site
24
- jekyll build
24
+
25
+ if [ -r _config-deploy.yml ]; then
26
+ jekyll build --config _config.yml,_config-deploy.yml
27
+ else
28
+ jekyll build
29
+ fi
30
+
25
31
  cp -R _site ${TEMP}
26
32
 
27
33
  echo -e "\nPreparing gh-pages branch:"
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  s.rubygems_version = '2.2.2'
6
6
  s.required_ruby_version = '>= 1.9.3'
7
7
  s.name = 'jgd'
8
- s.version = '1.4'
8
+ s.version = '1.5'
9
9
  s.license = 'MIT'
10
10
  s.summary = "Jekyll Github Deploy"
11
11
  s.description = "Automated deployment of your Jekyll blog to Github Pages"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jgd
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: '1.5'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-23 00:00:00.000000000 Z
12
+ date: 2014-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop