Skip to content

Commit

Permalink
Ajout des contributeurs/rices en base de chaque page - Merge #13 from…
Browse files Browse the repository at this point in the history
… geotribu/page-authors
  • Loading branch information
Guts authored Mar 28, 2020
2 parents 2d2cd9f + 5e013ce commit be5003b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/theme/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "base.html" %}

{% block disqus %}
<div class="md-source-date">
<small>
Contributions à cette page : {{ git_authors_summary }}
</small>
</div>
{% include "partials/integrations/disqus.html" %}
{% endblock %}
3 changes: 3 additions & 0 deletions src/mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ site_dir: '../../build/mkdocs/site'
# Plugins
plugins:
- awesome-pages
- git-authors:
show_contribution: true
- git-revision-date-localized:
fallback_to_build_date: true
- minify:
Expand All @@ -27,6 +29,7 @@ plugins:
# Theme
theme:
name: 'material'
custom_dir: '../../content/theme/'
feature:
tabs: true
font: false
Expand Down
1 change: 1 addition & 0 deletions src/mkdocs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# -----------------------

mkdocs-awesome-pages-plugin==2.2.*
mkdocs-git-authors-plugin==0.2.*
mkdocs-git-revision-date-localized-plugin==0.5.*
mkdocs-material==4.6.*
mkdocs-minify-plugin==0.2.*
Expand Down

0 comments on commit be5003b

Please sign in to comment.