jekyll-e-book 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e887aef4bb68154dcc5545c3139cb427487229188f706c59c460fe81817059df
4
- data.tar.gz: 53414a4f573156822d5f39f5a112a7f2bdbcb94588baeac69b2f42e92572fbe5
3
+ metadata.gz: 7daf07167a33274011e9ffdf9696ecf001335a58d8804fbb9903f40d4cb24da0
4
+ data.tar.gz: 35b9971f1eb59ec967e888e258775c6722cf5e4519c8d5d7d4c3a299acd90fa8
5
5
  SHA512:
6
- metadata.gz: 1985a702ce38dd3a6c200dbae8a90ddc0de255e1927327ad6ae53e1021fbaf46e3ca3d6e89305bb5754b85b03275c529050c458f12e3c7b82f06ad8e808c5e8d
7
- data.tar.gz: 1e11f6e2739f326e89a36c6060d157f480978776015bfe72510cd7f34c8f5379c8b398783e8f932e03ffcc9cffa8bab70b708bb5ad26f59d32cb150b366b3cdd
6
+ metadata.gz: c4f625a373a65c8bf45b1f01d122fd1e2d1f60d8e6953dfe4879dede70dce9f5df0045ef2c4b4b8b248dcf75b4e24b891325c58ea061c2ee072f21f48ac82353
7
+ data.tar.gz: b490c746fc9c22bca7d30b6aa0e2b7575f74866507fc20698304b06932764b389788f6706d9596b40e407e445aac203d095cea7014a59e94315bb8fd9e3f5016
@@ -3,5 +3,7 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.1
6
+ - 2.5
7
+ - 2.4
8
+ - 2.3
7
9
  before_install: gem install bundler -v 1.16.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-e-book (0.1.0)
4
+ jekyll-e-book (0.1.1)
5
5
  gepub (~> 0.7)
6
6
  jekyll (~> 3.5)
7
7
  nokogiri (~> 1.0)
data/README.md CHANGED
@@ -1,28 +1,41 @@
1
1
  # jekyll-e-book
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jekyll-e-book`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Jekyll plugin to generate an EPUB file including your Jekyll posts.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
7
+ Add this line to your site's Gemfile:
10
8
 
11
9
  ```ruby
12
10
  gem 'jekyll-e-book'
13
11
  ```
14
12
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
13
+ And then add the following to your site's `_config.yml`:
20
14
 
21
- $ gem install jekyll-e-book
15
+ ```yaml
16
+ plugins:
17
+ - jekyll-e-book
18
+ ```
22
19
 
23
20
  ## Usage
24
21
 
25
- TODO: Write usage instructions here
22
+ This plugin will automatically generate an EPUB file at `_ebook/#{file_name}.epub`.
23
+
24
+ You can also edit the build settings and the EPUB metadata in `_config.yml`:
25
+
26
+ ```yaml
27
+ ebook:
28
+ # Build settings
29
+ build: true
30
+ layout: ebook
31
+ destination: _ebook
32
+ file_name: My book
33
+ # EPUB metadata
34
+ identifier: http://example.com
35
+ title: Your book title
36
+ language: ja_JP
37
+ creator: Your name
38
+ ```
26
39
 
27
40
  ## Development
28
41
 
@@ -32,7 +45,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
45
 
33
46
  ## Contributing
34
47
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-e-book. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fuji-nakahara/jekyll-e-book. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
49
 
37
50
  ## License
38
51
 
@@ -18,9 +18,7 @@ module JekyllEBook
18
18
  book.page_progression_direction = config.page_progression_direction
19
19
 
20
20
  book.ordered do
21
- site.posts.read.each do |post|
22
- post.read
23
-
21
+ site.posts.each do |post|
24
22
  original_layout = post.data['layout']
25
23
  post.data['layout'] = config.layout || site.layouts.key?('ebook') ? 'ebook' : 'none'
26
24
 
@@ -1,3 +1,3 @@
1
1
  module JekyllEBook
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-e-book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuji Nakahara