Skip to content

Commit 8656f89

Browse files
add licenses and attribution
1 parent 203fb6c commit 8656f89

7 files changed

Lines changed: 112 additions & 16 deletions

File tree

_data/licenses.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
gamepad-helper:
3+
name: LizardByte/gamepad-helper
4+
version: '2025.501.232754'
5+
url: https://github.com/LizardByte/gamepad-helper/
6+
license: MIT
7+
shared-web:
8+
name: LizardByte/shared-web
9+
version: '2025.326.11214'
10+
url: https://github.com/LizardByte/shared-web/
11+
license: AGPL-3.0
12+
beautiful-jekyll:
13+
name: Beautiful Jekyll
14+
url: https://github.com/daattali/beautiful-jekyll/
15+
license: MIT
16+
bootstrap:
17+
name: Bootstrap
18+
url: https://getbootstrap.com/
19+
license: MIT
20+
bundler:
21+
name: Bundler
22+
url: https://bundler.io/
23+
license: MIT
24+
button-icons:
25+
name: Button Icons and Controls
26+
url: https://zacksly.itch.io/
27+
license: CC BY 3.0
28+
chartjs:
29+
name: Chart.js
30+
version: '4.4.9'
31+
url: https://www.chartjs.org/
32+
license: MIT
33+
giscus:
34+
name: Giscus
35+
url: https://giscus.app/
36+
license: MIT
37+
jekyll:
38+
name: Jekyll
39+
url: https://jekyllrb.com/
40+
license: MIT
41+
jquery:
42+
name: jQuery
43+
version: '3.7.1'
44+
url: https://jquery.com/
45+
license: MIT
46+
marked:
47+
name: Marked
48+
version: '15.0.8'
49+
url: https://marked.js.org/
50+
license: MIT

_includes/footer-extra.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
<a title="Privacy Policy" href="{{ '/privacy' | relative_url }}" class="text_muted">Privacy</a>
44
&nbsp;&bull;&nbsp;
55
<a title="Terms and Conditions" href="{{ '/terms' | relative_url }}" class="text_muted">Terms</a>
6+
&nbsp;&bull;&nbsp;
7+
<a title="Licenses and Attribution" href="{{ '/licenses' | relative_url }}" class="text_muted">Licenses</a>

_includes/license-entry.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<li class="list-group-item bg-dark text-white">
2+
<div class="d-flex justify-content-between align-items-center">
3+
<div>
4+
<strong>{{ include.item.name }}</strong>
5+
{% if include.item.version %}<span class="ms-2 badge bg-secondary">{{ include.item.version }}</span>{% endif %}
6+
<small class="d-block text-muted">
7+
<a href="{{ include.item.url }}" target="_blank" class="text-info">{{ include.item.url }}</a>
8+
</small>
9+
</div>
10+
<span class="badge bg-primary">{{ include.item.license }}</span>
11+
</div>
12+
</li>

_sass/styles.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,19 @@ img.invert {
143143
table tr:nth-child(2n) {
144144
background-color: var(--footer-col);
145145
}
146+
147+
.list-group-item.bg-dark {
148+
border-color: var(--navbar-col);
149+
}
150+
151+
.list-group-item.bg-dark .text-muted {
152+
color: var(--text-col);
153+
}
154+
155+
.list-group-item.bg-dark a {
156+
text-decoration: none;
157+
}
158+
159+
.list-group-item.bg-dark a:hover {
160+
text-decoration: underline;
161+
}

assets/js/gamepad-tester.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
document.addEventListener('DOMContentLoaded', function() {
22
const gamepadHelper = new GamepadHelper()
3-
const gamepadHelperVersion = '2025.501.232754'
3+
const gamepadHelperVersion = window.gamepadHelperVersion;
44
let gamepads = {};
55
let activeGamepadIndex = null;
66
let animationFrameId = null;
@@ -17,20 +17,6 @@ document.addEventListener('DOMContentLoaded', function() {
1717
return;
1818
}
1919

20-
// Initialize button colors for various states
21-
const buttonColors = {
22-
'standard': {
23-
'inactive': 'btn-outline-primary',
24-
'active': 'btn-primary'
25-
},
26-
};
27-
28-
// Axis names mapping
29-
const axisNames = [
30-
'Left Stick X', 'Left Stick Y',
31-
'Right Stick X', 'Right Stick Y'
32-
];
33-
3420
// Setup gamepad event listeners
3521
window.addEventListener("gamepadconnected", function(e) {
3622
gamepads[e.gamepad.index] = e.gamepad;

gamepad-tester.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
css:
66
- /assets/css/hide-heading.css
77
ext-js:
8-
- https://cdn.jsdelivr.net/npm/chart.js@4.4.3/dist/chart.umd.min.js
8+
- https://cdn.jsdelivr.net/npm/chart.js@4.4.9/dist/chart.umd.min.js
99
- https://cdn.jsdelivr.net/npm/@lizardbyte/gamepad-helper@2025.501.232754/dist/gamepad-helper.js
1010
js:
1111
- /assets/js/gamepad-tester.js
1212
---
13+
<script>
14+
window.gamepadHelperVersion = "{{ site.data.licenses.gamepad-helper.version }}";
15+
</script>
1316

1417
<!-- Gamepad Tester section -->
1518
<section class="py-0" id="GamepadTester">

licenses.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Licenses & Attributions
3+
layout: page
4+
css:
5+
- /assets/css/hide-heading.css
6+
---
7+
8+
<div class="container py-4">
9+
<h2 class="mb-4">Licenses & Attributions</h2>
10+
11+
<p class="lead">This website makes use of the following third-party tools, libraries, and resources.</p>
12+
13+
<div class="card bg-dark text-white mb-4">
14+
<div class="card-header">
15+
<h5 class="card-title mb-0">Dependencies</h5>
16+
</div>
17+
<div class="card-body">
18+
<ul class="list-group list-group-flush">
19+
{% for license in site.data.licenses %}
20+
{% assign key = license[0] %}
21+
{% assign item = license[1] %}
22+
{% include license-entry.html item=item %}
23+
{% endfor %}
24+
</ul>
25+
</div>
26+
</div>
27+
</div>

0 commit comments

Comments
 (0)