mkdocs-git-authors-plugin icon indicating copy to clipboard operation
mkdocs-git-authors-plugin copied to clipboard

Use docs_dir instead of current working directory to find .git folder

Open timvink opened this issue 4 years ago • 3 comments

Some users have their .git folder inside the docs/ folder. Good to start from there and recursively look up.

We need to ensure (or raise instructional error) that this plugin is defined in mkdocs.yml before the mkdocs-monorepo-plugin, because that plugin alters the docs_dir location. See similar issue https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/34 for details

timvink avatar Jun 05 '20 18:06 timvink

Does there exist a workaround for this scenario? I have exactly that situation (git repo being in the docs folder) and it seems that this functionality once existed but was removed to avoid confusion with the monorepo plugin?

Many thanks!

frapit avatar Apr 20 '22 10:04 frapit

Not yet -- I need to pick up this issue. Quite busy with other personal stuff, but definitely on my backlog!

timvink avatar May 13 '22 18:05 timvink

Sorry if I'm asking the obvious: Does this mean we currently cannot use git-authors in conjunction with monorepo (and git submodules)? Or is there a workaround?

For me, placing git-authors before monorepo did not help: I don't get any authorship from submodules.

gluc avatar May 28 '23 12:05 gluc