From 0270d6bcb5a1597f285e34aded6bc3f0a46c206e Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 2 Sep 2025 08:35:00 +0200 Subject: [PATCH] plugins: add json export (#248) * add json export * fix style * add publishers --- plugins.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 plugins.json diff --git a/plugins.json b/plugins.json new file mode 100644 index 00000000..a64e94b3 --- /dev/null +++ b/plugins.json @@ -0,0 +1,43 @@ +--- +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 %} +}} \ No newline at end of file