jekyll-scholar 6.4.0 → 6.5.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 +4 -4
- data/features/bibtex.feature +49 -0
- data/lib/jekyll/scholar/utilities.rb +2 -0
- data/lib/jekyll/scholar/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53ccd7ae4c52e39622c5a4ce64c67c73472112109c4267eac20197f3a2fb23cb
|
|
4
|
+
data.tar.gz: 603f2df7070fff4b90ffee8716a28bb79dfd647a28b9619e2d83ce29ef2caad2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbaae7c9b3b7cd088466e5e6871e07d469abbdb126cfa0e72726d96075dc434cebbc8872c2b15730fcbb767ff9b97ad1da1be1c1373d8f098d52d1199b5ab951
|
|
7
|
+
data.tar.gz: ea232359c182161f33024c5922aeadc33db78c5c5b65b198a3d04b0b9cc5952521f034801defa51e673fe03bcb7d0e44cb324ab58f76b7a10e027c2679772c88
|
data/features/bibtex.feature
CHANGED
|
@@ -589,3 +589,52 @@ Feature: BibTeX
|
|
|
589
589
|
Then the _site directory should exist
|
|
590
590
|
And the "_site/test.html" file should exist
|
|
591
591
|
And I should see "L’image de l’empereur en Gaule romaine" in "_site/test.html"
|
|
592
|
+
And I should see "Paris" in "_site/test.html"
|
|
593
|
+
|
|
594
|
+
Scenario: Simple Bibliography With Custom Template and Double Braces
|
|
595
|
+
Given I have a scholar configuration with:
|
|
596
|
+
| key | value |
|
|
597
|
+
| source | ./_bibliography |
|
|
598
|
+
| bibliography_template | <h1>{{entry.title}}</h1> |
|
|
599
|
+
And I have a "_bibliography" directory
|
|
600
|
+
And I have a file "_bibliography/references.bib":
|
|
601
|
+
"""
|
|
602
|
+
@misc{x,
|
|
603
|
+
title = {{No Escape}},
|
|
604
|
+
year = {2019}
|
|
605
|
+
}
|
|
606
|
+
"""
|
|
607
|
+
And I have a page "scholar.html":
|
|
608
|
+
"""
|
|
609
|
+
---
|
|
610
|
+
---
|
|
611
|
+
{% bibliography %}
|
|
612
|
+
"""
|
|
613
|
+
When I run jekyll
|
|
614
|
+
Then the _site directory should exist
|
|
615
|
+
And the "_site/scholar.html" file should exist
|
|
616
|
+
And I should see "<h1>No Escape</h1>" in "_site/scholar.html"
|
|
617
|
+
|
|
618
|
+
Scenario: Simple Bibliography With Custom Template and Raw BibTeX
|
|
619
|
+
Given I have a scholar configuration with:
|
|
620
|
+
| key | value |
|
|
621
|
+
| source | ./_bibliography |
|
|
622
|
+
| bibliography_template | <pre>{{entry.raw_bibtex}}</pre> |
|
|
623
|
+
And I have a "_bibliography" directory
|
|
624
|
+
And I have a file "_bibliography/references.bib":
|
|
625
|
+
"""
|
|
626
|
+
@misc{x,
|
|
627
|
+
title = {{No Escape}},
|
|
628
|
+
year = {2019}
|
|
629
|
+
}
|
|
630
|
+
"""
|
|
631
|
+
And I have a page "scholar.html":
|
|
632
|
+
"""
|
|
633
|
+
---
|
|
634
|
+
---
|
|
635
|
+
{% bibliography %}
|
|
636
|
+
"""
|
|
637
|
+
When I run jekyll
|
|
638
|
+
Then the _site directory should exist
|
|
639
|
+
And the "_site/scholar.html" file should exist
|
|
640
|
+
And I should see "{{No Escape}}" in "_site/scholar.html"
|
|
@@ -570,6 +570,8 @@ module Jekyll
|
|
|
570
570
|
e['bibtex'] = tmp.to_s({ quotes: config['bibtex_quotes'] })
|
|
571
571
|
end
|
|
572
572
|
|
|
573
|
+
e['raw_bibtex'] = "{%raw%}#{e['bibtex']}{%endraw%}"
|
|
574
|
+
|
|
573
575
|
entry.fields.each do |key, value|
|
|
574
576
|
value = value.convert(*bibtex_filters) unless bibtex_filters.empty?
|
|
575
577
|
e[key.to_s] = value.to_s
|
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: 6.
|
|
4
|
+
version: 6.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
148
148
|
- !ruby/object:Gem::Version
|
|
149
149
|
version: 1.3.6
|
|
150
150
|
requirements: []
|
|
151
|
-
rubygems_version: 3.0.
|
|
151
|
+
rubygems_version: 3.0.3
|
|
152
152
|
signing_key:
|
|
153
153
|
specification_version: 4
|
|
154
154
|
summary: Jekyll extensions for the academic blogger.
|