Feature: PDF Repository As a scholar who likes to blog I want to publish my BibTeX bibliography on my blog And I want Jekyll to generate links to PDFs of my references automatically @repository Scenario: A bibliography with a single entry and a repository Given I have a scholar configuration with: | key | value | | source | ./_bibliography | | repository | papers | | bibliography_template | bibliography | 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 "papers" directory And I have a file "papers/ruby.pdf": """ The PDF """ And I have a file "papers/ruby.ppt": """ The PPT """ And I have a "_layouts" directory And I have a file "_layouts/bibliography.html": """ --- --- {{ reference }} Link: {{ link }} Slides: {{ links.ppt }} """ And I have a page "scholar.html": """ --- --- {% bibliography %} """ When I run jekyll Then the _site directory should exist And the "_site/papers/ruby.pdf" file should exist And I should see "The Ruby Programming Language" in "_site/scholar.html" And I should see "Link: /papers/ruby.pdf" in "_site/scholar.html" And I should see "Slides: /papers/ruby.ppt" in "_site/scholar.html"
https://git.uwaterloo.ca/caesr-pub/jekyll-scholar/raw/bb66d532aa55df89cd43c41dc39666c6a42e6209/features/repository.feature?inline=false
git.uwaterloo.ca
crawl=CC-MAIN-2020-24
2317
application/http; msgtype=response
sha1:7BT5ZNDY5NFGEN72A5PQ3ZMBDWCL4UFJ
<urn:uuid:9aa649fa-bc26-4853-890d-1aeeaa4c4c6c>
2020-05-27T16:31:01Z
129.97.83.4
text/plain
sha1:B6HM6LISBT66UNK63DFOVYAYBBGB3DJJ
<urn:uuid:a49ea244-bf8a-4ff6-8ded-a32a6e36627e>
https://git.uwaterloo.ca/caesr-pub/jekyll-scholar/raw/bb66d532aa55df89cd43c41dc39666c6a42e6209/features/repository.feature?inline=false
response
<urn:uuid:776b1064-a80d-4066-b065-4955861b33fd>
isPartOf: CC-MAIN-2020-24
publisher: Common Crawl
description: Wide crawl of the web for May/June 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-190.ec2.internal
software: Apache Nutch 1.16 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/