Skip to content

Commit f6ba3a0

Browse files
adding git contributors
1 parent 9d35ec3 commit f6ba3a0

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,10 @@ plugins:
637637
strict: false
638638
exclude:
639639
- index.md
640+
- git-authors:
641+
show_contribution: true
642+
exclude:
643+
- index.md
640644

641645
validation:
642646
absolute_links: ignore

overrides/main.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{% extends "base.html" %}
22

3+
{% block content %}
4+
{{ super() }}
5+
6+
{% if git_page_authors %}
7+
<div class="md-source-date">
8+
<small>
9+
Authors: {{ git_page_authors | default('enable mkdocs-git-authors-plugin') }}
10+
</small>
11+
</div>
12+
{% endif %}
13+
{% endblock %}
14+
315
{% block scripts %}
416
{{ super() }}
517

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ mkdocs-material==9.5.1
22
markdown-include==0.8.1
33
mkdocs-git-revision-date-localized-plugin==1.2.1
44
mkdocs-open-in-new-tab==1.0.3
5+
mkdocs-git-authors-plugin==0.7.2

0 commit comments

Comments
 (0)