You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using mkdocstrings to generate the documentation for the projects source.
On-top I use mkdocs-gen-files and mkdocs-literate-nav plugins to auto generate the navigation for the documentation as described in the mkdocstrings documentation https://mkdocstrings.github.io/recipes/.
Unfortunately the git-authors plugin uses the generated file instead of the sources file to get the author. (This applies also to the mkdocs-git-revision-date-localized-plugin)
Is there any possibility to change the path on the fly to point to the source code files for the generated files?
Thanks for your help AND for this and the other wonderful plug-ins and your work.
Daniel
The text was updated successfully, but these errors were encountered:
Tricky topic, getting git info right when using generated files, that are based on a source file. If I somehow have more time, I want to solve all these problems in a new mkdocs-git-info-plugin. For now though, here's the an overview of the issue:
It's kind of similar to the problem I had with mkdocs-monorepo-plugin, where the same attribute had to be updated (backstage/mkdocs-monorepo-plugin#13), but this time the abs_src_path is probably correct.
Perhaps a better way is to add in mkdocs-gen-files-plugin (and other similar plugins that generate files) an additional attribute sourcefile_abs_src_path, and in git-related plugins use that attribute if available.
In your case, there's an additional problem: you're only interested in the authors of that wrote the lines in the docstring, not any of the other python bits.
So I don't expect to solve this problem anything soon, but will leave this issue open.
Hi, I am using mkdocstrings to generate the documentation for the projects source.
On-top I use mkdocs-gen-files and mkdocs-literate-nav plugins to auto generate the navigation for the documentation as described in the mkdocstrings documentation https://mkdocstrings.github.io/recipes/.
Unfortunately the git-authors plugin uses the generated file instead of the sources file to get the author. (This applies also to the mkdocs-git-revision-date-localized-plugin)
Is there any possibility to change the path on the fly to point to the source code files for the generated files?
Thanks for your help AND for this and the other wonderful plug-ins and your work.
Daniel
The text was updated successfully, but these errors were encountered: