Skip to content

Commit 8cfebed

Browse files
committed
Fix images and data loading on home page
1 parent abb4860 commit 8cfebed

File tree

4 files changed

+595
-15
lines changed

4 files changed

+595
-15
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,20 @@ jobs:
1919
- name: Install jq
2020
uses: r26d/jq-action@master
2121

22+
- name: Create static/data directory
23+
run: mkdir -p static/data
24+
2225
- name: Fetch Contributors
23-
run: "curl https://api.github.com/repos/owncast/owncast/contributors?per_page=100 | jq 'map(.) | .[] | {login: .login, avatar_url: .avatar_url, html_url: .html_url}' | jq --slurp '.' > data/contributors-core.json"
26+
run: "curl https://api.github.com/repos/owncast/owncast/contributors?per_page=100 | jq 'map(.) | .[] | {login: .login, avatar_url: .avatar_url, html_url: .html_url}' | jq --slurp '.' > static/data/contributors-core.json"
2427

2528
- name: Fetch Home Page Contributors
26-
run: "curl https://api.github.com/repos/owncast/owncast.github.io/contributors?per_page=100 | jq 'map(.) | .[] | {login: .login, avatar_url: .avatar_url, html_url: .html_url}' | jq --slurp '.' > data/contributors-homepage.json"
29+
run: "curl https://api.github.com/repos/owncast/owncast.github.io/contributors?per_page=100 | jq 'map(.) | .[] | {login: .login, avatar_url: .avatar_url, html_url: .html_url}' | jq --slurp '.' > static/data/contributors-homepage.json"
2730

2831
- name: Combine Contributors
29-
run: "jq -n 'input | . as $core | (input | . as $homepage | $core + $homepage) | unique_by(.login)' data/contributors-core.json data/contributors-homepage.json > data/contributors.json"
32+
run: "jq -n 'input | . as $core | (input | . as $homepage | $core + $homepage) | unique_by(.login)' static/data/contributors-core.json static/data/contributors-homepage.json > static/data/contributors.json"
3033

3134
- name: Fetch donors
32-
run: 'curl https://opencollective.com/owncast/members/all.json | jq ''map(.) | .[] | select(.role=="BACKER") | {login: .name, avatar_url: .image, html_url: .profile}'' | jq --slurp ''.'' > data/donors.json'
35+
run: 'curl https://opencollective.com/owncast/members/all.json | jq ''map(.) | .[] | select(.role=="BACKER") | {login: .name, avatar_url: .image, html_url: .profile}'' | jq --slurp ''.'' > static/data/donors.json'
3336

3437
# - name: Add current development documentation
3538
# run: mkdir -p static/api/development && curl https://raw.githubusercontent.com/owncast/owncast/refs/heads/develop/docs/api/index.html > static/api/development/index.html
@@ -39,7 +42,7 @@ jobs:
3942
author_name: Owncast
4043
author_email: [email protected]
4144
message: "Update dynamic content"
42-
add: "data/contributors.json static/roadmap/index.html"
45+
add: "static/data/contributors.json static/data/donors.json static/roadmap/index.html"
4346
env:
4447
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4548

src/pages/index.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,22 @@ function KeyPoints() {
8181
const keyPoints = [
8282
{
8383
title: 'Self hosted and Independent',
84-
icon: '/img/key-selfhosted.svg',
84+
icon: '/images/key-selfhosted.svg',
8585
description: 'Have complete control and ownership over your stream, allowing you to create the content and community you want.',
8686
},
8787
{
8888
title: 'Chat',
89-
icon: '/img/key-chat.svg',
89+
icon: '/images/key-chat.svg',
9090
description: 'The frictionless built-in chat allows your viewers to be a part of the action. Include custom emotes and build chat bots to encourage engagement from your viewers.',
9191
},
9292
{
9393
title: 'Works with your software',
94-
icon: '/img/key-videosoftware.svg',
94+
icon: '/images/key-videosoftware.svg',
9595
description: 'Point your existing broadcasting software at your Owncast server and begin streaming on your own server in minutes.',
9696
},
9797
{
9898
title: 'The Fediverse',
99-
icon: '/img/key-fediverse.svg',
99+
icon: '/images/key-fediverse.svg',
100100
description: 'Your live stream can reach a wider audience on The Fediverse, allowing people to follow and share your stream on Mastodon and other Fediverse services.',
101101
},
102102
];
@@ -128,12 +128,12 @@ function KeyPoints() {
128128

129129
function Sponsors() {
130130
const sponsors = [
131-
{ name: 'cypress', src: '/img/sponsors/cypress.png', url: 'https://cloud.cypress.io/projects/wwi3xe' },
132-
{ name: 'fastly', src: '/img/sponsors/fastly.png', url: 'https://www.fastly.com/fast-forward' },
133-
{ name: 'chromatic', src: '/img/sponsors/chromatic.png', url: 'https://www.chromatic.com/builds?appId=629132c6e23893003a9e89c5' },
134-
{ name: 'docker', src: '/img/sponsors/docker.png', url: 'https://hub.docker.com/u/owncast' },
135-
{ name: 'rocket chat', src: '/img/sponsors/rocketchat.png', url: 'https://rocket.chat' },
136-
{ name: 'digital ocean', src: '/img/sponsors/digitalocean.svg', url: 'https://digitalocean.com?utm_medium=opensource&utm_source=owncast' },
131+
{ name: 'cypress', src: '/images/sponsors/cypress.png', url: 'https://cloud.cypress.io/projects/wwi3xe' },
132+
{ name: 'fastly', src: '/images/sponsors/fastly.png', url: 'https://www.fastly.com/fast-forward' },
133+
{ name: 'chromatic', src: '/images/sponsors/chromatic.png', url: 'https://www.chromatic.com/builds?appId=629132c6e23893003a9e89c5' },
134+
{ name: 'docker', src: '/images/sponsors/docker.png', url: 'https://hub.docker.com/u/owncast' },
135+
{ name: 'rocket chat', src: '/images/sponsors/rocketchat.png', url: 'https://rocket.chat' },
136+
{ name: 'digital ocean', src: '/images/sponsors/digitalocean.svg', url: 'https://digitalocean.com?utm_medium=opensource&utm_source=owncast' },
137137
];
138138

139139
return (
File renamed without changes.

0 commit comments

Comments
 (0)