Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
jekyll-scholar
Commits
22d2c30a
Commit
22d2c30a
authored
Apr 22, 2012
by
Sylvester Keil
Browse files
added sort by year example
#1
parent
545be7fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
features/sorting.feature
features/sorting.feature
+25
-0
No files found.
features/sorting.feature
0 → 100644
View file @
22d2c30a
Feature
:
Sorting BibTeX Bibliographies
As a scholar who likes to blog
I want to sort my bibliographies according to configurable parameters
Scenario
:
Sort Bibliography by Year
Given
I have a configuration file with
"citation_sort_order"
set to
"year"
And I have a page "references.bib"
:
"""
---
---
@book{ruby,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
@book{ruby,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2007},
publisher = {O'Reilly Media}
}
"""
When
I run jekyll
And
I should see
"\(2007\)\.+\(2008\)"
in
"_site/references.html"
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