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
Ansible roles have templates in random places which are written in Jinja2. Jinja2 provides a way to add comments to the templates which are not rendered, for example:
{# This won't be rendered #}
I would like to document these templates using reStructuredText inside these comment sections, but to not have random sections extracted, that would require a top and bottom marker to tell yaml2rst which section of the file to extract and convert, for example:
With this formatting, yaml2rst could grab the specified file, cut the not selected parts from top and bottom, and convert the rest to RST. Having these markers configurable would be a bonus.
Ansible roles have templates in random places which are written in Jinja2. Jinja2 provides a way to add comments to the templates which are not rendered, for example:
I would like to document these templates using reStructuredText inside these comment sections, but to not have random sections extracted, that would require a top and bottom marker to tell
yaml2rst
which section of the file to extract and convert, for example:With this formatting,
yaml2rst
could grab the specified file, cut the not selected parts from top and bottom, and convert the rest to RST. Having these markers configurable would be a bonus.[Edit by htgoebel: Split into two issues, see #2]
The text was updated successfully, but these errors were encountered: