forked from OctoPrint/plugins.octoprint.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.json
47 lines (47 loc) · 3.21 KB
/
plugins.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
layout: null
---
[
{% for plugin in site.plugins %}{% unless forloop.first %},{% endunless %}
{% capture description %}{{ plugin.description }}{% if plugin.note %} // Please note: {{ plugin.note | markdownify }}{% endif %}{% endcapture %}{% capture author %}{% include authors_csv plugin=plugin %}{% endcapture %}
{
"id": "{{ plugin.id | remove_first: '/plugins/' | remove: '/' }}",
"published": {{ plugin.date | strip_html | strip_newlines | jsonify }},
"title": {{ plugin.title | strip_html | strip_newlines | jsonify }},
"description": {{ description | strip_html | strip_newlines | jsonify }},
"archive": {{ plugin.archive | jsonify }},{% if plugin.follow_dependency_links %}
"follow_dependency_links": {{ plugin.follow_dependency_links }},{% endif %}
"author": {{ author | strip_html | strip_newlines | jsonify }},
"homepage": {{ plugin.homepage | jsonify }},
"page": "{{ plugin.url | prepend: site.baseurl | prepend: site.external }}",
"compatibility": {% if plugin.compatibility %}{
"octoprint": {% if plugin.compatibility.octoprint %}{{ plugin.compatibility.octoprint | jsonify }}{% else %}[]{% endif %},
"os": {% if plugin.disabled %}["disabled"]{% else %}{% if plugin.compatibility.os %}{% include os_compat_json entries=plugin.compatibility.os %}{% else %}[]{% endif %}{% endif %},
"python": {% if plugin.compatibility.python %}{{ plugin.compatibility.python | jsonify }}{% else %}">=2.7,<3"{% endif %}
}{% else %}{"octoprint": [], "os": [], "python": ">=2.7,<3"}{% endif %},
"license": {{ plugin.license | strip_html | strip_newlines | jsonify }},{% if plugin.featuredimage %}
"image": "{% include canonic_url url=plugin.featuredimage external=true %}",{% endif %}{% if plugin.disabled %}
"disabled": {{ plugin.disabled | markdownify | jsonify }},{% endif %}
"abandoned": {% if plugin.abandoned %}true{% else %}false{% endif %},{% if plugin.github %}
"github": { {% if plugin.github.latest_release_tag %}
"latest_release": {
"name": {{ plugin.github.latest_release | jsonify }},
"date": {{ plugin.github.latest_release_date | jsonify }},
"tag": {{ plugin.github.latest_release_tag | jsonify }}
},
"releases": {{ plugin.github.releases }},{% endif %}
"last_push": {{ plugin.github.last_push | jsonify }},
"stars": {{ plugin.github.stars }},
"issues": {
"open": {{ plugin.github.open_issues }},
"closed": {{ plugin.github.closed_issues }}
}
},{% endif %}
"stats": {
"instances_month": {% if plugin.stats.month.instances %}{{ plugin.stats.month.instances }}{% else %}0{% endif %},
"install_events_month": {% if plugin.stats.month.install_events %}{{ plugin.stats.month.install_events }}{% else %}0{% endif %},
"instances_week": {% if plugin.stats.week.instances %}{{ plugin.stats.week.instances }}{% else %}0{% endif %},
"install_events_week": {% if plugin.stats.week.install_events %}{{ plugin.stats.week.install_events }}{% else %}0{% endif %}
}
}{% endfor %}
]