Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
J
jekyll-scholar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caesr-pub
jekyll-scholar
Commits
4fde5648
Commit
4fde5648
authored
May 10, 2015
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bibtex options
see #82
parent
da81bbb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
features/details.feature
features/details.feature
+28
-1
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+2
-1
No files found.
features/details.feature
View file @
4fde5648
...
...
@@ -185,7 +185,7 @@ Feature: Details
And
I should see
"<a[^>]+href=\"
/bibliography/ruby/index.html\">" in
"_site/scholar/index.html"
And
the
"_site/bibliography/ruby/index.html"
file should exist
@generators
@parse_months
@wip
@generators
@parse_months
Scenario
:
Months are parsed by default
Given I have a scholar configuration with
:
|
key
|
value
|
...
...
@@ -208,3 +208,30 @@ Feature: Details
Then
the _site directory should exist
And
the
"_site/bibliography/august.html"
file should exist
And
I should see
"month = aug"
in
"_site/bibliography/august.html"
@generators
@parse_months
@wip
Scenario
:
Month parsing can be turned off
Given I have a scholar configuration with
:
|
key
|
value
|
|
details_layout
|
details.html
|
And I have the following BibTeX options
:
|
key
|
value
|
|
parse_months
|
false
|
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
"""
@book{august,
month = {August}
}
"""
And
I have a
"_layouts"
directory
And I have a file "_layouts/details.html"
:
"""
---
---
{{ page.entry.bibtex }}
"""
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/bibliography/august.html"
file should exist
And
I should see
"month = {August}"
in
"_site/bibliography/august.html"
lib/jekyll/scholar/utilities.rb
View file @
4fde5648
...
...
@@ -95,7 +95,8 @@ module Jekyll
end
def
bibtex_options
config
[
'bibtex_options'
]
||=
{}
@bibtex_options
||=
(
config
[
'bibtex_options'
]
||
{}).
symbolize_keys
end
def
bibtex_filters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment