You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Hello!
I'd like to generate the README.md of my Puppet modules from modulesync, by getting the docs from the classes themselves.
I've considered using puppet-strings, but I don't really see how I could retrieve markdown from it.
Is there a way I could get markdown from the inline docs in classes/defines using Ruby, so I can include them in my README?
Thanks,
Raphaël
Henrik Lindberg
unread,
Mar 17, 2015, 12:09:57 PM3/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Afaik, there is no feature available that extracts the documentation
from source and produces markdown.
The puppet-strings does this internally to extract the documentation
comments from the source. It then feeds this into yard to produce
interactive html pages.
If you want to implement your own tool, you could base it of the
extraction that is done by puppet-strings. It is actually not that
difficult to write a ruby snippet that parses a .pp file (with the
future parser) and extracts documentation.
I can imagine accepting a PR with a command that extracts text from source.
Note that puppet-strings requires that the source can be parsed
with the future parser.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Thanks for the answer Henrik. That is kind of what it looked to me.
I think if I have to go this way, i'll probably make a gem for this, since that would be easier to plug into modulesync than a Puppet module actually.
Henrik Lindberg
unread,
Mar 17, 2015, 1:47:17 PM3/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
On 2015-17-03 17:34, Raphaël Pinson wrote:
> Thanks for the answer Henrik. That is kind of what it looked to me.
>
> I think if I have to go this way, i'll probably make a gem for this,
> since that would be easier to plug into modulesync than a Puppet module
> actually.
>
>
Note that puppet-strings will be available as a gem as well.