jekyll-build-ebook 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +8 -8
- data/lib/jekyll-build-ebook/version.rb +1 -1
- data/lib/jekyll/commands/build_ebook.rb +2 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f62eabbb712aa04efcc2d52d8d5b3e8e0aedfe04fb10549277c95951a8cc4fd
|
|
4
|
+
data.tar.gz: 4d9079146bd7711f26c62b54e094f0ee606ec79c029f651ceae79cb510944503
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d7f91f9dab141615ac2e4d44eeec31d7a7b00a32e16b98a74548beb3c96e0b9c11028573859a76c83bf6cfa7b5fa7bd97660f6133f7fb3cfd3031fc0a5b04de
|
|
7
|
+
data.tar.gz: 1663cdabf0ea77463560b82b20536f0f1c98efbf7d23786c89916c58361b42108a0497611c6b0ae995b258c9fd9a314cb783f8144802645e269b09416fa28bd2
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jekyll-build-ebook (0.1.
|
|
4
|
+
jekyll-build-ebook (0.1.1)
|
|
5
5
|
gepub (~> 0.7)
|
|
6
6
|
jekyll (~> 3.5)
|
|
7
7
|
nokogiri (~> 1.0)
|
|
@@ -95,7 +95,7 @@ GEM
|
|
|
95
95
|
ruby_dep (1.5.0)
|
|
96
96
|
rubyzip (1.2.2)
|
|
97
97
|
safe_yaml (1.0.4)
|
|
98
|
-
sass (3.
|
|
98
|
+
sass (3.6.0)
|
|
99
99
|
sass-listen (~> 4.0.0)
|
|
100
100
|
sass-listen (4.0.0)
|
|
101
101
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
data/README.md
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
# jekyll-build-ebook
|
|
2
2
|
|
|
3
|
-
Jekyll plugin that adds a
|
|
3
|
+
Jekyll plugin that adds a subcommand to generate an ebook including your posts.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
Add this line to your site's Gemfile:
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem 'jekyll-build-ebook'
|
|
10
|
+
gem 'jekyll-build-ebook', group: :jekyll_plugins
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
And then
|
|
13
|
+
And then execute:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
plugins:
|
|
17
|
-
- jekyll-build-ebook
|
|
18
|
-
```
|
|
15
|
+
$ bundle
|
|
19
16
|
|
|
20
17
|
## Usage
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
You can generate an EPUB file at `_ebook/YOUR_SITE_TITLE.epub` by the following command:
|
|
20
|
+
|
|
21
|
+
$ bundle exec jekyll build-ebook
|
|
23
22
|
|
|
24
23
|
You can also edit the build settings and the EPUB metadata in `_config.yml`:
|
|
25
24
|
|
|
@@ -29,6 +28,7 @@ ebook:
|
|
|
29
28
|
layout: ebook
|
|
30
29
|
destination: _ebook
|
|
31
30
|
file_name: your-book-title
|
|
31
|
+
|
|
32
32
|
# EPUB metadata
|
|
33
33
|
identifier: http://example.com
|
|
34
34
|
title: Your book title
|
|
@@ -6,6 +6,7 @@ module Jekyll
|
|
|
6
6
|
prog.command(:'build-ebook') do |c|
|
|
7
7
|
c.syntax 'build-ebook'
|
|
8
8
|
c.description 'Build your ebook'
|
|
9
|
+
c.alias :be
|
|
9
10
|
|
|
10
11
|
c.action do |_args, options|
|
|
11
12
|
process(options)
|
|
@@ -18,6 +19,7 @@ module Jekyll
|
|
|
18
19
|
# Adjust verbosity quickly
|
|
19
20
|
Jekyll.logger.adjust_verbosity(options)
|
|
20
21
|
|
|
22
|
+
options = Jekyll::Utils.deep_merge_hashes(JekyllBuildEbook::Config::DEFAULTS, options)
|
|
21
23
|
options = configuration_from_options(options)
|
|
22
24
|
site = Jekyll::Site.new(options)
|
|
23
25
|
|
|
@@ -35,11 +37,6 @@ module Jekyll
|
|
|
35
37
|
|
|
36
38
|
Jekyll.logger.info '', "done in #{(Time.now - t).round(3)} seconds."
|
|
37
39
|
end
|
|
38
|
-
|
|
39
|
-
def self.configure_from_options(options)
|
|
40
|
-
return options if options.is_a?(Jekyll::Configuration)
|
|
41
|
-
Jekyll.configuration(JekyllBuildEbook::Config::DEFAULTS.merge(options))
|
|
42
|
-
end
|
|
43
40
|
end
|
|
44
41
|
end
|
|
45
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-build-ebook
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fuji Nakahara
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|