Skip to content

Commit

Permalink
Switch to committers_source in the context
Browse files Browse the repository at this point in the history
  • Loading branch information
ojacques committed Nov 4, 2023
1 parent e3d5474 commit d9cd87a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mkdocs_git_committers_plugin_2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def on_config(self, config):
if self.config['gitlab_repository']:
LOG.error("git-committers plugin: GitLab API requires a token. Set it under 'token' mkdocs.yml config or MKDOCS_GIT_COMMITTERS_APIKEY environment variable.")
else:
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.")
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.")
self.localrepo = Repo(".")
self.branch = self.config['branch']
self.excluded_pages = self.config['exclude']
Expand Down Expand Up @@ -193,9 +193,9 @@ def on_page_context(self, context, page, config, nav):
if last_commit_date:
context['last_commit_date'] = last_commit_date
if not self.config['gitlab_repository']:
context['committers-source'] = 'github'
context['committers_source'] = 'github'
else:
context['committers-source'] = 'gitlab'
context['committers_source'] = 'gitlab'
end = timer()
self.total_time += (end - start)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="mkdocs-git-committers-plugin-2",
version="2.2.1",
version="2.2.2",
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",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit d9cd87a

Please sign in to comment.