jekyll-scholar 6.8.0 → 6.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/features/page_config.feature +30 -0
- data/lib/jekyll/scholar/utilities.rb +2 -1
- 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: c9346570d30eece29b417704f8763a9469f87102f032e935eac75d9ad210fdcc
|
4
|
+
data.tar.gz: 477d15d2b49bca506ce249391bc4aef547a5ed1da6d20d4a1cbb93d48e264cd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 762c7394574ee27561d12e6a7d70a2c52994e79faffc7ea055cad29fd0f44e281b35dbf4545e7791ce92b6255c4ee766bb6c1a4f2500e87798f1b9625ead1466
|
7
|
+
data.tar.gz: '009e6399ff632b7e92a2676aedec967c586b2c2dd46fdf16f78094a4edf0d066d26834633b7f715f998239f360b6bd8eb601840081cec5c3bffc8fd4e5a58557'
|
data/README.md
CHANGED
@@ -53,10 +53,10 @@ configuration:
|
|
53
53
|
|
54
54
|
In your Jekyll configuration file you can adjust the Jekyll-Scholar settings
|
55
55
|
using the `scholar` key. For example, the following sets the bibliography style
|
56
|
-
to `
|
56
|
+
to `modern-language-association`.
|
57
57
|
|
58
58
|
scholar:
|
59
|
-
style:
|
59
|
+
style: modern-language-association
|
60
60
|
|
61
61
|
The table below describes some commonly used configuration options. For a
|
62
62
|
description of all options and their defaults, see
|
@@ -64,7 +64,7 @@ description of all options and their defaults, see
|
|
64
64
|
|
65
65
|
| Option | Default | Description |
|
66
66
|
|--------|---------|-------------|
|
67
|
-
| `style` | `apa` | Indicates the style used for the bibliography and citations. You can use any style that ships with [CiteProc-Ruby](https://github.com/inukshuk/citeproc-ruby) by name (e.g., apa,
|
67
|
+
| `style` | `apa` | Indicates the style used for the bibliography and citations. You can use any style that ships with [CiteProc-Ruby](https://github.com/inukshuk/citeproc-ruby) by name (e.g., apa, chicago-fullnote-bibliography) which is usually the filename as seen [here](https://github.com/citation-style-language/styles) without the `.csl` ending; note that you have to use `dependent/style` if you want to use one from that directory. Alternatively you can add a link to any CSL style (e.g., you could link to any of the styles available at the official [CSL style repository](https://github.com/citation-style-language/styles)). |
|
68
68
|
| `locale` | `en` | Defines what language to use when formatting your references (this typically applies to localized terms, e.g., 'Eds.' for editors in English). |
|
69
69
|
| `source` | `./_bibliography` | Indicates where your bibliographies are stored. |
|
70
70
|
| `bibliography` | `references.bib` | Indicates the name of your default bibliography. For best results, please ensure that your bibliography is encoded as ASCII or UTF-8. A string that contains a `*` will be passed to `Dir::glob`, so `**/*.bib{,tex}` will find all files named `*.bib` and `*.bibtex` under `source`. |
|
@@ -40,3 +40,33 @@ Feature: Page Configuration
|
|
40
40
|
And I should see "The Ruby Programming Language" in "_site/scholar.html"
|
41
41
|
And I should not see "Programming Ruby" in "_site/scholar.html"
|
42
42
|
|
43
|
+
|
44
|
+
@tags
|
45
|
+
Scenario: Template access to page config
|
46
|
+
Given I have a scholar configuration with:
|
47
|
+
| key | value |
|
48
|
+
| source | ./_bibliography |
|
49
|
+
| bibliography_template | <p>{{page.scholar.x}}</p> |
|
50
|
+
And I have a "_bibliography" directory
|
51
|
+
And I have a file "_bibliography/references.bib":
|
52
|
+
"""
|
53
|
+
@book{ruby,
|
54
|
+
title = {The Ruby Programming Language},
|
55
|
+
author = {Flanagan, David and Matsumoto, Yukihiro},
|
56
|
+
year = {2008},
|
57
|
+
publisher = {O'Reilly Media}
|
58
|
+
}
|
59
|
+
"""
|
60
|
+
And I have a page "scholar.html":
|
61
|
+
"""
|
62
|
+
---
|
63
|
+
scholar:
|
64
|
+
x: Asa-Nisi-Masa
|
65
|
+
---
|
66
|
+
{% bibliography %}
|
67
|
+
"""
|
68
|
+
When I run jekyll
|
69
|
+
Then the _site directory should exist
|
70
|
+
And the "_site/scholar.html" file should exist
|
71
|
+
And I should see "<p>Asa-Nisi-Masa</p>" in "_site/scholar.html"
|
72
|
+
|
@@ -527,10 +527,11 @@ module Jekyll
|
|
527
527
|
.merge(site.site_payload)
|
528
528
|
.merge({
|
529
529
|
'index' => index,
|
530
|
+
'page' => context.registers[:page],
|
530
531
|
'details' => details_link_for(entry)
|
531
532
|
}),
|
532
533
|
{
|
533
|
-
:registers =>
|
534
|
+
:registers => context.registers,
|
534
535
|
:filters => [Jekyll::Filters]
|
535
536
|
})
|
536
537
|
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: 6.8.
|
4
|
+
version: 6.8.1
|
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: 2021-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: 1.3.6
|
152
152
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.2.3
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Jekyll extensions for the academic blogger.
|