in generate_plugin_placeholder.rb [19:36]
def generate_placeholder(type, name)
if type.nil? || name.nil?
$stderr.puts("Plugin type and name are required.")
return
end
unless SUPPORTED_TYPES.include?(type)
$stderr.puts("#{type} is not supported. Supported types are #{SUPPORTED_TYPES.inspect}")
return
end
placeholder_asciidoc = "#{logstash_docs_path}/docs/versioned-plugins/#{type}s/#{name}-index.asciidoc"
template = ERB.new(IO.read("logstash/templates/docs/versioned-plugins/plugin-index.asciidoc.erb"))
content = template.result_with_hash(name: name, type: type, versions: [])
File.write(placeholder_asciidoc, content)
end