Skip to content

Commit b8413b7

Browse files
committed
upgrade astro to 7.x
1 parent 0e845a2 commit b8413b7

5 files changed

Lines changed: 3195 additions & 5363 deletions

File tree

astro.config.mjs

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import sitemap from "@astrojs/sitemap";
66
import remarkToc from "remark-toc";
77
import rehypeSlug from "rehype-slug";
88
import rehypeAutolinkHeadings from "rehype-autolink-headings";
9+
import { unified } from "@astrojs/markdown-remark";
910
import metaTags from "astro-meta-tags";
1011
import deleteUnusedImages from "astro-delete-unused-images";
1112
import { execSync } from "node:child_process";
@@ -131,24 +132,25 @@ export default defineConfig({
131132
plugins: [tailwindcss(), syncKeynoterImages()],
132133
},
133134
markdown: {
134-
remarkPlugins: [
135-
[
136-
remarkToc,
137-
{
138-
heading: "contents",
139-
},
135+
processor: unified({
136+
remarkPlugins: [
137+
[
138+
remarkToc,
139+
{
140+
heading: "contents",
141+
},
142+
],
140143
],
141-
],
142-
rehypePlugins: [
143-
rehypeSlug,
144-
[
145-
rehypeAutolinkHeadings,
146-
{
147-
behavior: "wrap",
148-
},
144+
rehypePlugins: [
145+
rehypeSlug,
146+
[
147+
rehypeAutolinkHeadings,
148+
{
149+
behavior: "wrap",
150+
},
151+
],
149152
],
150-
],
151-
plugins: [tailwindcss()],
153+
}),
152154
},
153155
site: process.env.SITE_URL || "https://ep2026.europython.eu",
154156
redirects: {

package.json

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
},
1616
"dependencies": {
1717
"@astro-community/astro-embed-youtube": "^0.5.10",
18-
"@astrojs/check": "^0.9.9",
19-
"@astrojs/mdx": "^4.3.14",
18+
"@astrojs/check": "^0.9.10",
19+
"@astrojs/markdown-remark": "^7.2.2",
20+
"@astrojs/mdx": "^7.0.5",
2021
"@astrojs/sitemap": "^3.7.3",
21-
"@astrojs/svelte": "^7.2.5",
22+
"@astrojs/svelte": "^9.0.1",
2223
"@astrojs/ts-plugin": "^1.10.10",
2324
"@fortawesome/fontawesome-free": "^6.7.2",
24-
"@nanostores/persistent": "^1.3.4",
25+
"@nanostores/persistent": "^1.3.5",
2526
"@tailwindcss/typography": "^0.5.20",
26-
"@tailwindcss/vite": "^4.3.2",
27-
"astro": "^6.4.8",
28-
"astro-compress": "^2.4.1",
27+
"@tailwindcss/vite": "^4.3.3",
28+
"astro": "^7.2.0",
29+
"astro-compress": "^2.4.2",
2930
"astro-delete-unused-images": "^1.0.3",
3031
"astro-meta-tags": "^0.2.2",
3132
"astro-pagefind": "^1.8.6",
@@ -34,31 +35,31 @@
3435
"date-fns-tz": "^3.2.0",
3536
"lite-youtube-embed": "^0.3.4",
3637
"marked": "^16.4.2",
37-
"nanostores": "^1.4.0",
38+
"nanostores": "^1.4.2",
3839
"pagefind": "^1.5.2",
3940
"rehype-autolink-headings": "^7.1.0",
4041
"rehype-slug": "^6.0.0",
4142
"remark-toc": "^9.0.0",
4243
"sharp": "^0.34.5",
43-
"svelte": "^5.56.4",
44-
"tailwindcss": "^4.3.2",
44+
"svelte": "^5.56.8",
45+
"tailwindcss": "^4.3.3",
4546
"typescript": "^5.9.3",
4647
"vite": "^6.4.3"
4748
},
4849
"devDependencies": {
4950
"@eslint/js": "^10.0.1",
50-
"eslint": "^10.6.0",
51+
"eslint": "^10.8.0",
5152
"eslint-plugin-astro": "^2.1.1",
52-
"eslint-plugin-svelte": "^3.20.0",
53-
"globals": "^17.7.0",
53+
"eslint-plugin-svelte": "^3.22.0",
54+
"globals": "^17.9.0",
5455
"husky": "^9.1.7",
55-
"lint-staged": "^17.0.8",
56+
"lint-staged": "^17.3.0",
5657
"oxipng": "^1.0.1",
57-
"prettier": "^3.9.4",
58+
"prettier": "^3.9.6",
5859
"prettier-plugin-astro": "^0.14.1",
59-
"svgo": "^4.0.1",
60+
"svgo": "^4.0.2",
6061
"typescript": "^5.8.3",
61-
"typescript-eslint": "^8.62.1"
62+
"typescript-eslint": "^8.66.0"
6263
},
6364
"prettier": {
6465
"proseWrap": "always"
@@ -87,7 +88,11 @@
8788
"astro@<6.1.10": ">=6.1.10",
8889
"esbuild@>=0.27.3 <0.28.1": ">=0.28.1",
8990
"astro@<6.3.3": ">=6.3.3",
90-
"astro@<6.4.6": ">=6.4.6"
91+
"astro@<6.4.6": ">=6.4.6",
92+
"astro@>=2.9.0 <=7.0.9": ">=7.1.0",
93+
"astro@<7.0.6": ">=7.0.6",
94+
"astro@>=3.10.0 <7.0.4": ">=7.0.4",
95+
"sharp@<0.35.0": ">=0.35.0"
9196
}
9297
}
9398
}

0 commit comments

Comments
 (0)