Skip to content

Commit 429a86f

Browse files
author
Aleksandr Kozlov
committed
Added parameter lists
1 parent 44e9af1 commit 429a86f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

lib/puppet-strings/markdown/templates/classes_and_defines.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@
4747
<% if params -%>
4848
#### Parameters
4949

50-
The following parameters are available in the `<%= name %>` <%= @type %>.
50+
The following parameters are available in the `<%= name %>` <%= @type %>:
51+
52+
<% params.each do |param| -%>
53+
* [`<%= param[:name] %>`](#<%= param[:name] %>)
54+
<% end -%>
5155

5256
<% params.each do |param| -%>
5357
##### <a name="<%= param[:name] %>"></a>`<%= param[:name] %>`

lib/puppet-strings/markdown/templates/data_type.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ Alias of `<%= alias_of %>`
5151
<% if params -%>
5252
#### Parameters
5353

54-
The following parameters are available in the `<%= name %>` <%= @type %>.
54+
The following parameters are available in the `<%= name %>` <%= @type %>:
55+
56+
<% params.each do |param| -%>
57+
* [`<%= param[:name] %>`](#<%= param[:name] %>)
58+
<% end -%>
5559

5660
<% params.each do |param| -%>
5761
##### <a name="<%= param[:name] %>"></a>`<%= param[:name] %>`

lib/puppet-strings/markdown/templates/resource_type.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ Default value: `<%= prop[:default] %>`
9797

9898
The following parameters are available in the `<%= name %>` <%= @type %>.
9999

100+
<% parameters.each do |param| -%>
101+
* [`<%= param[:name] %>`](#<%= param[:name] %>)
102+
<% end -%>
103+
100104
<% parameters.each do |param| -%>
101105
##### <a name="<%= param[:name] %>"></a>`<%= param[:name] %>`
102106

0 commit comments

Comments
 (0)