mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2025-01-03 12:09:37 +01:00
[script] cleanup
This commit is contained in:
parent
16a47b1793
commit
b60b049c67
12
.github/osia_convert.rb
vendored
12
.github/osia_convert.rb
vendored
@ -184,7 +184,13 @@ end
|
||||
def write_list(j, file, appstoreonly = false)
|
||||
t = j['title']
|
||||
subt = j['subtitle']
|
||||
desc = j['description']
|
||||
|
||||
desc = if appstoreonly
|
||||
'List of open-source apps published on the App Store (complete list [here](https://github.com/dkhamsing/open-source-ios-apps))'
|
||||
else
|
||||
j['description']
|
||||
end
|
||||
|
||||
h = j['header']
|
||||
f = j['footer']
|
||||
cats = j['categories']
|
||||
@ -192,13 +198,11 @@ def write_list(j, file, appstoreonly = false)
|
||||
|
||||
output = '# ' + t
|
||||
output << "\n\n"
|
||||
output << desc
|
||||
|
||||
if appstoreonly == false
|
||||
output << desc
|
||||
output << "\n\n#{subt}\n\n"
|
||||
output << output_badges(apps.count)
|
||||
else
|
||||
output << 'List of open-source apps published on the App Store (complete list [here](https://github.com/dkhamsing/open-source-ios-apps))'
|
||||
end
|
||||
|
||||
output << "\n\nJump to\n\n"
|
||||
|
Loading…
Reference in New Issue
Block a user