mdbook-bibfile-referencing

Crates.iomdbook-bibfile-referencing
lib.rsmdbook-bibfile-referencing
version0.3.0
sourcesrc
created_at2021-07-30 20:14:42.001984
updated_at2022-12-11 17:53:43.872696
descriptionAn mdBook preprocessor to add bibfile referencing to each page
homepagehttps://github.com/jacob-pro/mdbook-bibfile-referencing
repositoryhttps://github.com/jacob-pro/mdbook-bibfile-referencing
max_upload_size
id429409
size87,473
Jacob Halsey (jacob-pro)

documentation

README

mdBook Bibfile Referencing

Build status crates.io

An mdBook preprocessor that uses Pandoc to add referencing to each chapter from a bibfile.

Usage

In your book.toml just specify:

[preprocessor.bibliography]
command = "mdbook-bibfile-referencing bibliography.bib ieee.csl"

You must include the path to the bibliography, followed by the path to your CSL (Citation Style Language) file which defines the style of the generated references (you can download pre-made ones here).

In each chapter of your book markdown source you can use the references in the format [@key, PAGE_NUMBER] - see the Pandoc Citeproc Docs for the full syntax.

Install

Make sure you have Pandoc Installed.

cargo install mdbook-bibfile-referencing

Usage in CI/CD

There is a docker image: ghcr.io/jacob-pro/mdbook-bibfile-referencing:latest provided to make it simple and fast to build an mdbook in a CI system. For example in GitHub Actions you could have:

jobs:
  deploy:
    runs-on: ubuntu-18.04
    container:
      image: ghcr.io/jacob-pro/mdbook-bibfile-referencing:latest
    steps:
      - uses: actions/checkout@v2
      - name: Build book
        run: mdbook build
Commit count: 32

cargo fmt