Skip to content

Commit 894d0c4

Browse files
authored
Merge branch 'master' into show-contribution-new
2 parents d1b19e8 + 98873fa commit 894d0c4

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Make sure to install an editable version before running tests:
99
```python
1010
pip install -r tests/test_requirements.txt
1111
pip install -e .
12-
pytest --cov=mkdocs_git_authors_plugin --cov-report term-missing test
12+
pytest --cov=mkdocs_git_authors_plugin --cov-report term-missing tests
1313
```
1414

1515
In addition, this project uses pyflakes for static code checking:
@@ -31,4 +31,4 @@ Make sure your code follows [PEP-8](https://www.python.org/dev/peps/pep-0008/) a
3131

3232
#### Tests
3333

34-
If it makes sense, writing tests for your PRs is always appreciated and will help get them merged.
34+
If it makes sense, writing tests for your PRs is always appreciated and will help get them merged.

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Which renders as:
5353

5454
### In theme templates
5555

56-
In theme templates you will have access to the jinja2 variable `git_authors`, which contains a list of authors dicts, like the following example:
56+
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:
5757

5858
```python
5959
[{
@@ -99,3 +99,20 @@ Example output:
9999
* Authors: [John Doe](#) (33.33%), [Jane Doe](#) (66.67%) *(more than one author)*
100100
* Authors: [John Doe](#) *(one author)*
101101

102+
### Aggregating Authors
103+
104+
In some repositories authors may have committed with differing name/email combinations.
105+
In order to prevent the output being split it is possible to aggregate authors on
106+
arbitrary elements by providing a file `.mailmap` in the repository's root directory.
107+
This is a feature of Git itself. The following example will aggregate the contributions
108+
of Jane Doe committed under two email addresses:
109+
110+
```
111+
# .mailmap
112+
113+
```
114+
115+
This will map commits made with the `private-email.com` to the company address. For more details
116+
and further options (e.g. mapping between different names or misspellings etc. see the
117+
[git-blame documentation](https://git-scm.com/docs/git-blame#_mapping_authors).
118+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
author='Tim Vink',
1515
author_email='[email protected]',
1616
license='MIT',
17-
python_requires='>=3.4',
17+
python_requires='>=3.5',
1818
classifiers=[
1919
"Programming Language :: Python :: 3",
2020
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)