Commit 3e47db7b authored by Sylvester Keil's avatar Sylvester Keil

whitespace

parent 10db3ab9
...@@ -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"
...@@ -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"
...@@ -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"
...@@ -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"