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 +4 -4
- data/.travis.yml +3 -1
- data/Gemfile.lock +1 -1
- data/README.md +25 -12
- data/lib/jekyll-e-book/generator.rb +1 -3
- data/lib/jekyll-e-book/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7daf07167a33274011e9ffdf9696ecf001335a58d8804fbb9903f40d4cb24da0
|
4
|
+
data.tar.gz: 35b9971f1eb59ec967e888e258775c6722cf5e4519c8d5d7d4c3a299acd90fa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f625a373a65c8bf45b1f01d122fd1e2d1f60d8e6953dfe4879dede70dce9f5df0045ef2c4b4b8b248dcf75b4e24b891325c58ea061c2ee072f21f48ac82353
|
7
|
+
data.tar.gz: b490c746fc9c22bca7d30b6aa0e2b7575f74866507fc20698304b06932764b389788f6706d9596b40e407e445aac203d095cea7014a59e94315bb8fd9e3f5016
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,28 +1,41 @@
|
|
1
1
|
# jekyll-e-book
|
2
2
|
|
3
|
-
|
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
|
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
|
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
|
-
|
15
|
+
```yaml
|
16
|
+
plugins:
|
17
|
+
- jekyll-e-book
|
18
|
+
```
|
22
19
|
|
23
20
|
## Usage
|
24
21
|
|
25
|
-
|
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/
|
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.
|
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
|
|