#author #github #mdbook #preprocessor #profiles #contributors #page

bin+lib mdbook-github-authors

mdbook preprocessor to display Github profiles of authors of a page

2 releases

0.1.0 Feb 6, 2025

#670 in Text processing

Download history 278/week @ 2025-02-06

278 downloads per month

MIT license

25KB
296 lines

mdbook-github-authors


Lint Test Docs Test Lib GitHub License GitHub Release docs.rs

A preprocessor for mdbook that creates chapter-level contributor sections featuring authors' GitHub profiles.

Installation

cargo install mdbook-github-authors

Usage

  1. Add to your book.toml:
[preprocessor.github-authors]
command = "mdbook-github-authors"
  1. Add contributors/authors using these helpers in your markdown:
<!-- Single author -->
{{#author username}}

<!-- Multiple authors -->
{{#authors username1,username2,username3}}

[!NOTE] Rather than expanding in-place, this preprocessor adds a stylized Contributor section to the bottom of the Chapter, irrespective of where these author helpers are found in the raw markdown file.

The preprocessor will generate a "Contributors" section at the bottom of each chapter listing the GitHub profiles of specified authors.

Examples

# My Chapter

Content here...

{{#authors rust-lang,contributors}}

Will render as:

image

Dependencies

~12–24MB
~356K SLoC