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
da81bbb3
Commit
da81bbb3
authored
May 10, 2015
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure months are parsed to symbols
see #82
parent
77028080
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
features/details.feature
features/details.feature
+24
-0
features/step_definitions/scholar_steps.rb
features/step_definitions/scholar_steps.rb
+8
-0
No files found.
features/details.feature
View file @
da81bbb3
...
...
@@ -184,3 +184,27 @@ Feature: Details
And
the
"_site/scholar/index.html"
file should exist
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
Scenario
:
Months are parsed by default
Given I have a scholar configuration with
:
|
key
|
value
|
|
details_layout
|
details.html
|
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 = aug"
in
"_site/bibliography/august.html"
features/step_definitions/scholar_steps.rb
View file @
da81bbb3
...
...
@@ -18,6 +18,14 @@ Given(/^I have a scholar configuration with:$/) do |table|
end
end
Given
(
/^I have the following BibTeX options:$/
)
do
|
table
|
File
.
open
(
'_config.yml'
,
'a'
)
do
|
f
|
f
.
write
(
" bibtex_options:
\n
"
)
table
.
hashes
.
each
do
|
row
|
f
.
write
(
"
#{
row
[
"key"
]
}
:
#{
row
[
"value"
]
}
\n
"
)
end
end
end
Then
(
/^"(.*)" should come before "(.*)" in "(.*)"$/
)
do
|
p1
,
p2
,
file
|
data
=
File
.
open
(
file
).
readlines
.
join
(
''
)
...
...
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