Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit e196e84

Browse files
authored
fix: use website url for ext-projects when available (#467)
1 parent 8c75267 commit e196e84

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

src/components/__tests__/__snapshots__/Header.spec.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Array [
3636
>
3737
<a
3838
className="leftSideLink"
39-
href="#"
39+
href="/"
4040
>
4141
Open Source
4242
</a>

src/pages/__tests__/__snapshots__/collection.spec.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`Data Collection Agents Page Renders correctly 1`] = `
3838
>
3939
<a
4040
className="leftSideLink"
41-
href="#"
41+
href="/"
4242
>
4343
Open Source
4444
</a>
@@ -289,7 +289,7 @@ exports[`Data Collection Agents Page Renders correctly 1`] = `
289289
className="version footerMeta"
290290
>
291291
Version
292-
1.0.3
292+
1.0.10
293293
</small>
294294
</div>
295295
</section>

src/pages/__tests__/__snapshots__/external-projects.spec.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`External Projects Page Renders correctly 1`] = `
3838
>
3939
<a
4040
className="leftSideLink"
41-
href="#"
41+
href="/"
4242
>
4343
Open Source
4444
</a>
@@ -254,7 +254,7 @@ exports[`External Projects Page Renders correctly 1`] = `
254254
className="version footerMeta"
255255
>
256256
Version
257-
1.0.3
257+
1.0.10
258258
</small>
259259
</div>
260260
</section>

src/pages/__tests__/__snapshots__/index.spec.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`HomePage Renders correctly 1`] = `
3838
>
3939
<a
4040
className="leftSideLink"
41-
href="#"
41+
href="/"
4242
>
4343
Open Source
4444
</a>
@@ -394,7 +394,7 @@ exports[`HomePage Renders correctly 1`] = `
394394
className="version footerMeta"
395395
>
396396
Version
397-
1.0.3
397+
1.0.10
398398
</small>
399399
</div>
400400
</section>

src/pages/__tests__/__snapshots__/oss-category.spec.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`OSS Category Page Renders correctly 1`] = `
3838
>
3939
<a
4040
className="leftSideLink"
41-
href="#"
41+
href="/"
4242
>
4343
Open Source
4444
</a>
@@ -510,7 +510,7 @@ exports[`OSS Category Page Renders correctly 1`] = `
510510
className="version footerMeta"
511511
>
512512
Version
513-
1.0.3
513+
1.0.10
514514
</small>
515515
</div>
516516
</section>

src/templates/__tests__/__snapshots__/external-project-page.spec.js.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`Adopt OpenJDK Renders correctly 1`] = `
3838
>
3939
<a
4040
className="leftSideLink"
41-
href="#"
41+
href="/"
4242
>
4343
Open Source
4444
</a>
@@ -315,7 +315,7 @@ exports[`Adopt OpenJDK Renders correctly 1`] = `
315315
className="version footerMeta"
316316
>
317317
Version
318-
1.0.3
318+
1.0.10
319319
</small>
320320
</div>
321321
</section>
@@ -361,7 +361,7 @@ exports[`Open Telemetry Page Renders correctly 1`] = `
361361
>
362362
<a
363363
className="leftSideLink"
364-
href="#"
364+
href="/"
365365
>
366366
Open Source
367367
</a>
@@ -638,7 +638,7 @@ exports[`Open Telemetry Page Renders correctly 1`] = `
638638
className="version footerMeta"
639639
>
640640
Version
641-
1.0.3
641+
1.0.10
642642
</small>
643643
</div>
644644
</section>
@@ -684,7 +684,7 @@ exports[`W3C Distributed Tracing Working Group Renders correctly 1`] = `
684684
>
685685
<a
686686
className="leftSideLink"
687-
href="#"
687+
href="/"
688688
>
689689
Open Source
690690
</a>
@@ -1189,7 +1189,7 @@ exports[`W3C Distributed Tracing Working Group Renders correctly 1`] = `
11891189
className="version footerMeta"
11901190
>
11911191
Version
1192-
1.0.3
1192+
1.0.10
11931193
</small>
11941194
</div>
11951195
</section>

src/templates/external-project-page.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ const ExternalProjectPage = ({ data }) => {
117117
<div className={styles.callToActionButtons}>
118118
<div className={styles.callToActionButtonsContainer}>
119119
<a
120-
href={`${project.githubUrl}`}
120+
href={`${get(project, ['website', 'url'], '') ||
121+
project.githubUrl}`}
121122
className="button button-primary"
122123
target="__blank"
123124
rel="noopener noreferrer"

0 commit comments

Comments
 (0)