You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-18Lines changed: 39 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,25 +39,29 @@ plugins:
39
39
40
40
## Usage
41
41
42
+
### In supported themes
43
+
44
+
no supported themes *yet*.
45
+
42
46
### In markdown pages
43
47
44
-
You can use ``{{ git_authors_summary }}`` to insert a summary of the authors of a page. Authors are sorted by their name and have a `mailto:` link with their email.
48
+
You can use the following jinja tags to insert content into your markdown pages:
45
49
46
-
An example output:
50
+
- ``{{ git_page_authors }}`` a summary of the authors of a page. Output wrapped in `<span class='git-page-authors'>`
51
+
- ``{{ git_site_authors }}`` a summary of all authors of all pages in your site. Output wrapped in `<span class='git-site-authors'>`
52
+
53
+
For example, adding ``{{ git_page_authors }}`` will insert:
[MkDocs](https://www.mkdocs.org/) offers possibilities to [customize an existing theme](https://www.mkdocs.org/user-guide/styling-your-docs/#customizing-a-theme).
63
67
@@ -71,7 +75,7 @@ As an example, if you use [mkdocs-material](https://github.com/squidfunk/mkdocs-
71
75
{% block disqus %}
72
76
<div class="md-source-date">
73
77
<small>
74
-
Authors: {{ git_authors_summary }}
78
+
Authors: {{ git_page_authors }}
75
79
</small>
76
80
</div>
77
81
{% include "partials/integrations/disqus.html" %}
@@ -88,46 +92,53 @@ theme:
88
92
89
93
### In theme templates
90
94
91
-
To add more detailed author information to your theme you can [customize a MkDocs theme](https://www.mkdocs.org/user-guide/styling-your-docs/#customizing-a-theme) or even [develop your own](https://www.mkdocs.org/user-guide/custom-themes/). When enabling this plugin, you will have access to the jinja2 variable `git_authors`, which contains a list of authors dicts, like the following example:
95
+
To add more detailed git author information to your theme you can [customize a MkDocs theme](https://www.mkdocs.org/user-guide/styling-your-docs/#customizing-a-theme) or even [develop your own](https://www.mkdocs.org/user-guide/custom-themes/).
96
+
97
+
When enabling this plugin, you will have access to the jinja2 variable `git_info` which contains as dict with the following structure:
0 commit comments