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
traylenator
changed the title
Support other (yaml) languages other puppet within @example blocks
Support languages other than puppet within @example blocks
May 13, 2020
Seconding this. Puppet DSL examples are great, but sometimes you need to show your users documentation for how their data needs to look in Hiera, or how to use a DSL function embedded in an EPP template. There needs to be a way to do this, or if a way already exists, then it needs to be documented somewhere.
Use Case
Be able to provide examples in other languages in particular YAML.
Currently all
@example
blocks are assumed to be puppet language.Describe the Solution You Would Like
Don't really know yardoc so guessing what a syntax might be
A clear and concise description of what you want to happen.
Should be rendered as the following with pretty yaml.
Describe Alternatives You've Considered
Folk have tried nesting a yaml code block but it turns weird.
(have used
'
rather than ``` for the inner code block)however this results in nonsense output.
Additional Context
Stems on from this merge request to clean up some previous attempts to render yaml.
voxpupuli/puppet-yum#171
which resulted a completely broken markdown result.
The text was updated successfully, but these errors were encountered: