forked from OctoPrint/plugins.octoprint.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.json
25 lines (25 loc) · 1.63 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
---
layout: null
---
[
{% for plugin in site.plugins %}{% unless forloop.first %},{% endunless %}
{
"id": "{{ plugin.id | remove_first: '/plugins/' | remove: '/' }}",
"published": {{ plugin.date | strip_html | strip_newlines | jsonify }},
"title": {{ plugin.title | strip_html | strip_newlines | jsonify }},
"description": {{ plugin.description | strip_html | strip_newlines | jsonify }},
"archive": {{ plugin.archive | jsonify }},{% if plugin.follow_dependency_links %}
"follow_dependency_links": {{ plugin.follow_dependency_links }},{% endif %}
"author": {{ plugin.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 %}
}{% endfor %}
]