mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2025-03-09 16:10:03 +01:00
Merge pull request #416 from dkhamsing/update-categories
Update categories
This commit is contained in:
commit
598493517f
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@ -5,7 +5,7 @@ A new entry should update **contents.json** with this format:
|
||||
```js
|
||||
{
|
||||
"title": "Name of the app",
|
||||
"category": "Category name",
|
||||
"category-ids": ["Category id"],
|
||||
"description": "What this app does",
|
||||
"source": "Link to source, usually GitHub",
|
||||
"screenshots": ["http://something.com/image.png"],
|
||||
|
2
.github/osia_convert.rb
vendored
2
.github/osia_convert.rb
vendored
@ -23,7 +23,7 @@ def apps_for_cat(apps, id)
|
||||
end
|
||||
|
||||
s = f.select do |a|
|
||||
cat = a['category']
|
||||
cat = a['category-ids']
|
||||
cat.class == Array ? cat.include?(id) : (cat == id)
|
||||
end
|
||||
s.sort_by { |k, v| k['title'].downcase }
|
||||
|
2
.github/osia_validate_categories.rb
vendored
2
.github/osia_validate_categories.rb
vendored
@ -16,7 +16,7 @@ end
|
||||
allowed_categories = osia_allowed_categories(c)
|
||||
|
||||
apps.each do |a|
|
||||
cat = a['category']
|
||||
cat = a['category-ids']
|
||||
|
||||
if cat.nil?
|
||||
puts "missing category for #{a}"
|
||||
|
8
.github/schema.json
vendored
8
.github/schema.json
vendored
@ -65,10 +65,10 @@
|
||||
"description": "The official title of the project.",
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"category-ids": {
|
||||
"title": "Project Category",
|
||||
"description": "The category or list of categories that the project falls under. If it is a list, the categories should be ordered from most to least relevant/applicable to the project.",
|
||||
"type": ["string", "array"],
|
||||
"description": "The list of categories that the project falls under. If it is a list, the categories should be ordered from most to least relevant/applicable to the project.",
|
||||
"type": ["array"],
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
@ -157,7 +157,7 @@
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": ["title", "category", "source"],
|
||||
"required": ["title", "category-ids", "source"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
|
2205
contents.json
2205
contents.json
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user