0.0
No commit activity in last 3 years
No release in over 3 years
BibTeX data source for nanoc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 2.0

Runtime

 Project Readme

About

Thanks to this gem, you can use BibTeX files as a data source for the static site compiler nanoc.

Installation

First, install the nanoc-bibtex gem:

$ gem install nanoc-bibtex

Then, load the data source on start by including this line in lib/default.rb:

require 'nanoc/data_sources/bibtex_data_source'

Usage

Modify your config.yaml to include your data source:

data_sources:
  -
    type: filesystem_unified
    items_root: /
    layouts_root: /
  -
    type: bibtex
    items_root: /publications
    config:
      path: assets/publications/
      exclude:
        - abstract

The above example configures your site with an additional bibtex data source. It will load the entries of each BibTeX file in the folder assets/publications as items whose path will be /publications/{citation_key}.

The fields of each item will contain the values of the corresponding BibTeX entry. The raw contents of this item will be the BibTeX entry, excluding the abstract field.