Skip to content

Commit

Permalink
address deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tdamsma committed Jun 13, 2024
1 parent c125b97 commit b87caf0
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 4,818 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml → .github/workflows/bun.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: bun

on:
push:
Expand All @@ -17,12 +17,17 @@ jobs:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install --check-files

- name: Run linting
run: bun lint

- name: Check images
run: node ./check-images.js

- name: Run build
run: bun run build
38 changes: 0 additions & 38 deletions README copy.md

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ All structured content is in Markdown files that is converted to a static websit

## Develop

npm run dev
the repo is build with bun, but on windows you can use npm

npm run dev

## reduce image sizes

Expand Down
Binary file modified bun.lockb
Binary file not shown.
37 changes: 37 additions & 0 deletions check-images.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import fs from 'fs';
import path from 'path';
import sharp from 'sharp';

const supportedFormats = ['.jpg', '.jpeg', '.png', '.webp', '.tiff', '.gif', '.svg', '.heif'];

async function checkImages(dir) {
try {
const files = await fs.promises.readdir(dir, { withFileTypes: true });
for (const file of files) {
const filePath = path.join(dir, file.name);
if (file.isDirectory()) {
await checkImages(filePath);
} else if (file.isFile()) {
const ext = path.extname(file.name).toLowerCase();
if (supportedFormats.includes(ext)) {
try {
// Attempt to read the metadata of the image file
await sharp(filePath).metadata();
// Attempt to resize the image
await sharp(filePath)
.resize(100, 100) // Resizing to 100x100 pixels
.toBuffer();
console.log(`Valid image: ${filePath}`);
} catch (error) {
console.error(`Invalid image or unsupported format: ${filePath} - ${error.message}`);
}
}
}
}
} catch (err) {
console.error(`Error reading directory ${dir}: ${err.message}`);
}
}

checkImages(path.join(process.cwd(), 'content'));
checkImages(path.join(process.cwd(), 'static'));
1 change: 0 additions & 1 deletion content/coaching/coaching-bij-talentprogrammas.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ You want young talents to commit to your organization for a longer period by giv
In our Talent Development Programs, participants learn to recognize their own talents, gain confidence in those talents, turn them into actions, and navigate a well-founded and independent course. In the lives of twenty- and thirty-somethings, so much can happen that coaching can help address doubts, obstacles, and life questions in a timely manner.

![image trees](./coaching-en-talentprogrammas-2.jpg)

3 changes: 1 addition & 2 deletions content/coaching/coaching-voor-jouw-medewerkers.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ img: coaching-voor-jouw-medewerkers-1.jpg
alt: a standing conversation
volgnummer: 5
---

> ”A lot is happening on our work floor. This is a time when our employees could use some extra attention.”
If you think it's important that people in your organization receive some extra guidance, then you want to organize it well. We are happy to think along with you or get started for you right away. Read below how!
Expand All @@ -22,8 +23,6 @@ What does walk-in coaching look like? On fixed days, one of our coaches comes to

We also offer 'coaching punch cards' to organisations that want to facilitate easy access to coaching. We would like to tell you more about how it works!



For some themes, it can be effective to work in a group setting. Take a look at our [training](/trainingen/) to get a better idea of what we can offer.

![urban image](./coaching-voor-jouw-medewerkers-2.jpg)
1 change: 0 additions & 1 deletion content/coaching/coaching-voor-jouw-medewerkers.nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ Hoe ziet de inloopcoaching eruit? Op vaste dagen komt één van onze coaches naa
Wat we ook aanbieden is een strippenkaart voor 5 of 10 coachgesprekken. Op die manier kun je als organisatie vooraf een aantal sessies inkopen en kunnen medewerkers zich vervolgens laagdrempelig zelf aanmelden. We kunnen afspraken maken over de manier waarop het aanmelden gebeurt en welke terugkoppeling we geven naar leidinggevenden en/of HR. Het grootste voordeel van de strippenkaart is dat er geen vertraging op de lijn zit: wanneer een collega bemerkt dat het tijd is voor een gesprek, kan direct contact met de coach gezocht worden.
Ongebruikte strippen kunnen gecrediteerd worden.


![afbeelding stedelijk](./coaching-voor-jouw-medewerkers-2.jpg)
1 change: 1 addition & 0 deletions content/coaching/stappen-nemen-in-je-loopbaan.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ img: stappen-nemen-loopbaan-1.jpg
alt: Text on a mood board saying Just start
volgnummer: 1
---

> “I often hear that I have more talent than I use. I want to better understand and utilize my qualities. Maybe I am ready for the next step.”
Career coaching offers an opportunity for thorough self-examination. It involves exploring who you are, what meaningful work means to you, and what unique talents you possess. You will discover what is needed to take a step you previously didn't dare to take.
Expand Down
Loading

0 comments on commit b87caf0

Please sign in to comment.