-
Notifications
You must be signed in to change notification settings - Fork 70
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
--rendered-provider-name
doesn't work
#177
Comments
if i understand this correctly, it is expected. you need to be using custom templates to make use of the |
see also #173 |
@jacobbednarz Thank you for the hint. After reviewing issue #173, I feel it is makes more sense to modify the default template to honor the rendered provider name, as is described in this option's description:
I didn't see any reason why not do it. |
rendered provider name isn't available by default -- it's only used if people supply it. if someone is supplying it, the assumption is that they are using a customised version of the generated docs. I don't agree this is a default that everyone will be using so it probably doesn't make sense for it to be there. |
One argument is that the default template is almost useless without the support of rendered provider name. E.g. back to my provider, it requires me to use
Using
(the same for the resource/data source file) As you can see that the advertise name of my provider is lowercased, I don't think any user will want that. |
I'm sorry, I don't agree it's useless. For many (including the provider I maintain for a long time), it's all they need/want. I would say we could improve the UX here a little and do a if/else in the default template to check if the rendered name is provided, use it otherwise default back to what it is now. However, it's a bit of a fine line as once you start customising the output, you really want custom templates anyway. |
After upgrading from v0.9.0 to v0.13.0, the
--rendered-provider-name
seems to be ignored. E.g. when I run:tfplugindocs generate --rendered-provider-name=Restful --provider-name restful
for my project https://github.com/magodo/terraform-provider-restful, there is no match in the docs folder forRestful
:The text was updated successfully, but these errors were encountered: