[script] update readme render, fix #471

This commit is contained in:
Daniel Khamsing 2017-03-21 13:44:52 -07:00
parent c2b5335d3a
commit 334d3059ca

View File

@ -58,19 +58,19 @@ def output_apps(apps)
end
o << "- #{t} \n"
o << "<details><summary>"
o << " <details><summary>"
details = if tags.nil?
'`objc` '
'<code>objc</code> '
else
''
end
unless tags.nil?
details << '`swift` ' if tags.include? 'swift'
details << '<code>swift</code> ' if tags.include? 'swift'
tags.each do |t|
details << "`#{t.downcase}` " if t.downcase!='swift'
details << "<code>#{t.downcase}</code> " if t.downcase!='swift'
end
end
@ -105,22 +105,20 @@ def output_apps(apps)
details_list.push "License: #{license_display}"
end
details = ' '
details = "\n\n "
details << details_list[0]
details_list[1..-1].each { |x| details << "<br> #{x}" }
unless screenshots.nil?
details << "\n<div>"
details << "\n <div>"
screenshots.each_with_index do |s, i|
details << "<img height='300' alt='#{name} image #{i+1}' src='#{screenshots[i]}'> "
end
details << "\n</div>"
end
details << "\n </details>\n"
details << "\n </details>\n\n"
o << details
o << "</details> \n"
end
o
end