Closed timvink closed 1 year ago
Can you give me a pointer on how to solve the style error?
mkdocs_gen_files/editor.py:48: error: "File" has no attribute "generated_by" [attr-defined]
Fixed it.. after a bit of search I released it was a mypy error (I'm not familiar with hatch), # type: ignore
fixed it.
This time it was black
. I needed to upgrade also.
p.s. A small section on 'contributing' and how to run the hatch commands would be a nice addition :)
Hi @oprypin , any blockers to merging this PR? Seems ready to go :)
I'm interested in this as well (would like to to use mkdocs-git-revision-date-localized-plugin :wink:). Let me know if I can be of any help!
And released. Sorry for the huge delay.
Sorry for necroposting, but could we add generated_by
to MkDocs' File
class? That would allow for better plugin inter-op. Currently, it's added as an anonymous attribute and you can't be sure that it's there. One improvement might be to add the plugin instance to generated_by
, so other plugins might even be able to access public state in plugins.
This PR adds an attribute to generated files.
Currently,
mkdocs-gen-files
andmkdocs-git-revision-date-localized-plugin
are incompatible.Using this new attribute, this PR can add support: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/102
More details in https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/101