forked from OctoPrint/plugins.octoprint.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.json
24 lines (24 loc) · 1.48 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
---
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 %}
}{% else %}{"octoprint": [], "os": []}{% 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 %}
]