2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-09-13 22:51:25 +00:00
Files
inventree-website/plugins.json
Matthias Mair 0270d6bcb5 plugins: add json export (#248)
* add json export

* fix style

* add publishers
2025-09-02 08:35:00 +02:00

43 lines
1.3 KiB
JSON

---
layout: none
---
{"plugins":{
{% for p in site.repo %}
{{ p.url | jsonify }}: {
"name": {{ p.name | jsonify }},
"author": {{ p.author | jsonify }},
"last_modified": {{ p.last-modified-date | jsonify }},
"open_source": {{ p.open-source | jsonify }},
"license": {{ p.license | jsonify }},
"stable": {{ p.stable | jsonify }},
"maintained": {{ p.maintained | jsonify }},
"pypi": {{ p.pypi | jsonify }},
"package_name": {{ p.package_name | jsonify }},
"links":{
"website": {{ p.website | jsonify }},
"issue_tracker": {{ p.issue_tracker | jsonify }},
"github": {{ p.github | jsonify }},
"gitlab": {{ p.gitlab | jsonify }},
"source": {{ p.source | jsonify }}
},
"categories": {{ p.categories | jsonify }},
"tags": {{ p.tags | jsonify }},
"content_txt" : {{ p.content | markdownify | strip_html | jsonify }},
"content": {{ p.content | jsonify }}
}
{%- unless forloop.last %},{% endunless -%}
{% endfor %}
},
"publishers":{
{% for p in site.publishers %}
{{ p.url | jsonify }}: {
"short_name": {{p.short_name | jsonify}},
"name": {{ p.name | jsonify }},
"github": {{ p.github | jsonify }},
"website": {{ p.website | jsonify }},
"content_txt" : {{ p.content | markdownify | strip_html | jsonify }},
"content": {{ p.content | jsonify }}
}
{%- unless forloop.last %},{% endunless -%}
{% endfor %}
}}