Skip to content

Commit 4e66599

Browse files
committed
Personal website
0 parents  commit 4e66599

167 files changed

Lines changed: 33613 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/deploy.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v5
22+
- uses: actions/setup-node@v5
23+
with:
24+
node-version: 22
25+
cache: npm
26+
- run: npm ci
27+
- run: npm run build
28+
env:
29+
# Settings → Secrets and variables → Actions → Variables
30+
PUBLIC_GOOGLE_SITE_VERIFICATION: ${{ vars.GOOGLE_SITE_VERIFICATION }}
31+
PUBLIC_BING_SITE_VERIFICATION: ${{ vars.BING_SITE_VERIFICATION }}
32+
- uses: actions/upload-pages-artifact@v4
33+
with:
34+
path: dist
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- id: deployment
44+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
dist/
3+
.astro/
4+
.env
5+
.env.*
6+
.DS_Store
7+
NOTES.private.md

‎README.md‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# kacperpawlowski.tech
2+
3+
Personal site of Kacper Pawlowski, AI engineer - projects, articles and an in-browser YOLO26 demo.
4+
Static site built with [Astro](https://astro.build), deployed to GitHub Pages.
5+
6+
## Develop
7+
8+
```bash
9+
npm install
10+
npm run dev # http://localhost:4321
11+
npm run build # type check + static build into dist/
12+
npm run preview # serve dist/
13+
```
14+
15+
Node 22.12 or newer.
16+
17+
## Content
18+
19+
| What | Where |
20+
|---|---|
21+
| Projects | `src/content/projects/*.md` - front matter: title, summary, description (≤ 170 chars, used as meta description), area, order, featured, repo, tags, cover, metrics, status |
22+
| Articles | `src/content/writing/{en,nb,pl}/<slug>.md` - one folder per language; the same file name in each folder is the same article (title, description, published, tags, cover, project). Pages: `/writing/<slug>/`, `/no/artikler/<slug>/`, `/pl/artykuly/<slug>/`, linked with a language switch and hreflang |
23+
| Personal data, CV | `src/data/site.ts` (used by pages, structured data, RSS and llms.txt) |
24+
| Hero video | `public/media/drive/{detect,segment,depth}.mp4` + posters |
25+
| Background point cloud | `public/data/street.bin` (KITTI 07, int16 xyz × 0.02 m + uint8 intensity) |
26+
| Lab models | `public/models/yolo26n-{int8,fp32}.onnx` |
27+
28+
Share images (`/og/**.png`) are rendered at build time from each page's title and cover
29+
(`src/lib/og.ts`). A new article or project gets one automatically.
30+
31+
## Search engines
32+
33+
Generated on every build: `sitemap-index.xml`, `robots.txt`, `rss.xml`, `llms.txt`, canonical URLs,
34+
hreflang (`/` ↔ `/no/`), Open Graph/Twitter cards and schema.org JSON-LD (Person, WebSite,
35+
ProfilePage, BlogPosting, SoftwareSourceCode, BreadcrumbList).
36+
37+
To verify the site in Google Search Console and Bing Webmaster Tools, choose the *HTML tag* method
38+
and put the token (only the `content` value) in repository variables `GOOGLE_SITE_VERIFICATION` and
39+
`BING_SITE_VERIFICATION` (Settings → Secrets and variables → Actions → Variables). Locally, use
40+
`PUBLIC_GOOGLE_SITE_VERIFICATION` / `PUBLIC_BING_SITE_VERIFICATION` in `.env`.
41+
42+
## Deploy
43+
44+
GitHub Pages with *Source: GitHub Actions* (Settings → Pages). Every push to `main` builds and deploys
45+
(`.github/workflows/deploy.yml`). The custom domain is `kacperpawlowski.tech` (`public/CNAME`).
46+
47+
## Licences
48+
49+
Text, figures and code: © Kacper Pawlowski. Third-party data and models are listed on
50+
[/credits/](https://kacperpawlowski.tech/credits/) - note that the KITTI data is CC BY-NC-SA 3.0 and the
51+
YOLO26 weights are AGPL-3.0.

‎astro.config.mjs‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { defineConfig } from "astro/config";
2+
import mdx from "@astrojs/mdx";
3+
import sitemap from "@astrojs/sitemap";
4+
5+
const site = "https://kacperpawlowski.tech";
6+
7+
export default defineConfig({
8+
site,
9+
trailingSlash: "always",
10+
build: { format: "directory" },
11+
// people search for "Kacper Pawlowski CV": the CV lives on the about page
12+
redirects: { "/cv": "/about/" },
13+
integrations: [
14+
mdx(),
15+
sitemap({
16+
filter: (page) => !page.includes("/og/") && !page.endsWith("/404/") && !page.endsWith("/cv/"),
17+
serialize(item) {
18+
if (item.url === `${site}/` || item.url === `${site}/no/`) {
19+
item.links = [
20+
{ lang: "en", url: `${site}/` },
21+
{ lang: "nb", url: `${site}/no/` },
22+
];
23+
item.priority = 1.0;
24+
} else if (item.url.includes("/writing/") || item.url.includes("/work/")) {
25+
item.priority = 0.8;
26+
}
27+
item.lastmod = new Date().toISOString();
28+
return item;
29+
},
30+
}),
31+
],
32+
markdown: {
33+
shikiConfig: { theme: "github-light-high-contrast", wrap: false },
34+
},
35+
image: {
36+
responsiveStyles: true,
37+
},
38+
prefetch: { prefetchAll: false, defaultStrategy: "hover" },
39+
// the lab's model worker imports ONNX Runtime as an ES module
40+
vite: { worker: { format: "es" } },
41+
});

0 commit comments

Comments
 (0)