Skip to content

Commit bdce595

Browse files
committed
Pre-commit.
1 parent 6091fa9 commit bdce595

File tree

2 files changed

+118
-0
lines changed

2 files changed

+118
-0
lines changed

astro.config.mjs.orig

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
import path from "path";
2+
import { defineConfig } from "astro/config";
3+
import mdx from "@astrojs/mdx";
4+
import sitemap from "@astrojs/sitemap";
5+
import react from "@astrojs/react";
6+
import tailwind from "@astrojs/tailwind";
7+
import remarkToc from "remark-toc";
8+
import rehypeSlug from "rehype-slug";
9+
import rehypeAutolinkHeadings from "rehype-autolink-headings";
10+
import metaTags from "astro-meta-tags";
11+
import pagefind from "astro-pagefind";
12+
import deleteUnusedImages from "astro-delete-unused-images";
13+
14+
// https://astro.build/config
15+
export default defineConfig({
16+
vite: {
17+
define: {
18+
"process.env.VITE_BUILD_TIME": JSON.stringify(new Date().toISOString()),
19+
},
20+
resolve: {
21+
alias: {
22+
"@data": path.resolve("./src/data"),
23+
"@components": path.resolve("./src/components"),
24+
"@sections": path.resolve("./src/components/sections"),
25+
"@layouts": path.resolve("./src/layouts"),
26+
"@ui": path.resolve("./src/components/ui"),
27+
"@assets": path.resolve("./src/assets"),
28+
"@i18n": path.resolve("./src/i18n"),
29+
"@src": path.resolve("./src"),
30+
},
31+
},
32+
},
33+
markdown: {
34+
remarkPlugins: [
35+
[
36+
remarkToc,
37+
{
38+
heading: "contents",
39+
},
40+
],
41+
],
42+
rehypePlugins: [
43+
rehypeSlug,
44+
[
45+
rehypeAutolinkHeadings,
46+
{
47+
behavior: "wrap",
48+
},
49+
],
50+
],
51+
},
52+
site: process.env.SITE_URL || "https://ep2025.europython.eu",
53+
redirects: {
54+
"/c-api-summit/": "/programme/c-api-summit/",
55+
"/cfp/": "/programme/cfp/",
56+
"/planning/": "https://forms.gle/riw6CvML8ck94A4V9",
57+
"/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18",
58+
"/rust-summit/": "/programme/rust-summit/",
59+
"/sponsor/": "/sponsorship/sponsor/",
60+
"/voting/": "/programme/voting/",
61+
"/wasm-summit/": "/programme/wasm-summit/",
62+
"/sessions/": "/programme/sessions/",
63+
},
64+
integrations: [
65+
mdx(),
66+
sitemap(),
67+
react(),
68+
tailwind({
69+
nesting: true,
70+
}),
71+
metaTags(),
72+
pagefind(),
73+
deleteUnusedImages(),
74+
],
75+
output: "static",
76+
build: {
77+
minify: true,
78+
},
79+
<<<<<<< HEAD
80+
image: {
81+
experimentalLayout: "responsive",
82+
},
83+
experimental: {
84+
responsiveImages: true,
85+
=======
86+
experimental: {
87+
svg: true,
88+
>>>>>>> origin/ep2025
89+
},
90+
});

tsconfig.json.orig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": "astro/tsconfigs/strict",
3+
"compilerOptions": {
4+
"strictNullChecks": true,
5+
"noImplicitAny": false,
6+
"jsx": "react-jsx",
7+
"jsxImportSource": "react",
8+
"paths": {
9+
<<<<<<< HEAD
10+
"@components/*": ["./src/components/*"],
11+
"@layouts/*": ["./src/layouts/*"],
12+
"@ui/*": ["./src/components/ui/*"],
13+
"@assets/*": ["./src/assets/*"],
14+
"@i18n/*": ["./src/i18n/*"],
15+
"@src/*": ["./src/*"]
16+
=======
17+
"@data/*": ["src/data/*"],
18+
"@components/*": ["src/components/*"],
19+
"@sections/*": ["src/components/sections/*"],
20+
"@ui/*": ["src/components/ui/*"],
21+
"@layouts/*": ["src/layouts/*"],
22+
"@assets/*": ["src/assets/*"],
23+
"@i18n/*": ["src/i18n/*"],
24+
"@src/*": ["src/*"]
25+
>>>>>>> origin/ep2025
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)