From bc6ec962fcc21989d0b6ad4815cdc720cdf475fe Mon Sep 17 00:00:00 2001 From: Olivier Jacques Date: Mon, 27 Mar 2023 22:21:40 +0200 Subject: [PATCH] Fix path for Windows users --- mkdocs_git_committers_plugin_2/plugin.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mkdocs_git_committers_plugin_2/plugin.py b/mkdocs_git_committers_plugin_2/plugin.py index b4739dc..b711154 100644 --- a/mkdocs_git_committers_plugin_2/plugin.py +++ b/mkdocs_git_committers_plugin_2/plugin.py @@ -59,6 +59,7 @@ def on_config(self, config): def list_contributors(self, path): last_commit_date = "" + path = path.replace("\\", "/") for c in Commit.iter_items(self.localrepo, self.localrepo.head, path): if not last_commit_date: # Use the last commit and get the date diff --git a/setup.py b/setup.py index c322b57..be6aca6 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='mkdocs-git-committers-plugin-2', - version='1.1.1', + version='1.1.2', description='An MkDocs plugin to create a list of contributors on the page', long_description='The git-committers plugin will seed the template context with a list of github committers and other useful GIT info such as last modified date', keywords='mkdocs pdf github',