# mdbook-github-authors
----------------------------------------------------------------------------------------
[](https://github.com/VectorInstitute/mdbook-github-authors/actions/workflows/lint.yml)
[](https://github.com/VectorInstitute/mdbook-github-authors/actions/workflows/test_docs.yml)
[](https://github.com/VectorInstitute/mdbook-github-authors/actions/workflows/test.yml)



A preprocessor for [mdbook](https://rust-lang.github.io/mdBook/) that creates
chapter-level contributor sections featuring authors' GitHub profiles.
## Installation
```bash
cargo install mdbook-github-authors
```
## Usage
1. Add to your `book.toml`:
```toml
[preprocessor.github-authors]
command = "mdbook-github-authors"
```
1. Add contributors/authors using these helpers in your markdown:
```markdown
{{#author username}}
{{#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
```markdown
# My Chapter
Content here...
{{#authors rust-lang,contributors}}
```
Will render as:
<img width="924" alt="image" src="https://github.com/user-attachments/assets/c0018fc9-eb1e-4901-a780-ca1d31d449de" />