Skip to content

Commit 5e88055

Browse files
Heston Hoffmanhestonhoffman
Heston Hoffman
authored andcommitted
Merge pull request #1091 from puppetlabs/document-1232
(DOC-5036) Fix generated anchor links
2 parents eaf089b + 9b3a948 commit 5e88055

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/puppet_references/puppet/type_template.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* [Provider Features](#<%= name %>-provider-features)
99
<% end -%>
1010

11-
### [Description](#<%= name %>-description)
11+
### <a id="<%= name %>-description">Description</a>
1212

1313
<%= this_type['description'] %>
1414

15-
### [Attributes](#<%= name %>-attributes)
15+
### <a id="<%= name %>-attributes">Attributes</a>
1616

1717
<pre><code><%= name %> { 'resource title':
1818
<% sorted_attribute_list.each do |attribute_name| -%>
@@ -23,7 +23,7 @@
2323

2424
<% sorted_attribute_list.each do |attribute_name| -%>
2525

26-
#### [<%= attribute_name %>](#<%= name %>-attribute-<%= attribute_name %>)
26+
#### <a id="<%= name %>-attribute-<%= attribute_name %>"><%= attribute_name %></a>
2727

2828
<% if this_type['attributes'][attribute_name]['namevar'] -%>
2929
<% if attribute_name != 'provider' %>_(**Namevar:** If omitted, this attribute's value defaults to the resource's title.)_<%= "\n\n" -%>
@@ -44,17 +44,17 @@ Requires features <%= this_type['attributes'][attribute_name]['required_features
4444
-%>
4545

4646
<% if !this_type['providers'].empty? -%>
47-
### [Providers](#<%= name %>-providers)
47+
### <a id="<%= name %>-providers">Providers</a>
4848

4949
<% end -%>
5050
<% this_type['providers'].keys.sort.each do |provider_name| -%>
51-
#### [<%= provider_name %>](#<%= name %>-provider-<%= provider_name %>)
51+
#### <a id="<%= name %>-provider-<%= provider_name %>">
5252

5353
<%= this_type['providers'][provider_name]['description'] %>
5454

5555
<% end -%>
5656
<% if !this_type['features'].empty? -%>
57-
### [Provider Features](#<%= name %>-provider-features)
57+
### <a id="<%= name %>-provider-features">Provider Features</a>
5858

5959
Available features:
6060

0 commit comments

Comments
 (0)