-
Notifications
You must be signed in to change notification settings - Fork 10
Add generated_by parameter to newly created Files
#832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
athackst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add the generated_by to the file after construction instead, since it looks like it's erroring out on construction.
mkdocs_simple_plugin/plugin.py
Outdated
| dest_dir=config.site_dir, | ||
| use_directory_urls=config["use_directory_urls"] | ||
| use_directory_urls=config["use_directory_urls"], | ||
| generated_by="mkdocs_simple_plugin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like this is a part of the constructor
Oof, I'm having trouble with the web interface.
|
Thanks! |
See https://github.com/mkdocs/mkdocs/blob/4c7404485f988f409ccaf42fefe705222ff5965a/mkdocs/structure/files.py#L238C5-L238C17
This help with compatibility with other plugins that use
gitinformation