Skip to content

Commit 82f6998

Browse files
committed
chore: update links to docs
1 parent 6098bce commit 82f6998

4 files changed

Lines changed: 333 additions & 208 deletions

File tree

_includes/navigation.html

Lines changed: 90 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,128 @@
11
<div class="navbar navbar-inverse navbar-static-top">
22
<div class="navbar-inner">
33
<div class="container">
4-
<a class="brand" href="/"><img src="/assets/img/tentacle-20x20.png" alt="Tentacle logo" class="tentacle"> {{ site.short_title }}</a>
5-
<a href="javascript:void(0)" class="btn btn-burger btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><i class="fas fa-bars"></i></a>
4+
<a class="brand" href="/"
5+
><img src="/assets/img/tentacle-20x20.png" alt="Tentacle logo" class="tentacle" />
6+
{{ site.short_title }}</a
7+
>
8+
<a
9+
href="javascript:void(0)"
10+
class="btn btn-burger btn-navbar"
11+
data-toggle="collapse"
12+
data-target=".nav-collapse"
13+
><i class="fas fa-bars"></i
14+
></a>
615
<div class="pull-right">
716
<ul class="nav social-navbar">
8-
<li><a href="https://octoprint.org/merch/" title="Get some merchandise!" target="_blank"><i class="fa fa-shopping-basket"></i></a></li>
9-
<li><a href="https://octoprint.org/support-octoprint/" title="Support OctoPrint!" data-event-category="supportlink" data-event-action="navigation" target="_blank"><i class="fas fa-donate"></i></a></li>
17+
<li>
18+
<a
19+
href="https://octoprint.org/merch/"
20+
title="Get some merchandise!"
21+
target="_blank"
22+
><i class="fa fa-shopping-basket"></i
23+
></a>
24+
</li>
25+
<li>
26+
<a
27+
href="https://octoprint.org/support-octoprint/"
28+
title="Support OctoPrint!"
29+
data-event-category="supportlink"
30+
data-event-action="navigation"
31+
target="_blank"
32+
><i class="fas fa-donate"></i
33+
></a>
34+
</li>
1035
</ul>
1136
</div>
1237
<div class="nav-collapse collapse">
1338
<ul class="nav">
1439
<li class="dropdown">
15-
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">Sorted by... <b class="caret"></b></a>
40+
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"
41+
>Sorted by... <b class="caret"></b
42+
></a>
1643
<ul class="dropdown-menu">
1744
<li><a href="{{ '/by_name/' | prepend: site.baseurl }}">... name</a></li>
1845
<li><a href="{{ '/by_date/' | prepend: site.baseurl }}">... date</a></li>
1946
<li><a href="{{ '/by_tag/' | prepend: site.baseurl }}">... tag</a></li>
20-
<li><a href="{{ '/by_author/' | prepend: site.baseurl }}">... author</a></li>
47+
<li>
48+
<a href="{{ '/by_author/' | prepend: site.baseurl }}">... author</a>
49+
</li>
2150
</ul>
2251
</li>
2352
<li class="dropdown">
24-
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">Topics <b class="caret"></b></a>
53+
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"
54+
>Topics <b class="caret"></b
55+
></a>
2556
<ul class="dropdown-menu">
2657
{% for topic in site.topics | sort: "title" %}
27-
<li><a href="{{ topic.id | prepend: site.baseurl }}">{{ topic.title }} ({{ topic.plugins.size }} {% if topic.plugins.size == 1 %}plugin{% else %}plugins{% endif %})</a></li>
58+
<li>
59+
<a href="{{ topic.id | prepend: site.baseurl }}"
60+
>{{ topic.title }} ({{ topic.plugins.size }} {% if topic.plugins.size ==
61+
1 %}plugin{% else %}plugins{% endif %})</a
62+
>
63+
</li>
2864
{% endfor %}
2965
</ul>
3066
</li>
31-
<li><form class="navbar-search pull-right" action="{{ '/search/' | prepend: site.baseurl }}" method="get"><input type="text" class="input-large search-query" placeholder="Enter search &amp; hit enter..." name="q"></form></li>
67+
<li>
68+
<form
69+
class="navbar-search pull-right"
70+
action="{{ '/search/' | prepend: site.baseurl }}"
71+
method="get"
72+
>
73+
<input
74+
type="text"
75+
class="input-large search-query"
76+
placeholder="Enter search &amp; hit enter..."
77+
name="q"
78+
/>
79+
</form>
80+
</li>
3281
<li class="dropdown">
33-
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">Help <b class="caret"></b></a>
82+
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"
83+
>Help <b class="caret"></b
84+
></a>
3485
<ul class="dropdown-menu">
35-
<li><a href="{{ '/help/installation/' | prepend: site.baseurl }}">Installing Plugins</a></li>
36-
<li><a href="{{ '/help/registering/' | prepend: site.baseurl }}">Registering Plugins</a></li>
37-
<li><a href="http://docs.octoprint.org/en/master/plugins/gettingstarted.html">The Plugin Tutorial</a></li>
86+
<li>
87+
<a href="{{ '/help/installation/' | prepend: site.baseurl }}"
88+
>Installing Plugins</a
89+
>
90+
</li>
91+
<li>
92+
<a href="{{ '/help/registering/' | prepend: site.baseurl }}"
93+
>Registering Plugins</a
94+
>
95+
</li>
96+
<li>
97+
<a href="http://docs.octoprint.org/en/main/plugins/gettingstarted.html"
98+
>The Plugin Tutorial</a
99+
>
100+
</li>
38101
<li class="divider"></li>
39-
<li><a href="{{ '/help/github_integration/' | prepend: site.baseurl }}">GitHub Integration on plugins.octoprint.org</a></li>
102+
<li>
103+
<a href="{{ '/help/github_integration/' | prepend: site.baseurl }}"
104+
>GitHub Integration on plugins.octoprint.org</a
105+
>
106+
</li>
40107
</ul>
41108
</li>
42109
<li class="dropdown">
43-
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">Lists <b class="caret"></b></a>
110+
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"
111+
>Lists <b class="caret"></b
112+
></a>
44113
<ul class="dropdown-menu">
45114
<li><a href="{{ '/blacklist/' | prepend: site.baseurl }}">Blacklist</a></li>
46115
<li><a href="{{ '/notices/' | prepend: site.baseurl }}">Notices</a></li>
47116
<li><a href="{{ '/overlays/' | prepend: site.baseurl }}">Overlays</a></li>
48-
<li><a href="{{ '/abandoned/' | prepend: site.baseurl }}">Abandoned plugins</a></li>
117+
<li>
118+
<a href="{{ '/abandoned/' | prepend: site.baseurl }}"
119+
>Abandoned plugins</a
120+
>
121+
</li>
49122
</ul>
50123
</li>
51124
</ul>
52125
</div>
53126
</div>
54127
</div>
55-
</div>
128+
</div>

_layouts/plugin_list.html

Lines changed: 63 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,97 +3,107 @@
33
---
44

55
<div class="plugin-list row-liquid">
6-
<div class="span8">
7-
{{ content }}
8-
</div>
6+
<div class="span8">{{ content }}</div>
97
<div class="span4">
108
<h2><i class="fa fa-search"></i> Search</h2>
119

1210
{% include search.html %}
1311

14-
<div class="ad">
15-
{% include adsnippet_desktop.html %}
16-
</div>
12+
<div class="ad">{% include adsnippet_desktop.html %}</div>
1713

1814
<h2><i class="far fa-lightbulb"></i> Help</h2>
1915

2016
<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+
>.
2222
</p>
2323
<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+
>.
2529
</p>
2630
<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+
>.
2836
</p>
2937
<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!
3144
</p>
3245

3346
<h2><i class="fa fa-chart-line"></i> Stats</h2>
3447

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 %}
6662

6763
<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+
>
7070
are marked as Python 3 compatible.
7171
</p>
7272

7373
<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.
7679
</p>
7780

7881
<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.
8084
</p>
8185

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 %}
8690
<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>
8894
<ul>
8995
{% for plugin in popular_plugins %}
9096
<li>
9197
<a href="{{ plugin.url | prepend: site.baseurl }}">{{ plugin.title }}</a>
9298
</li>
9399
{% endfor %}
94100
</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+
>
96107
{% endif %}
97-
98108
</div>
99109
</div>

0 commit comments

Comments
 (0)