Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
81921290
Commit
81921290
authored
Apr 30, 2012
by
Sylvester Keil
Browse files
added details link example
parent
1300ce70
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/details.feature
View file @
81921290
...
...
@@ -35,3 +35,43 @@ Feature: BibTeX
Then
the _site directory should exist
And
the
"_site/bibliography/ruby.html"
file should exist
And
I should see
"The Ruby Programming Language"
in
"_site/bibliography/ruby.html"
@tags
@details
Scenario
:
Links to Detail Pages are Generated Automatically
Given I have a scholar configuration with
:
|
key
|
value
|
|
source
|
./_bibliography
|
|
bibliogaphy
|
references
|
|
details_layout
|
details.html
|
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
"""
@book{ruby,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
"""
And
I have a
"_layouts"
directory
And I have a file "_layouts/details.html"
:
"""
---
---
<html>
<head></head>
<body>
{{ page.entry.title }}
</body>
</html>
"""
And I have a page "scholar.html"
:
"""
---
---
{% bibliography %}
"""
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"<a href=\"
/bibliography/ruby.html\">" in
"_site/scholar.html"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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