Skip to content

Commit d9cd87a

Browse files
committed
Switch to committers_source in the context
1 parent e3d5474 commit d9cd87a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mkdocs_git_committers_plugin_2/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def on_config(self, config):
7575
if self.config['gitlab_repository']:
7676
LOG.error("git-committers plugin: GitLab API requires a token. Set it under 'token' mkdocs.yml config or MKDOCS_GIT_COMMITTERS_APIKEY environment variable.")
7777
else:
78-
LOG.warning("git-committers plugin may require a GitHub or GitLab token if you exceed the API rate limit or for private repositories. Set it under 'token' mkdocs.yml config or MKDOCS_GIT_COMMITTERS_APIKEY environment variable.")
78+
LOG.warning("git-committers plugin may require a GitHub token if you exceed the API rate limit or for private repositories. Set it under 'token' mkdocs.yml config or MKDOCS_GIT_COMMITTERS_APIKEY environment variable.")
7979
self.localrepo = Repo(".")
8080
self.branch = self.config['branch']
8181
self.excluded_pages = self.config['exclude']
@@ -193,9 +193,9 @@ def on_page_context(self, context, page, config, nav):
193193
if last_commit_date:
194194
context['last_commit_date'] = last_commit_date
195195
if not self.config['gitlab_repository']:
196-
context['committers-source'] = 'github'
196+
context['committers_source'] = 'github'
197197
else:
198-
context['committers-source'] = 'gitlab'
198+
context['committers_source'] = 'gitlab'
199199
end = timer()
200200
self.total_time += (end - start)
201201

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name="mkdocs-git-committers-plugin-2",
12-
version="2.2.1",
12+
version="2.2.2",
1313
description="An MkDocs plugin to create a list of contributors on the page. The git-committers plugin will seed the template context with a list of GitHub or GitLab committers and other useful GIT info such as last modified date",
1414
long_description=long_description,
1515
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)