Skip to content

Commit d0ebf5d

Browse files
authored
Merge branch 'ep2025' into ep2025-session-types
2 parents 7b23231 + 62314df commit d0ebf5d

Some content is hidden

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

83 files changed

+7724
-2601
lines changed

.github/workflows/rtd-preview.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ on:
33
pull_request_target:
44
types:
55
- opened
6+
workflow_dispatch:
67

78
permissions:
89
pull-requests: write
910

1011
jobs:
1112
documentation-links:
13+
if: github.event.pull_request.head.repo.fork == true
1214
runs-on: ubuntu-latest
1315
timeout-minutes: 10
1416
steps:
1517
- uses: readthedocs/actions/preview@v1
1618
with:
17-
project-slug: "ep-website-demo"
19+
project-slug: "ep-website"
1820
single-version: "true"
1921
message-template: "🖼️ Preview available 🖼️ : {docs-pr-index-url}"

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ check:
4343

4444
build:
4545
pnpm build
46-
# NOTE: also let's find a better way to do this :D
47-
find ./dist/_astro/ -iname '*.jpg' -delete
4846

4947
preview: RELEASES_DIR = $(VPS_PREVIEW_PATH)/$(SAFE_BRANCH)/releases
5048
preview: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)

astro.config.mjs

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import path, { dirname } from "path";
2+
import { fileURLToPath } from "url";
13
import { defineConfig } from "astro/config";
24
import mdx from "@astrojs/mdx";
35
import { h } from "hastscript";
@@ -9,9 +11,29 @@ import rehypeSlug from "rehype-slug";
911
import rehypeAutolinkHeadings from "rehype-autolink-headings";
1012
import metaTags from "astro-meta-tags";
1113
import pagefind from "astro-pagefind";
14+
import deleteUnusedImages from "astro-delete-unused-images";
15+
16+
const __filename = fileURLToPath(import.meta.url);
17+
const __dirname = dirname(__filename); // @type-check enabled!
1218

1319
// https://astro.build/config
1420
export default defineConfig({
21+
vite: {
22+
define: {
23+
"process.env.VITE_BUILD_TIME": JSON.stringify(new Date().toISOString()),
24+
},
25+
resolve: {
26+
alias: {
27+
"@components": path.resolve("./src/components"),
28+
"@sections": path.resolve("./src/components/sections"),
29+
"@layouts": path.resolve("./src/layouts"),
30+
"@ui": path.resolve("./src/components/ui"),
31+
"@assets": path.resolve("./src/assets"),
32+
"@i18n": path.resolve("./src/i18n"),
33+
"@src": path.resolve("./src"),
34+
},
35+
},
36+
},
1537
markdown: {
1638
remarkPlugins: [
1739
[
@@ -34,7 +56,18 @@ export default defineConfig({
3456
],
3557
],
3658
},
37-
site: "https://ep2025.europython.eu",
59+
site: process.env.SITE_URL || "https://ep2025.europython.eu",
60+
redirects: {
61+
"/c-api-summit/": "/programme/c-api-summit/",
62+
"/programme/cfp/": "/programme/cfp/",
63+
"/planning/": "https://forms.gle/riw6CvML8ck94A4V9",
64+
"/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18",
65+
"/rust-summit/": "/programme/rust-summit/",
66+
"/sponsor/": "/sponsorship/sponsor/",
67+
"/voting/": "/programme/voting/",
68+
"/wasm-summit/": "/programme/wasm-summit/",
69+
"/sessions/": "/programme/sessions/",
70+
},
3871
integrations: [
3972
mdx(),
4073
sitemap(),
@@ -44,6 +77,10 @@ export default defineConfig({
4477
}),
4578
metaTags(),
4679
pagefind(),
80+
deleteUnusedImages(),
4781
],
4882
output: "static",
83+
build: {
84+
minify: true,
85+
},
4986
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@types/react": "^19.0.12",
2323
"@types/react-dom": "^19.0.4",
2424
"astro": "^5.1.6",
25+
"astro-delete-unused-images": "^1.0.3",
2526
"astro-meta-tags": "^0.3.1",
2627
"astro-pagefind": "^1.8.1",
2728
"clsx": "^2.1.1",

0 commit comments

Comments
 (0)