Skip to content

Commit f27a382

Browse files
committed
fix(docs): fix links to images and pages; bump astro from 4.16.18 to 5.16.2
1 parent a9aed4c commit f27a382

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

advent-of-calm/website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"copy:content": "mkdir -p src/content/days && cp ../day-*.md src/content/days/ && cp ../home.md src/"
1212
},
1313
"dependencies": {
14-
"astro": "^4.16.18",
15-
"@astrojs/check": "^0.9.4",
14+
"@astrojs/check": "^0.9.6",
15+
"astro": "^5.16.2",
1616
"typescript": "^5.6.3"
1717
},
1818
"devDependencies": {

advent-of-calm/website/src/components/Calendar.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const days = getAllDays();
77
<div class="calendar-grid" id="calendar-grid">
88
{days.map(({ day, unlocked, title }) => (
99
<a
10-
href={unlocked ? `/day/${day}` : '#'}
10+
href={unlocked ? `./day/${day}` : '#'}
1111
class:list={['calendar-day', { locked: !unlocked, unlocked }]}
1212
title={unlocked ? title : `Unlocks December ${day}`}
1313
aria-disabled={!unlocked}
@@ -117,7 +117,7 @@ const days = getAllDays();
117117
const dayElement = day as HTMLElement;
118118
dayElement.classList.remove('locked');
119119
dayElement.classList.add('unlocked');
120-
dayElement.setAttribute('href', `/day/${dayNumber}`);
120+
dayElement.setAttribute('href', `./day/${dayNumber}`);
121121
dayElement.removeAttribute('aria-disabled');
122122
dayElement.style.pointerEvents = 'auto';
123123
dayElement.style.cursor = 'pointer';

advent-of-calm/website/src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { title, description = "A 24-day progressive learning challenge for CALM"
2020
<header>
2121
<div class="container">
2222
<nav>
23-
<a href="/" class="title-link"><h1 class="title">🎄 Advent of CALM 🎄</h1></a>
23+
<a href={import.meta.env.BASE_URL} class="title-link"><h1 class="title">🎄 Advent of CALM 🎄</h1></a>
2424
<a href="https://calm.finos.org" target="_blank" rel="noopener noreferrer" class="logo">
2525
<img src={`${import.meta.env.BASE_URL}brand/2025_CALM_Horizontal_Navbar_Logo.svg`} alt="CALM Logo" />
2626
</a>

advent-of-calm/website/src/pages/day/[day].astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const nextUnlocked = nextDay && isUnlocked(nextDay);
2626
<nav class="day-nav">
2727
<div class="nav-left">
2828
{prevDay && (
29-
<a href={`/day/${prevDay}`} class="nav-button prev">
29+
<a href={`${prevDay}`} class="nav-button prev">
3030
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
3131
<path d="M15 18l-6-6 6-6"/>
3232
</svg>
@@ -35,11 +35,11 @@ const nextUnlocked = nextDay && isUnlocked(nextDay);
3535
)}
3636
</div>
3737
<div class="nav-center">
38-
<a href="/" class="nav-button home">Calendar</a>
38+
<a href="../" class="nav-button home">Calendar</a>
3939
</div>
4040
<div class="nav-right">
4141
{nextDay && nextUnlocked && (
42-
<a href={`/day/${nextDay}`} class="nav-button next">
42+
<a href={`${nextDay}`} class="nav-button next">
4343
Day {nextDay}
4444
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
4545
<path d="M9 18l6-6-6-6"/>
@@ -65,7 +65,7 @@ const nextUnlocked = nextDay && isUnlocked(nextDay);
6565
<nav class="day-nav bottom">
6666
<div class="nav-left">
6767
{prevDay && (
68-
<a href={`/day/${prevDay}`} class="nav-button prev">
68+
<a href={`${prevDay}`} class="nav-button prev">
6969
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
7070
<path d="M15 18l-6-6 6-6"/>
7171
</svg>
@@ -74,11 +74,11 @@ const nextUnlocked = nextDay && isUnlocked(nextDay);
7474
)}
7575
</div>
7676
<div class="nav-center">
77-
<a href="/" class="nav-button home">Back to Calendar</a>
77+
<a href="../" class="nav-button home">Back to Calendar</a>
7878
</div>
7979
<div class="nav-right">
8080
{nextDay && nextUnlocked && (
81-
<a href={`/day/${nextDay}`} class="nav-button next">
81+
<a href={`${nextDay}`} class="nav-button next">
8282
Day {nextDay}
8383
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
8484
<path d="M9 18l6-6-6-6"/>

0 commit comments

Comments
 (0)