Skip to content

Commit 2e7a677

Browse files
author
jbondpdx
committed
change function ref page name
1 parent 100118e commit 2e7a677

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/puppet_references/puppet/functions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def build_variant(filename, preferred_version = 'ruby4x')
2727
strings_data = PuppetReferences::Puppet::Strings.new
2828
functions = strings_data['puppet_functions']
2929
generated_at = "> **NOTE:** This page was generated from the Puppet source code on #{Time.now.to_s}"
30-
header_data = {title: 'List of built-in functions',
30+
header_data = {title: 'Built-in function reference',
3131
canonical: "#{@latest}/function.html",
3232
toc_levels: 2,
3333
toc: 'columns'}

lib/puppet_references/puppet/functions_template.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Signature <%= index+1 %>
1717
if has_parameters -%>
1818

1919
#### Parameters
20+
2021
<% signature['docstring']['tags'].select {|tag| tag['tag_name'] == 'param' && tag['text'] != '' && tag['text'] != nil}.each do |param| -%>
2122

2223
* `<%= param['name'] %>` --- <%= param['text'] %>
@@ -29,6 +30,7 @@ Return type(s): <%= return_types['types'].map {|t| "`#{t}`"}.join(', ') %>. <%=
2930
<% end # if return_types
3031
has_examples = signature['docstring']['tags'].detect {|tag| tag['tag_name'] == 'example' && tag['text'] != '' && tag['text'] != nil }
3132
if has_examples %>
33+
3234
#### Examples
3335

3436
<% signature['docstring']['tags'].select {|tag| tag['tag_name'] == 'example' && tag['text'] != '' && tag['text'] != nil}.each do |example| -%>

0 commit comments

Comments
 (0)