|
3 | 3 | --- |
4 | 4 |
|
5 | 5 | <div class="plugin-list row-liquid"> |
6 | | - <div class="span8"> |
7 | | - {{ content }} |
8 | | - </div> |
| 6 | + <div class="span8">{{ content }}</div> |
9 | 7 | <div class="span4"> |
10 | 8 | <h2><i class="fa fa-search"></i> Search</h2> |
11 | 9 |
|
12 | 10 | {% include search.html %} |
13 | 11 |
|
14 | | - <div class="ad"> |
15 | | - {% include adsnippet_desktop.html %} |
16 | | - </div> |
| 12 | + <div class="ad">{% include adsnippet_desktop.html %}</div> |
17 | 13 |
|
18 | 14 | <h2><i class="far fa-lightbulb"></i> Help</h2> |
19 | 15 |
|
20 | 16 | <p> |
21 | | - You are a user of OctoPrint and want to to know <strong>how to install</strong> any of the plugins listed here? <a href="{{ '/help/installation/' | prepend: site.baseurl }}">Take a look at this guide</a>. |
| 17 | + You are a user of OctoPrint and want to to know <strong>how to install</strong> any |
| 18 | + of the plugins listed here? |
| 19 | + <a href="{{ '/help/installation/' | prepend: site.baseurl }}" |
| 20 | + >Take a look at this guide</a |
| 21 | + >. |
22 | 22 | </p> |
23 | 23 | <p> |
24 | | - You are a plugin author and want to <strong>register your new plugin</strong> to be listed here? <a href="{{ '/help/registering/' | prepend: site.baseurl }}">Take a look at this guide</a>. |
| 24 | + You are a plugin author and want to <strong>register your new plugin</strong> to be |
| 25 | + listed here? |
| 26 | + <a href="{{ '/help/registering/' | prepend: site.baseurl }}" |
| 27 | + >Take a look at this guide</a |
| 28 | + >. |
25 | 29 | </p> |
26 | 30 | <p> |
27 | | - You are interested in <strong>writing your own plugin</strong> and don't know how to start? <a href="http://docs.octoprint.org/en/master/plugins/gettingstarted.html">Take a look at the plugin tutorial</a>. |
| 31 | + You are interested in <strong>writing your own plugin</strong> and don't know how to |
| 32 | + start? |
| 33 | + <a href="http://docs.octoprint.org/en/main/plugins/gettingstarted.html" |
| 34 | + >Take a look at the plugin tutorial</a |
| 35 | + >. |
28 | 36 | </p> |
29 | 37 | <p> |
30 | | - <strong>Something is wrong with this repository?</strong> If something appears to be broken, please <a href="https://github.com/OctoPrint/plugins.octoprint.org/issues">report it</a> or <a href="https://github.com/OctoPrint/plugins.octoprint.org/pulls">send a PR to fix it =)</a>. Thanks! |
| 38 | + <strong>Something is wrong with this repository?</strong> If something appears to be |
| 39 | + broken, please |
| 40 | + <a href="https://github.com/OctoPrint/plugins.octoprint.org/issues">report it</a> or |
| 41 | + <a href="https://github.com/OctoPrint/plugins.octoprint.org/pulls" |
| 42 | + >send a PR to fix it =)</a |
| 43 | + >. Thanks! |
31 | 44 | </p> |
32 | 45 |
|
33 | 46 | <h2><i class="fa fa-chart-line"></i> Stats</h2> |
34 | 47 |
|
35 | | - {% assign plugin_counter = site.plugins | size %} |
36 | | - {% assign python3_counter = 0 %} |
37 | | - {% assign abandoned_counter = 0 %} |
38 | | - |
39 | | - {% for plugin in site.plugins %} |
40 | | - {% if plugin.compatibility and plugin.compatibility.python and plugin.compatibility.python == '>=2.7,<4' %} |
41 | | - {% assign python3_counter = python3_counter | plus:1 %} |
42 | | - {% elsif plugin.compatibility and plugin.compatibility.python and plugin.compatibility.python == '>=3,<4' %} |
43 | | - {% assign python3_counter = python3_counter | plus:1 %} |
44 | | - {% endif %} |
45 | | - {% if plugin.abandoned %} |
46 | | - {% assign abandoned_counter = abandoned_counter | plus:1 %} |
47 | | - {% endif %} |
48 | | - {% endfor %} |
49 | | - |
50 | | - {% assign all_authors = "" | split: "/" %} |
51 | | - {% for plugin in site.plugins %} |
52 | | - {% if plugin.authors %} |
53 | | - {% for author in plugin.authors %} |
54 | | - {% unless author == "" %} |
55 | | - {% assign all_authors = all_authors | push: author %} |
56 | | - {% endunless %} |
57 | | - {% endfor %} |
58 | | - {% else %} |
59 | | - {% unless plugin.author == "" %} |
60 | | - {% assign all_authors = all_authors | push: plugin.author %} |
61 | | - {% endunless %} |
62 | | - {% endif %} |
63 | | - {% endfor %} |
64 | | - {% assign all_authors = all_authors | uniq | sort_natural %} |
65 | | - {% assign author_count = all_authors | size %} |
| 48 | + {% assign plugin_counter = site.plugins | size %} {% assign python3_counter = 0 %} {% |
| 49 | + assign abandoned_counter = 0 %} {% for plugin in site.plugins %} {% if |
| 50 | + plugin.compatibility and plugin.compatibility.python and plugin.compatibility.python |
| 51 | + == '>=2.7,<4' %} {% assign python3_counter = python3_counter | plus:1 %} {% elsif |
| 52 | + plugin.compatibility and plugin.compatibility.python and plugin.compatibility.python |
| 53 | + == '>=3,<4' %} {% assign python3_counter = python3_counter | plus:1 %} {% endif %} {% |
| 54 | + if plugin.abandoned %} {% assign abandoned_counter = abandoned_counter | plus:1 %} {% |
| 55 | + endif %} {% endfor %} {% assign all_authors = "" | split: "/" %} {% for plugin in |
| 56 | + site.plugins %} {% if plugin.authors %} {% for author in plugin.authors %} {% unless |
| 57 | + author == "" %} {% assign all_authors = all_authors | push: author %} {% endunless %} |
| 58 | + {% endfor %} {% else %} {% unless plugin.author == "" %} {% assign all_authors = |
| 59 | + all_authors | push: plugin.author %} {% endunless %} {% endif %} {% endfor %} {% |
| 60 | + assign all_authors = all_authors | uniq | sort_natural %} {% assign author_count = |
| 61 | + all_authors | size %} |
66 | 62 |
|
67 | 63 | <p> |
68 | | - There are currently <strong>{{ plugin_counter }}</strong> plugins listed in this repository of |
69 | | - which <strong>{{ python3_counter }} ({{ python3_counter | times:100 | divided_by:plugin_counter | round }}%)</strong> |
| 64 | + There are currently <strong>{{ plugin_counter }}</strong> plugins listed in this |
| 65 | + repository of which |
| 66 | + <strong |
| 67 | + >{{ python3_counter }} ({{ python3_counter | times:100 | divided_by:plugin_counter |
| 68 | + | round }}%)</strong |
| 69 | + > |
70 | 70 | are marked as Python 3 compatible. |
71 | 71 | </p> |
72 | 72 |
|
73 | 73 | <p> |
74 | | - <a href="https://github.com/OctoPrint/plugins.octoprint.org/labels/abandoned%20plugin"><strong>{{ abandoned_counter }}</strong> |
75 | | - plugins have been marked as abandoned</a> and are looking for a new maintainer. |
| 74 | + <a |
| 75 | + href="https://github.com/OctoPrint/plugins.octoprint.org/labels/abandoned%20plugin" |
| 76 | + ><strong>{{ abandoned_counter }}</strong> plugins have been marked as abandoned</a |
| 77 | + > |
| 78 | + and are looking for a new maintainer. |
76 | 79 | </p> |
77 | 80 |
|
78 | 81 | <p> |
79 | | - All in all <strong>{{ author_count }}</strong> plugin authors have spent time and effort to bring you these plugins. |
| 82 | + All in all <strong>{{ author_count }}</strong> plugin authors have spent time and |
| 83 | + effort to bring you these plugins. |
80 | 84 | </p> |
81 | 85 |
|
82 | | - {% assign sorted_plugins = site.plugins | where_exp: "plugin", "plugin.stats.month.instances" | sort: "stats.month.instances" | reverse %} |
83 | | - {% assign sorted_plugins_size = sorted_plugins | size %} |
84 | | - {% if sorted_plugins_size >= 20 %} |
85 | | - {% assign popular_plugins = sorted_plugins | slice: 0, 20 | sample: 20 %} |
| 86 | + {% assign sorted_plugins = site.plugins | where_exp: "plugin", |
| 87 | + "plugin.stats.month.instances" | sort: "stats.month.instances" | reverse %} {% assign |
| 88 | + sorted_plugins_size = sorted_plugins | size %} {% if sorted_plugins_size >= 20 %} {% |
| 89 | + assign popular_plugins = sorted_plugins | slice: 0, 20 | sample: 20 %} |
86 | 90 | <h3>Popular plugins</h3> |
87 | | - <p><small><em>... in random order</em></small></p> |
| 91 | + <p> |
| 92 | + <small><em>... in random order</em></small> |
| 93 | + </p> |
88 | 94 | <ul> |
89 | 95 | {% for plugin in popular_plugins %} |
90 | 96 | <li> |
91 | 97 | <a href="{{ plugin.url | prepend: site.baseurl }}">{{ plugin.title }}</a> |
92 | 98 | </li> |
93 | 99 | {% endfor %} |
94 | 100 | </ul> |
95 | | - <small><em>Based on anonymous usage data. Please note that commercial plugins are exempt from this list due to past manipulations.</em></small> |
| 101 | + <small |
| 102 | + ><em |
| 103 | + >Based on anonymous usage data. Please note that commercial plugins are exempt |
| 104 | + from this list due to past manipulations.</em |
| 105 | + ></small |
| 106 | + > |
96 | 107 | {% endif %} |
97 | | - |
98 | 108 | </div> |
99 | 109 | </div> |
0 commit comments