mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- call them attributes
- call 'setting_name' simply 'name'
This commit is contained in:
parent
8cbb10bb4a
commit
f26ef0af4f
1 changed files with 9 additions and 9 deletions
|
@ -28,7 +28,7 @@ This is what it might look like in your config file:
|
|||
|
||||
<pre><code><%= section %> {
|
||||
<%= name %> {
|
||||
<% sorted_settings.each do |setting_name, config|
|
||||
<% sorted_attributes.each do |name, config|
|
||||
next if config[:deprecated]
|
||||
if config[:validate].is_a?(Array)
|
||||
annotation = "#{config[:validate].inspect}"
|
||||
|
@ -36,8 +36,8 @@ This is what it might look like in your config file:
|
|||
annotation = "#{config[:validate]}"
|
||||
end
|
||||
|
||||
if setting_name.is_a?(Regexp)
|
||||
setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
|
||||
if name.is_a?(Regexp)
|
||||
name = "/" + name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
|
||||
end
|
||||
if config[:required]
|
||||
annotation += " (required)"
|
||||
|
@ -46,7 +46,7 @@ This is what it might look like in your config file:
|
|||
end
|
||||
annotation += ", default: #{config[:default].inspect}" if config.include?(:default)
|
||||
-%>
|
||||
<a href="#setting_<%= setting_name %>"><%= setting_name %></a> => ... # <%= annotation %>
|
||||
<a href="#setting_<%= name %>"><%= name %></a> => ... # <%= annotation %>
|
||||
<% end -%>
|
||||
}
|
||||
}
|
||||
|
@ -54,18 +54,18 @@ This is what it might look like in your config file:
|
|||
|
||||
<h3> Details </h3>
|
||||
|
||||
<% sorted_settings.each do |setting_name, config| -%>
|
||||
<% sorted_attributes.each do |name, config| -%>
|
||||
<%
|
||||
if setting_name.is_a?(Regexp)
|
||||
setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
|
||||
if name.is_a?(Regexp)
|
||||
name = "/" + name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
|
||||
is_regexp = true
|
||||
else
|
||||
is_regexp = false
|
||||
end
|
||||
-%>
|
||||
<h4>
|
||||
<a name="setting_<%= setting_name %>">
|
||||
<%= setting_name %><%= " (required setting)" if config[:required] %>
|
||||
<a name="setting_<%= name %>">
|
||||
<%= name %><%= " (required setting)" if config[:required] %>
|
||||
<%= " <strong>DEPRECATED</strong>" if config[:deprecated] %>
|
||||
</a>
|
||||
</h4>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue