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
3e47db7b
Commit
3e47db7b
authored
Apr 05, 2013
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
10db3ab9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
438 additions
and
438 deletions
+438
-438
features/bibtex.feature
features/bibtex.feature
+136
-136
features/citation.feature
features/citation.feature
+98
-98
features/cite_details.feature
features/cite_details.feature
+48
-48
features/details.feature
features/details.feature
+67
-67
features/filter.feature
features/filter.feature
+32
-32
features/sorting.feature
features/sorting.feature
+57
-57
No files found.
features/bibtex.feature
View file @
3e47db7b
...
@@ -4,156 +4,156 @@ Feature: BibTeX
...
@@ -4,156 +4,156 @@ Feature: BibTeX
In order to share my awesome references with my peers
In order to share my awesome references with my peers
@converters
@converters
Scenario
:
Simple Bibliography
Scenario
:
Simple Bibliography
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
style
|
apa
|
|
style
|
apa
|
And I have a page "references.bib"
:
And I have a page "references.bib"
:
"""
"""
---
---
---
---
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/references.html"
file should exist
And
the
"_site/references.html"
file should exist
And
I should see
"<i>The Ruby Programming Language</i>"
in
"_site/references.html"
And
I should see
"<i>The Ruby Programming Language</i>"
in
"_site/references.html"
@converters
@converters
Scenario
:
Markdown Formatted Bibliography
Scenario
:
Markdown Formatted Bibliography
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
style
|
apa
|
|
style
|
apa
|
And I have a page "references.bib"
:
And I have a page "references.bib"
:
"""
"""
---
---
---
---
References
References
==========
==========
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
When
I run jekyll
When
I run jekyll
Then
I should see
"<h1[^>]*>References</h1>"
in
"_site/references.html"
Then
I should see
"<h1[^>]*>References</h1>"
in
"_site/references.html"
@latex
@latex
Scenario
:
Simple Bibliography with LaTeX directives
Scenario
:
Simple Bibliography with LaTeX directives
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
style
|
apa
|
|
style
|
apa
|
And I have a page "references.bib"
:
And I have a page "references.bib"
:
"""
"""
---
---
---
---
@misc{umlaut,
@misc{umlaut,
title = {Look, an umlaut: \"u!},
title = {Look, an umlaut: \"u!},
}
}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/references.html"
file should exist
And
the
"_site/references.html"
file should exist
And I should see "Look, an umlaut
:
ü!"
in
"_site/references.html"
And I should see "Look, an umlaut
:
ü!"
in
"_site/references.html"
@tags
@tags
Scenario
:
Simple Bibliography Loaded From Default Directory
Scenario
:
Simple Bibliography Loaded From Default Directory
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
And I have a file "_bibliography/references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% bibliography -f references %}
{% bibliography -f references %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"<i>The Ruby Programming Language</i>"
in
"_site/scholar.html"
And
I should see
"<i>The Ruby Programming Language</i>"
in
"_site/scholar.html"
@tags
@filter
@tags
@filter
Scenario
:
Filtered Bibliography Loaded From Default Directory
Scenario
:
Filtered Bibliography Loaded From Default Directory
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
And I have a file "_bibliography/references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
},
},
@book{smalltalk,
@book{smalltalk,
title = {Smalltalk Best Practice Patterns},
title = {Smalltalk Best Practice Patterns},
author = {Kent Beck},
author = {Kent Beck},
year = {1996},
year = {1996},
publisher = {Prentice Hall}
publisher = {Prentice Hall}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% bibliography -f references --query @book[year <= 2000] %}
{% bibliography -f references --query @book[year <= 2000] %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should not see
"<i>The Ruby Programming Language</i>"
in
"_site/scholar.html"
And
I should not see
"<i>The Ruby Programming Language</i>"
in
"_site/scholar.html"
And
I should see
"<i>Smalltalk Best Practice Patterns</i>"
in
"_site/scholar.html"
And
I should see
"<i>Smalltalk Best Practice Patterns</i>"
in
"_site/scholar.html"
@tags
@bibliography
@prefix
@tags
@bibliography
@prefix
Scenario
:
A
Prefixed Bibliography
Scenario
:
A
Prefixed Bibliography
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
And I have a file "_bibliography/references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
},
},
@book{smalltalk,
@book{smalltalk,
title = {Smalltalk Best Practice Patterns},
title = {Smalltalk Best Practice Patterns},
author = {Kent Beck},
author = {Kent Beck},
year = {1996},
year = {1996},
publisher = {Prentice Hall}
publisher = {Prentice Hall}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% bibliography --file references --prefix a -q @book[year <= 2000] %}
{% bibliography --file references --prefix a -q @book[year <= 2000] %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should not see
"ruby"
in
"_site/scholar.html"
And
I should not see
"ruby"
in
"_site/scholar.html"
And
I should see
"id=\"
a-smalltalk\"" in
"_site/scholar.html"
And
I should see
"id=\"
a-smalltalk\"" in
"_site/scholar.html"
features/citation.feature
View file @
3e47db7b
...
@@ -3,111 +3,111 @@ Feature: Citations
...
@@ -3,111 +3,111 @@ Feature: Citations
I want to reference cool papers and books from my bibliography
I want to reference cool papers and books from my bibliography
@tags @cite
@tags @cite
Scenario
:
A
Simple Citation
Scenario
:
A
Simple Citation
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
bibliography
|
my_references
|
|
bibliography
|
my_references
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/my_references.bib"
:
And I have a file "_bibliography/my_references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% cite ruby %}
{% cite ruby %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"Flanagan"
in
"_site/scholar.html"
And
I should see
"Flanagan"
in
"_site/scholar.html"
@tags
@cite
@tags
@cite
Scenario
:
Missing references
Scenario
:
Missing references
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
bibliography
|
my_references
|
|
bibliography
|
my_references
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/my_references.bib"
:
And I have a file "_bibliography/my_references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% cite java %}
{% cite java %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"missing reference"
in
"_site/scholar.html"
And
I should see
"missing reference"
in
"_site/scholar.html"
@tags
@quote
@tags
@quote
Scenario
:
A
Simple Block-Quote
Scenario
:
A
Simple Block-Quote
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
bibliography
|
my_references
|
|
bibliography
|
my_references
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/my_references.bib"
:
And I have a file "_bibliography/my_references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% quote ruby %}
{% quote ruby %}
We <3 Ruby
We <3 Ruby
{% endquote %}
{% endquote %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"<blockquote><p>We <3 Ruby</p><cite><a .*#ruby.+\(Flanagan"
in
"_site/scholar.html"
And
I should see
"<blockquote><p>We <3 Ruby</p><cite><a .*#ruby.+\(Flanagan"
in
"_site/scholar.html"
@tags
@cite
@tags
@cite
Scenario
:
A
prefixed citation
Scenario
:
A
prefixed citation
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
bibliography
|
my_references
|
|
bibliography
|
my_references
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/my_references.bib"
:
And I have a file "_bibliography/my_references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% cite ruby --prefix a %}
{% cite ruby --prefix a %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"#a-ruby"
in
"_site/scholar.html"
And
I should see
"#a-ruby"
in
"_site/scholar.html"
features/cite_details.feature
View file @
3e47db7b
...
@@ -3,55 +3,55 @@ Feature: Citations
...
@@ -3,55 +3,55 @@ Feature: Citations
I want to reference cool papers and books from my bibliography
I want to reference cool papers and books from my bibliography
@tags @cite_details
@tags @cite_details
Scenario
:
A
Simple Cite Details Link
Scenario
:
A
Simple Cite Details Link
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
bibliography
|
my_references
|
|
bibliography
|
my_references
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/my_references.bib"
:
And I have a file "_bibliography/my_references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% cite_details ruby %}
{% cite_details ruby %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"Details</a>"
in
"_site/scholar.html"
And
I should see
"Details</a>"
in
"_site/scholar.html"
@tags
@cite_details
@tags
@cite_details
Scenario
:
A
Simple Cite Details Link With A Text Argument
Scenario
:
A
Simple Cite Details Link With A Text Argument
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
bibliography
|
my_references
|
|
bibliography
|
my_references
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/my_references.bib"
:
And I have a file "_bibliography/my_references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And I have a page "scholar.html"
:
And I have a page "scholar.html"
:
"""
"""
---
---
---
---
{% cite_details ruby --text Click For More %}
{% cite_details ruby --text Click For More %}
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"Click For More</a>"
in
"_site/scholar.html"
And
I should see
"Click For More</a>"
in
"_site/scholar.html"
features/details.feature
View file @
3e47db7b
...
@@ -4,74 +4,74 @@ Feature: BibTeX
...
@@ -4,74 +4,74 @@ Feature: BibTeX
And I want Jekyll to generate detail pages for all the entries in my bibliography
And I want Jekyll to generate detail pages for all the entries in my bibliography
@generators
@generators
Scenario
:
A
bibliography with a single entry
Scenario
:
A
bibliography with a single entry
Given I have a scholar configuration with
:
Given I have a scholar configuration with
:
|
key
|
value
|
|
key
|
value
|
|
source
|
./_bibliography
|
|
source
|
./_bibliography
|
|
details_layout
|
details.html
|
|
details_layout
|
details.html
|
And
I have a
"_bibliography"
directory
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
And I have a file "_bibliography/references.bib"
:
"""
"""
@book{ruby,
@book{ruby,
title = {The Ruby Programming Language},
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
year = {2008},
publisher = {O'Reilly Media}
publisher = {O'Reilly Media}
}
}
"""
"""
And
I have a
"_layouts"
directory
And
I have a
"_layouts"
directory
And I have a file "_layouts/details.html"
:
And I have a file "_layouts/details.html"
:
"""
"""
---
---
---
---
<html>
<html>
<head></head>
<head></head>
<body>
<body>
{{ page.entry.title }}
{{ page.entry.title }}
</body>
</body>
</html>
</html>
"""
"""
When
I run jekyll
When
I run jekyll
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/bibliography/ruby.html"
file should exist
And
the
"_site/bibliography/ruby.html"
file should exist
And
I should see
"The Ruby Programming Language"
in
"_site/bibliography/ruby.html"
And
I should see
"The Ruby Programming Language"
in
"_site/bibliography/ruby.html"