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
Hello,
Thanks for this great tool !
I'm currently in the process of including it in the ansible roles of my organization.
In order to better fit our internal documentation requirements, we need some custom parts that can't be computed from analysis of the ansible code.
This is why I implemented a small modification of ansible-doctor (https://github.com/onavas33/ansible-doctor/tree/sections), similar to include_header functionality, but in order to give developer the possibility to include custom sections at any point in table of content and generated ouptut, at the condition that template supports the sections keys.
At this point the default readme template is modified to support two sections so that we can include if necessary a custom first or a custom last section in the readme. A french template readme-fr is also included.
Please let me know if interested in inclusion in ansible-doctor or if another approach would have been better.
The text was updated successfully, but these errors were encountered:
Hi, thanks for your feedback. In general, I'm fine to add this feature, but I would only add the config and parser part and leave the default templates unchanged. As templates can be loaded from an external git repo, users can easily manage and use their own templates without code changes. Would you like to provide the PR?
By "default template unchanged" do you mean "with only one default template" (current readme) and no other template, but including possibility of using sections in the default template ?
Or do you mean "current readme template unmodified" ? In this case, wouldn't you find it weird that the code allows a functionality, and that documentation talks about this, but that default template wouldn't permit to use by default ? How would you like to handle this ? By another example of template ? By more documentation ?
I can prepare a PR for both cases, please let me know.
Or do you mean "current readme template unmodified" ? In this case, wouldn't you find it weird that the code allows a functionality, and that documentation talks about this, but that default template wouldn't permit to use by default ? How would you like to handle this ? By another example of template ? By more documentation ?
That's what I had in mind but after thinking of it again, I agree, this doesn't make much sense... My main problem is, it's not very generic. include_sections can take more or less than two keys, the keys can be named differently and that makes it kinda hard to use.
Why do we even have to register these additional files in the python code? With a custom template, can you not just include the additional files directly with Jinja?
Hello,
Thanks for this great tool !
I'm currently in the process of including it in the ansible roles of my organization.
In order to better fit our internal documentation requirements, we need some custom parts that can't be computed from analysis of the ansible code.
This is why I implemented a small modification of ansible-doctor (https://github.com/onavas33/ansible-doctor/tree/sections), similar to include_header functionality, but in order to give developer the possibility to include custom sections at any point in table of content and generated ouptut, at the condition that template supports the sections keys.
At this point the default readme template is modified to support two sections so that we can include if necessary a custom first or a custom last section in the readme. A french template readme-fr is also included.
Please let me know if interested in inclusion in ansible-doctor or if another approach would have been better.
The text was updated successfully, but these errors were encountered: