Skip to content

Commit c21e1ab

Browse files
author
doomy
committed
Added more license info for each format
1 parent 33431e5 commit c21e1ab

4 files changed

Lines changed: 56 additions & 24 deletions

File tree

content/formats.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# # Short synopsis of the format
1212
# description = "This format was designed for Plan9 computers only"
1313
#
14-
# # Whether or not the format is permissively licensed
15-
# proprietary = false
14+
# # The license of the format
15+
# license = { name = "MIT", url = "https://example.com/license.html" }
1616
#
1717
# # Optionally, list crates that work with this format
1818
# crates = [
@@ -27,8 +27,8 @@
2727

2828
[[formats]]
2929
name = "VST"
30-
description = "VST2 was one of the most common standards, but is now unlicensed. Instead, VST3 is recommended. VSTs are generally supported in most DAWs."
31-
proprietary = true
30+
description = "VST can refer to several different versions of the VST format by Steinberg. VST2 was one of the most common standards, but is now unlicensed. Instead, VST3 is recommended and is generally supported in most DAWs. Note that the Rust vst3-sys crate currently relies on GPLv3 code."
31+
license = { name = "GPLv3 or Proprietary", url = "https://developer.steinberg.help/pages/viewpage.action?pageId=9797944" }
3232
crates = [
3333
{ name = "vst", url = "https://github.com/RustAudio/vst-rs" },
3434
{ name = "vst3-sys", url = "https://github.com/RustAudio/vst3-sys" },
@@ -38,7 +38,7 @@ resources = []
3838
[[formats]]
3939
name = "AudioUnit"
4040
description = "AudioUnit (AU) is only available on Apple platforms. AU v2 is simlar to VST, and AU v3 follows an Apple framework approach, which is harder to implement without Apple tools. Currently, no Rust libraries implement the AudioUnit standard."
41-
proprietary = true
41+
license = { name = "Proprietary", url = "https://developer.apple.com/licensing-trademarks/audio-units/" }
4242
resources = [
4343
{ name = "Rust CoreAudio - AudioUnit struct documentation", url = "http://rustaudio.github.io/coreaudio-rs/coreaudio/audio_unit/struct.AudioUnit.html" },
4444
{ name = "Rust CoreAudio - Possibility of creating AU plugins", url = "https://github.com/RustAudio/coreaudio-rs/issues/52" },
@@ -49,7 +49,7 @@ resources = [
4949
[[formats]]
5050
name = "LV2"
5151
description = "LV2 is only supported on Linux with a few exceptions. One interesting feature is that all LV2 plugin hosts and plugins are backwards compatible with previous versions."
52-
proprietary = false
52+
license = { name = "ISC", url = "https://gitlab.com/lv2/lv2/-/blob/master/COPYING" }
5353
crates = [
5454
{ name = "rust-lv2", url = "https://github.com/RustAudio/rust-lv2" },
5555
{ name = "lv2rs", url = "https://github.com/Janonard/lv2rs" },
@@ -61,7 +61,7 @@ resources = [
6161
[[formats]]
6262
name = "CLAP"
6363
description = "CLAP is a relatively new plugin format with permissive licensing. It does not currently have wide support outside of Bitwig."
64-
proprietary = false
64+
license = { name = "MIT", url = "https://github.com/free-audio/clap/blob/main/LICENSE" }
6565
crates = [
6666
{ name = "clap-lv2", url = "https://github.com/glowcoil/clap-sys" },
6767
]

sass/_colors.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
$border-light: #e1d8dd;
1+
$border: #e1d8dd;
22
$background: #ffffff;
3+
$background-low: #f3f3f3;
34
$primary: #09184f;
4-
5+
$contrast: darken($primary, 10);
6+
$contrast-low: lighten(desaturate($primary, 70), 20);
57
$shadow: 0px 0px 3px 0px #1110121a;

sass/main.scss

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,32 @@ a.button {
6464
}
6565
}
6666

67+
a.tag {
68+
background: $background-low;
69+
font-weight: 600;
70+
padding: 0.1em 0.6em;
71+
border-radius: 1000px;
72+
color: $contrast-low;
73+
display: inline-block;
74+
border: 1px solid $border;
75+
font-size: 0.8rem;
76+
vertical-align: baseline;
77+
i{height: 0; svg{width:16px}}
78+
&:hover {
79+
background: darken($background-low, 5);
80+
}
81+
&:active {
82+
background: darken($background-low, 10);
83+
}
84+
}
85+
86+
i{
87+
vertical-align: middle;
88+
svg {
89+
width: 24px;
90+
}
91+
}
92+
6793
.container {
6894
max-width: 800px;
6995
width: 100%;
@@ -86,7 +112,7 @@ a.button {
86112
}
87113

88114
hr {
89-
border: 1px solid $border-light;
115+
border: 1px solid $border;
90116
margin: 3em 0;
91117
}
92118

@@ -156,35 +182,35 @@ section {
156182
margin: 0;
157183
}
158184
.crate {
159-
border-bottom: 1px $border-light solid;
160-
border-right: 1px $border-light solid;
185+
border-bottom: 1px $border solid;
186+
border-right: 1px $border solid;
161187
@media screen and ( min-width: 960px) {
162188
&:nth-child(4n), &:last-child {
163189
border-right: none;
164190
}
165191
&:nth-child(-n+4) {
166-
border-top: 1px $border-light solid;
192+
border-top: 1px $border solid;
167193
}
168194
}
169195
@media screen and (max-width: 960px) and (min-width: 720px) {
170196
&:nth-child(3n), &:last-child {
171197
border-right: none;
172198
}
173199
&:nth-child(-n+3) {
174-
border-top: 1px $border-light solid;
200+
border-top: 1px $border solid;
175201
}
176202
}
177203
@media screen and (max-width: 720px) and (min-width: 500px) {
178204
&:nth-child(2n), &:last-child {
179205
border-right: none;
180206
}
181207
&:nth-child(-n+2) {
182-
border-top: 1px $border-light solid;
208+
border-top: 1px $border solid;
183209
}
184210
}
185211
@media screen and (max-width: 500px) {
186212
border: none;
187-
border-top: 1px $border-light solid;
213+
border-top: 1px $border solid;
188214
}
189215
display: flex;
190216
justify-content: space-between;

templates/index.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,25 @@ <h2>Resources</h2>
5252
<h2>Audio plugin formats</h2>
5353
{% set formats = load_data(path="content/formats.toml") %}
5454
{% for format in formats.formats %}
55-
<h3>
55+
<h3 style="display: inline-block;">
5656
<pre>{{format.name}}</pre>
5757
</h3>
5858

59-
<small>{% if format.proprietary %}Proprietary{% else %}Free & Open Source
60-
{% endif %}</small>
59+
60+
<span style="vertical-align: text-bottom; margin-left: 0.5em;">
61+
{% if format.license.url %}<a target="_blank" class="license tag" href={{format.license.url}}>{% endif %}
62+
{{format.license.name}}
63+
{% if format.license.url %}➜
64+
</a>{% endif %}
65+
</span>
6166

6267
<p>{{format.description}}</p>
6368

6469
{% if format.resources %}
6570
<h4>Resources</h4>
6671
<ul>
6772
{% for resource in format.resources %}
68-
<a href={{resource.url}}>
73+
<a target="_blank" href={{resource.url}}>
6974
<li>{{resource.name}}</li>
7075
</a>
7176
{% endfor %}
@@ -76,7 +81,7 @@ <h4>Resources</h4>
7681
<h4>Crates</h4>
7782
<ul>
7883
{% for crate in format.crates %}
79-
<a href={{crate.url}}>
84+
<a target="_blank" href={{crate.url}}>
8085
<li>{{crate.name}}</li>
8186
</a>
8287
{% endfor %}
@@ -94,7 +99,7 @@ <h1>DSP resources</h1>
9499
<h2>{{group | capitalize}}</h2>
95100
<ul>
96101
{% for resource in resources %}
97-
<a href={{resource.url}}>
102+
<a target="_blank" href={{resource.url}}>
98103
<li>{{resource.name}}</li>
99104
</a>
100105
{% endfor %}
@@ -108,13 +113,12 @@ <h2>{{group | capitalize}}</h2>
108113
{# Crates #}
109114

110115
<section>
111-
<h2>Projects</h2>
112116
<h2 class="container-full">Rust Audio Crates</h2>
113117
<div class="crates">
114118
{% set crates = load_data(url=config.extra.repos_url, format="json") %}
115119
{% for crate in crates | sort(attribute="updated_at") | reverse %}
116120
<div class="crate">
117-
<a href={{crate.svn_url}}>
121+
<a target="_blank" href={{crate.svn_url}}>
118122
<h5>
119123
<pre>{{ crate.name }}</pre>
120124
</h5>

0 commit comments

Comments
 (0)