mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-11-27 10:14:59 +03:00
[script] update readme render, fix #471
This commit is contained in:
parent
c2b5335d3a
commit
334d3059ca
16
.github/osia_convert.rb
vendored
16
.github/osia_convert.rb
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user