jekyll-scholar 1.2.3 → 1.2.4
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/README.md +13 -11
- data/lib/jekyll/scholar/defaults.rb +4 -2
- data/lib/jekyll/scholar/utilities.rb +10 -1
- data/lib/jekyll/scholar/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffca0a664f0e309ee908f64975dc099f9ceff79b
|
|
4
|
+
data.tar.gz: 6c1a6d4cd580ccafc4e1c20d65627481d696cf2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5025b635d86ab250602f3b98da5ad15cef4988f1ebf1660bba751980ab46b3c0e2354c9c2d9783b962be71f2d8c7f1b24c50d92e801bf9d83f87426c64d628a2
|
|
7
|
+
data.tar.gz: 3acf746063713b66b7ba3636fc89872e990a214cbb6dacce0a557656a16e755b6c085b0b060229271bf6c4e006cd9ba5eff409e45e40481134fea1889f04613b
|
data/README.md
CHANGED
|
@@ -33,19 +33,21 @@ default configuration is as follows:
|
|
|
33
33
|
scholar:
|
|
34
34
|
style: apa
|
|
35
35
|
locale: en
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
sort_by: none
|
|
38
38
|
order: ascending
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
source: ./_bibliography
|
|
41
41
|
bibliography: references.bib
|
|
42
|
-
bibliography_template: %{reference}
|
|
42
|
+
bibliography_template: "%{reference}"
|
|
43
|
+
|
|
44
|
+
replace_strings: true
|
|
43
45
|
|
|
44
46
|
details_dir: bibliography
|
|
45
47
|
details_layout: bibtex.html
|
|
46
48
|
details_link: Details
|
|
47
|
-
|
|
48
|
-
query: "@*"
|
|
49
|
+
|
|
50
|
+
query: "@*"
|
|
49
51
|
|
|
50
52
|
You can use any style that ships with
|
|
51
53
|
[CiteProc-Ruby](https://github.com/inukshuk/citeproc-ruby) by name (e.g.,
|
|
@@ -75,7 +77,7 @@ For example, if you had a file `bibliography.bib` in your root directory:
|
|
|
75
77
|
---
|
|
76
78
|
References
|
|
77
79
|
==========
|
|
78
|
-
|
|
80
|
+
|
|
79
81
|
@book{ruby,
|
|
80
82
|
title = {The Ruby Programming Language},
|
|
81
83
|
author = {Flanagan, David and Matsumoto, Yukihiro},
|
|
@@ -208,7 +210,7 @@ For longer quotes, Jekyll-Scholar provides a `quote` tag:
|
|
|
208
210
|
{% quote derrida:purveyor %}
|
|
209
211
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
|
|
210
212
|
sed do eiusmod tempor.
|
|
211
|
-
|
|
213
|
+
|
|
212
214
|
Lorem ipsum dolor sit amet, consectetur adipisicing.
|
|
213
215
|
{% endquote %}
|
|
214
216
|
|
|
@@ -261,7 +263,7 @@ same reference in different blog posts, and all of these posts are
|
|
|
261
263
|
shown in one html document.
|
|
262
264
|
|
|
263
265
|
As a solution, Jekyll-Scholar provides the `--prefix` tag. In your
|
|
264
|
-
first post you might cite as
|
|
266
|
+
first post you might cite as
|
|
265
267
|
|
|
266
268
|
---
|
|
267
269
|
title: Post 1
|
|
@@ -269,7 +271,7 @@ first post you might cite as
|
|
|
269
271
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
|
270
272
|
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
|
|
271
273
|
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
272
|
-
Duis 'aute irure dolor in reprehenderit in voluptate'
|
|
274
|
+
Duis 'aute irure dolor in reprehenderit in voluptate'
|
|
273
275
|
{% cite derrida:purveyor --prefix post1 %} velit esse cillum
|
|
274
276
|
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
|
|
275
277
|
non proident, 'sunt in culpa qui officia deserunt mollit anim id
|
|
@@ -286,7 +288,7 @@ For the second blog post you would cite as follows:
|
|
|
286
288
|
---
|
|
287
289
|
title: Post 2
|
|
288
290
|
---
|
|
289
|
-
Duis 'aute irure dolor in reprehenderit in voluptate'
|
|
291
|
+
Duis 'aute irure dolor in reprehenderit in voluptate'
|
|
290
292
|
{% cite rabinowitz --prefix post2 %} velit esse cillum
|
|
291
293
|
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
|
|
292
294
|
non proident, 'sunt in culpa qui officia deserunt mollit anim id
|
|
@@ -362,7 +364,7 @@ configuration option. For example:
|
|
|
362
364
|
query: "@*[status!=review]" #=> includes all entries whose status field is not set to 'review'
|
|
363
365
|
query: "@book[year <= 1900 && author ^= Poe]" #=> Books published before 1900 where the author matches /Poe/
|
|
364
366
|
query: "!@book" #=> includes all entries with a type other than book
|
|
365
|
-
|
|
367
|
+
|
|
366
368
|
Please note that some of these queries require BibTeX-Ruby 2.3.0 or
|
|
367
369
|
later versions. You can also overwrite the configuration's query parameter
|
|
368
370
|
in each bibliography tag individually as described above.
|
|
@@ -13,6 +13,8 @@ module Jekyll
|
|
|
13
13
|
'bibtex_options' => { :strip => false },
|
|
14
14
|
'bibtex_filters' => [ :latex ],
|
|
15
15
|
|
|
16
|
+
'replace_strings' => true,
|
|
17
|
+
|
|
16
18
|
'details_dir' => 'bibliography',
|
|
17
19
|
'details_layout' => 'bibtex.html',
|
|
18
20
|
'details_link' => 'Details',
|
|
@@ -25,7 +27,7 @@ module Jekyll
|
|
|
25
27
|
|
|
26
28
|
'details_link_class' => 'details',
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
'query' => '@*'
|
|
29
31
|
|
|
30
32
|
}.freeze
|
|
31
33
|
|
|
@@ -33,4 +35,4 @@ module Jekyll
|
|
|
33
35
|
attr_reader :defaults
|
|
34
36
|
end
|
|
35
37
|
end
|
|
36
|
-
end
|
|
38
|
+
end
|
|
@@ -56,7 +56,12 @@ module Jekyll
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
def bibliography
|
|
59
|
-
@bibliography
|
|
59
|
+
unless @bibliography
|
|
60
|
+
@bibliography = BibTeX.open(bibtex_path, bibtex_options)
|
|
61
|
+
@bibliography.replace_strings if replace_strings?
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
@bibliography
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
def entries
|
|
@@ -70,6 +75,10 @@ module Jekyll
|
|
|
70
75
|
b
|
|
71
76
|
end
|
|
72
77
|
|
|
78
|
+
def replace_strings?
|
|
79
|
+
config['replace_strings']
|
|
80
|
+
end
|
|
81
|
+
|
|
73
82
|
def cited_only?
|
|
74
83
|
!!@cited
|
|
75
84
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-scholar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
110
|
version: 1.3.6
|
|
111
111
|
requirements: []
|
|
112
112
|
rubyforge_project: jekyll-scholar
|
|
113
|
-
rubygems_version: 2.0.
|
|
113
|
+
rubygems_version: 2.0.14
|
|
114
114
|
signing_key:
|
|
115
115
|
specification_version: 4
|
|
116
116
|
summary: Jekyll extensions for the academic blogger.
|
|
@@ -125,4 +125,3 @@ test_files:
|
|
|
125
125
|
- features/step_definitions/jekyll_steps.rb
|
|
126
126
|
- features/step_definitions/scholar_steps.rb
|
|
127
127
|
- features/support/env.rb
|
|
128
|
-
has_rdoc:
|