Skip to content

Commit 832ac61

Browse files
authored
Adds all contributors to author section of bibtex (#3854)
1 parent 6b56045 commit 832ac61

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/config/contributors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2423,7 +2423,7 @@
24232423
"avatar_url": "1416158",
24242424
"github": "katekalcevich",
24252425
"linkedin": "katekalcevich",
2426-
"name": "Kate Kalcevich ",
2426+
"name": "Kate Kalcevich",
24272427
"teams": {
24282428
"2024": [
24292429
"reviewers"

src/templates/base/base_chapter.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,17 @@ <h2 id="cite">
344344
<summary>BibTeX</summary>
345345
<pre id="bibtex-citation">
346346
@inbook{WebAlmanac.{{ year }}.{{ metadata.get('title').replace(' ', '') }},
347-
author = "{% for author in metadata.get('authors') -%}
347+
author = "{% set contributors = metadata.get('authors') -%}
348+
{%- if metadata.get('reviewers') and metadata.get('reviewers') | length >=1 -%}
349+
{%- set contributors = contributors + metadata.get('reviewers') -%}
350+
{%- endif -%}
351+
{%- if metadata.get('analysts') and metadata.get('analysts') | length >=1 -%}
352+
{%- set contributors = contributors + metadata.get('analysts') -%}
353+
{%- endif -%}
354+
{%- if metadata.get('editors') and metadata.get('editors') | length >=1 -%}
355+
{%- set contributors = contributors + metadata.get('editors') -%}
356+
{%- endif -%}
357+
{%- for author in contributors|unique -%}
348358
{%- set authordata = config.contributors.get(author, None) -%}
349359
{%- if authordata %}
350360
{%- set full_name = authordata.name.split(' ') -%}

0 commit comments

Comments
 (0)