Skip to content

Commit

Permalink
Reference Guides on Ansible, Puppet, and Chef (#331)
Browse files Browse the repository at this point in the history
Merged PR #331.
  • Loading branch information
rambleraptor authored and modular-magician committed Jul 10, 2018
1 parent 4b0efbd commit 1d19fb9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/chef/compute
Submodule compute updated 1 files
+44 −0 README.md
2 changes: 1 addition & 1 deletion build/puppet/compute
Submodule compute updated 1 files
+44 −0 README.md
9 changes: 9 additions & 0 deletions templates/ansible/resource.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ options:
<%= lines(indent(doc_property_yaml(prop, object, 4), 4)) -%>
<% end -%>
extends_documentation_fragment: gcp
<% if object.references -%>
notes:
<% if object.references.api -%>
- "API Reference: U(<%= object.references.api -%>)"
<% end -%>
<% object.references.guides.each do |guide, link| -%>
- "<%= guide -%>: U(<%= link -%>)"
<% end # object.references -%>
<% end # if object.references -%>
'''

<% if example -%>
Expand Down
9 changes: 9 additions & 0 deletions templates/chef/README.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ For complete details of the authentication cookbook, visit the
### <%= object.out_name -%>

<%= object.description %>
<% if object.references -%>
#### Reference Guides
<% if object.references.api -%>
* [API Reference](<%= object.references.api -%>)
<% end -%>
<% object.references.guides.each do |guide, link| -%>
* [<%= guide -%>](<%= link -%>)
<% end # object.references.guides -%>
<% end # if object.references -%>

#### Example

Expand Down
9 changes: 9 additions & 0 deletions templates/puppet/README.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ change by asserting it in the manifest.
#### `<%= object.out_name -%>`

<%= object.description %>
<% if object.references -%>
#### Reference Guides
<% if object.references.api -%>
* [API Reference](<%= object.references.api -%>)
<% end -%>
<% object.references.guides.each do |guide, link| -%>
* [<%= guide -%>](<%= link -%>)
<% end # object.references.guides -%>
<% end # if object.references -%>

#### Example

Expand Down

0 comments on commit 1d19fb9

Please sign in to comment.