jekyll-latex-pdf 0.5.4 → 0.6.0
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 +5 -5
- data/Gemfile.lock +84 -76
- data/README.md +13 -0
- data/jekyll-latex-pdf.gemspec +9 -9
- data/lib/jekyll/latex/pdf/document.rb +2 -0
- data/lib/jekyll/latex/pdf/version.rb +1 -1
- metadata +23 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 86c0f81a40bc3297a452528bb9ccee1cfbcc1e4625ef7b9974b1bccc4aaaae43
|
4
|
+
data.tar.gz: e50d08f3449ebaa915e91442c4bad3cda59fc3ab12a1012c8e46027626853319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c9ad3bbbd1a136c847c616b1dd64e7797b975c0bb10f3c2c467634e1e8fac912558ad2c219858becb24e9805572c837171ab219c9c8167c5156e1883ba6697
|
7
|
+
data.tar.gz: eca65b1d598845813e1bcee785744b6e114b1e60d8e0d0fb7b16d89a4380b8c1b74917de9e18687872d817b2a429d4325bd893d02d4bb3a7e98335229090bc85
|
data/Gemfile.lock
CHANGED
@@ -1,120 +1,128 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jekyll-latex-pdf (0.
|
5
|
-
jekyll (~>
|
6
|
-
kramdown (~>
|
4
|
+
jekyll-latex-pdf (0.6.0)
|
5
|
+
jekyll (~> 4.2)
|
6
|
+
kramdown (~> 2.3)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (>= 2.0.2, <
|
13
|
-
ast (2.4.
|
14
|
-
bibtex-ruby (
|
11
|
+
addressable (2.8.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
ast (2.4.2)
|
14
|
+
bibtex-ruby (6.0.0)
|
15
15
|
latex-decode (~> 0.0)
|
16
|
-
citeproc (1.0.
|
16
|
+
citeproc (1.0.10)
|
17
17
|
namae (~> 1.0)
|
18
|
-
citeproc-ruby (1.1.
|
18
|
+
citeproc-ruby (1.1.14)
|
19
19
|
citeproc (~> 1.0, >= 1.0.9)
|
20
|
-
csl (~> 1.
|
21
|
-
coderay (1.1.
|
20
|
+
csl (~> 1.6)
|
21
|
+
coderay (1.1.3)
|
22
22
|
colorator (1.1.0)
|
23
|
-
concurrent-ruby (1.1.
|
24
|
-
csl (1.
|
23
|
+
concurrent-ruby (1.1.9)
|
24
|
+
csl (1.6.0)
|
25
25
|
namae (~> 1.0)
|
26
|
-
|
26
|
+
rexml
|
27
|
+
csl-styles (1.0.1.11)
|
27
28
|
csl (~> 1.0)
|
28
|
-
em-websocket (0.5.
|
29
|
+
em-websocket (0.5.3)
|
29
30
|
eventmachine (>= 0.12.9)
|
30
|
-
http_parser.rb (~> 0
|
31
|
+
http_parser.rb (~> 0)
|
31
32
|
eventmachine (1.2.7)
|
32
|
-
ffi (1.
|
33
|
+
ffi (1.15.4)
|
33
34
|
forwardable-extended (2.6.0)
|
34
|
-
http_parser.rb (0.
|
35
|
-
i18n (
|
35
|
+
http_parser.rb (0.8.0)
|
36
|
+
i18n (1.8.11)
|
36
37
|
concurrent-ruby (~> 1.0)
|
37
|
-
|
38
|
-
jekyll (3.8.5)
|
38
|
+
jekyll (4.2.1)
|
39
39
|
addressable (~> 2.4)
|
40
40
|
colorator (~> 1.0)
|
41
41
|
em-websocket (~> 0.5)
|
42
|
-
i18n (~> 0
|
43
|
-
jekyll-sass-converter (~>
|
42
|
+
i18n (~> 1.0)
|
43
|
+
jekyll-sass-converter (~> 2.0)
|
44
44
|
jekyll-watch (~> 2.0)
|
45
|
-
kramdown (~>
|
45
|
+
kramdown (~> 2.3)
|
46
|
+
kramdown-parser-gfm (~> 1.0)
|
46
47
|
liquid (~> 4.0)
|
47
|
-
mercenary (~> 0.
|
48
|
+
mercenary (~> 0.4.0)
|
48
49
|
pathutil (~> 0.9)
|
49
|
-
rouge (
|
50
|
+
rouge (~> 3.0)
|
50
51
|
safe_yaml (~> 1.0)
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
terminal-table (~> 2.0)
|
53
|
+
jekyll-sass-converter (2.1.0)
|
54
|
+
sassc (> 2.0.1, < 3.0)
|
55
|
+
jekyll-scholar (7.0.0)
|
56
|
+
bibtex-ruby (~> 6.0)
|
55
57
|
citeproc-ruby (~> 1.0)
|
56
58
|
csl-styles (~> 1.0)
|
57
|
-
jekyll (~>
|
59
|
+
jekyll (~> 4.0)
|
58
60
|
jekyll-watch (2.2.1)
|
59
61
|
listen (~> 3.0)
|
60
|
-
kramdown (
|
61
|
-
|
62
|
+
kramdown (2.3.1)
|
63
|
+
rexml
|
64
|
+
kramdown-parser-gfm (1.1.0)
|
65
|
+
kramdown (~> 2.0)
|
66
|
+
latex-decode (0.3.2)
|
62
67
|
liquid (4.0.3)
|
63
|
-
listen (3.
|
64
|
-
rb-fsevent (~> 0.
|
65
|
-
rb-inotify (~> 0.9, >= 0.9.
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
ast (~> 2.4.0)
|
68
|
+
listen (3.7.0)
|
69
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
70
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
71
|
+
mercenary (0.4.0)
|
72
|
+
method_source (1.0.0)
|
73
|
+
namae (1.1.1)
|
74
|
+
parallel (1.21.0)
|
75
|
+
parser (3.0.3.0)
|
76
|
+
ast (~> 2.4.1)
|
73
77
|
pathutil (0.16.2)
|
74
78
|
forwardable-extended (~> 2.6)
|
75
|
-
pry (0.
|
76
|
-
coderay (~> 1.1
|
77
|
-
method_source (~> 0
|
78
|
-
pry-doc (
|
79
|
-
pry (~> 0.
|
80
|
-
yard (~> 0.
|
81
|
-
public_suffix (
|
79
|
+
pry (0.14.1)
|
80
|
+
coderay (~> 1.1)
|
81
|
+
method_source (~> 1.0)
|
82
|
+
pry-doc (1.2.0)
|
83
|
+
pry (~> 0.11)
|
84
|
+
yard (~> 0.9.11)
|
85
|
+
public_suffix (4.0.6)
|
82
86
|
rainbow (3.0.0)
|
83
|
-
rake (
|
84
|
-
rb-fsevent (0.
|
85
|
-
rb-inotify (0.10.
|
87
|
+
rake (13.0.6)
|
88
|
+
rb-fsevent (0.11.0)
|
89
|
+
rb-inotify (0.10.1)
|
86
90
|
ffi (~> 1.0)
|
87
|
-
|
88
|
-
|
89
|
-
|
91
|
+
regexp_parser (2.1.1)
|
92
|
+
rexml (3.2.5)
|
93
|
+
rouge (3.26.1)
|
94
|
+
rubocop (1.23.0)
|
90
95
|
parallel (~> 1.10)
|
91
|
-
parser (>=
|
96
|
+
parser (>= 3.0.0.0)
|
92
97
|
rainbow (>= 2.2.2, < 4.0)
|
98
|
+
regexp_parser (>= 1.8, < 3.0)
|
99
|
+
rexml
|
100
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
93
101
|
ruby-progressbar (~> 1.7)
|
94
|
-
unicode-display_width (>= 1.4.0, <
|
95
|
-
|
96
|
-
|
102
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
103
|
+
rubocop-ast (1.13.0)
|
104
|
+
parser (>= 3.0.1.1)
|
105
|
+
ruby-progressbar (1.11.0)
|
97
106
|
safe_yaml (1.0.5)
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
yard (0.9.19)
|
107
|
+
sassc (2.4.0)
|
108
|
+
ffi (~> 1.9)
|
109
|
+
terminal-table (2.0.0)
|
110
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
111
|
+
unicode-display_width (1.8.0)
|
112
|
+
yard (0.9.26)
|
105
113
|
|
106
114
|
PLATFORMS
|
107
|
-
|
115
|
+
x86_64-linux
|
108
116
|
|
109
117
|
DEPENDENCIES
|
110
|
-
bundler (~>
|
118
|
+
bundler (~> 2.2)
|
111
119
|
jekyll-latex-pdf!
|
112
|
-
jekyll-scholar (~>
|
113
|
-
method_source (~> 0
|
114
|
-
pry
|
115
|
-
pry-doc (~>
|
116
|
-
rake (~>
|
117
|
-
rubocop (~>
|
120
|
+
jekyll-scholar (~> 7.0)
|
121
|
+
method_source (~> 1.0)
|
122
|
+
pry (~> 0.14)
|
123
|
+
pry-doc (~> 1.2.0)
|
124
|
+
rake (~> 13)
|
125
|
+
rubocop (~> 1.23)
|
118
126
|
|
119
127
|
BUNDLED WITH
|
120
|
-
|
128
|
+
2.2.32
|
data/README.md
CHANGED
@@ -36,6 +36,13 @@ Or install it yourself as:
|
|
36
36
|
To make it work with jekyll, you need to add `- jekyll-latex-pdf` to the plugins
|
37
37
|
section in your `_config.yml` file of your jekyll site.
|
38
38
|
|
39
|
+
In `_config.yml` you need to add a section for the pdf config:
|
40
|
+
`pdf:
|
41
|
+
pdf_engine: lualatex
|
42
|
+
author: The Default Author
|
43
|
+
`
|
44
|
+
See below for other options and what the options control.
|
45
|
+
|
39
46
|
You need to have Latex installed on your system. Default is to use `lualatex`
|
40
47
|
and `biber` which depends on your system how to install. Look for texlive and
|
41
48
|
biblatex to see how it works.
|
@@ -60,6 +67,12 @@ In your post template use
|
|
60
67
|
to get a link to the pdf version of your page. Maybe you want to surround this
|
61
68
|
in an if clause if you have posts which should not be rendered to pdf too.
|
62
69
|
|
70
|
+
Please note that if you use a baseurl, this is not automatically included. In this case you should use:
|
71
|
+
```
|
72
|
+
<a href="{{ page.pdf_url | prepend:site.baseurl }}" target="_blank">PDF</a>
|
73
|
+
```
|
74
|
+
|
75
|
+
|
63
76
|
## Configuration
|
64
77
|
|
65
78
|
We ship a latex template which is derived from the kramdown original to add
|
data/jekyll-latex-pdf.gemspec
CHANGED
@@ -22,17 +22,17 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r!^exe/!) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_development_dependency "bundler", "~>
|
26
|
-
spec.add_development_dependency "method_source", "~> 0
|
27
|
-
spec.add_development_dependency "pry"
|
28
|
-
spec.add_development_dependency "pry-doc", "~>
|
29
|
-
spec.add_development_dependency "rake", "~>
|
30
|
-
spec.add_development_dependency "rubocop", "~>
|
31
|
-
spec.add_development_dependency "jekyll-scholar", "~>
|
25
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
26
|
+
spec.add_development_dependency "method_source", "~> 1.0"
|
27
|
+
spec.add_development_dependency "pry", "~> 0.14"
|
28
|
+
spec.add_development_dependency "pry-doc", "~> 1.2.0"
|
29
|
+
spec.add_development_dependency "rake", "~> 13"
|
30
|
+
spec.add_development_dependency "rubocop", "~> 1.23"
|
31
|
+
spec.add_development_dependency "jekyll-scholar", "~> 7.0"
|
32
32
|
#spec.add_development_dependency "minitest", "~> 5.0.0"
|
33
33
|
#spec.add_development_dependency "rouge"
|
34
34
|
#spec.add_development_dependency "stringex", "~> 1.5.1"
|
35
35
|
|
36
|
-
spec.add_runtime_dependency "jekyll", "~>
|
37
|
-
spec.add_runtime_dependency "kramdown", "~>
|
36
|
+
spec.add_runtime_dependency "jekyll", "~> 4.2"
|
37
|
+
spec.add_runtime_dependency "kramdown", "~> 2.3"
|
38
38
|
end
|
@@ -64,6 +64,8 @@ module Jekyll
|
|
64
64
|
|
65
65
|
latex = Latex.new(source, @site, @page, @kramdowndata, @name)
|
66
66
|
if 0 == latex.compile
|
67
|
+
# Create target directory if not existing yet (in case of a new post - the HTML rendering which creates folders if needed happens later, so we need to do it here first)
|
68
|
+
FileUtils.mkdir_p(File.dirname(path.to_s))
|
67
69
|
FileUtils.cp(latex.pdf_file, path)
|
68
70
|
Jekyll.logger.debug "cp " + latex.pdf_file.to_s + " " + path.to_s
|
69
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-latex-pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Kaffanke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,126 +16,126 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.2'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: method_source
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '1.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '0.14'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '0.14'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry-doc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.2.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.2.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '13'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '13'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.23'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.23'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: jekyll-scholar
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '7.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '7.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: jekyll
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '4.2'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: '4.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: kramdown
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '2.3'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '2.3'
|
139
139
|
description: Create PDFs for download from your posts, using latex flexible and comfortable.
|
140
140
|
email:
|
141
141
|
- martin@kaffanke.at
|
@@ -199,8 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
|
203
|
-
rubygems_version: 2.6.14
|
202
|
+
rubygems_version: 3.1.2
|
204
203
|
signing_key:
|
205
204
|
specification_version: 4
|
206
205
|
summary: Crates pdfs using just latex for jekyll posts. (needs kramdown)
|