Skip to content

Commit 7bb780d

Browse files
Fix make_docs script
1 parent b8cc4dd commit 7bb780d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs_gen/make_docs.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ def mobj_to_md obj
3030
out += "> #{obj.signature}\n\n"
3131
out += "#{obj.docstring}\n\n"
3232

33+
# puts "Processing: #{obj.name} #{method_path}"
3334

3435
indent = space 5
3536
params = obj.tags.select { |tag| tag.tag_name == 'param' }
3637
if !params.empty?
3738
out += "__Parameters:__\n\n"
3839
params.each do |param|
39-
out += indent + "[#{param.types.join ', '}] "
40+
param_types = param.types ? "[#{param.types.join ', '}] " : ''
41+
out += indent + param_types
4042
out += "#{param.name} - #{param.text}\n\n"
4143
end
4244
end

0 commit comments

Comments
 (0)