Skip to content

Commit 3cc8138

Browse files
authored
Update Astro to v6 (#110)
* deps: update astro * deps: update * deprecate baseURL * refactor: use SVGs for fontawesome icons rather than fonts * fix: heading link icon * fix: missed wiki entries * refactor: use new non-deprecated zod instance * style: add a little more scroll padding * refactor: use Astro fonts * fix: ExternalLink wrapping
1 parent 4a92c3a commit 3cc8138

File tree

86 files changed

+1225
-1452
lines changed

Some content is hidden

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

86 files changed

+1225
-1452
lines changed

astro.config.mjs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from "astro/config";
1+
import { defineConfig, fontProviders } from "astro/config";
22

33
import mdx from "@astrojs/mdx";
44
import rehypeMermaid from "rehype-mermaid";
@@ -9,6 +9,26 @@ import rehypeMdxCodeProps from "rehype-mdx-code-props";
99
export default defineConfig({
1010
site: "https://luals.github.io",
1111
integrations: [mdx()],
12+
image: {
13+
domains: ["avatars.githubusercontent.com"],
14+
},
15+
fonts: [
16+
{
17+
name: "Poppins",
18+
cssVariable: "--font-poppins",
19+
provider: fontProviders.google(),
20+
},
21+
{
22+
name: "Prompt",
23+
cssVariable: "--font-prompt",
24+
provider: fontProviders.google(),
25+
},
26+
{
27+
name: "Source Code Pro",
28+
cssVariable: "--font-source-code-pro",
29+
provider: fontProviders.google(),
30+
},
31+
],
1232
markdown: {
1333
/** We use our own syntax highlight from highlight.js */
1434
syntaxHighlight: false,

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,33 @@
1111
"format": "prettier . --write"
1212
},
1313
"dependencies": {
14-
"@astrojs/mdx": "^4.3.13",
15-
"@fortawesome/fontawesome-free": "^7.1.0",
16-
"@types/lodash": "^4.17.23",
17-
"astro": "^5.16.11",
18-
"autoprefixer": "^10.4.23",
14+
"@astrojs/mdx": "^5.0.0",
15+
"@fortawesome/fontawesome-free": "^7.2.0",
16+
"@fortawesome/fontawesome-svg-core": "^7.2.0",
17+
"@fortawesome/free-brands-svg-icons": "^7.2.0",
18+
"@fortawesome/free-solid-svg-icons": "^7.2.0",
19+
"@types/lodash": "^4.17.24",
20+
"astro": "^6.0.3",
21+
"autoprefixer": "^10.4.27",
1922
"axios": "^1.13.6",
2023
"dayjs": "^1.11.19",
2124
"fuse.js": "^7.1.0",
2225
"highlight.js": "^11.11.1",
23-
"jsdom": "^27.4.0",
26+
"jsdom": "28.1.0",
2427
"lodash": "^4.17.23",
25-
"mermaid": "^11.12.2",
26-
"playwright": "^1.57.0",
28+
"mermaid": "^11.13.0",
29+
"playwright": "^1.58.2",
2730
"rehype-mdx-code-props": "^3.0.1",
2831
"rehype-mermaid": "^3.0.0",
29-
"sass": "^1.97.3",
32+
"sass": "^1.98.0",
3033
"sharp": "^0.34.5",
3134
"tippy.js": "^6.3.7"
3235
},
3336
"devDependencies": {
34-
"@playwright/test": "^1.57.0",
37+
"@playwright/test": "^1.58.2",
3538
"@types/canvas-confetti": "^1.9.0",
3639
"@types/jsdom": "^21.1.7",
37-
"@types/node": "^24.10.8",
40+
"@types/node": "^24.12.0",
3841
"@types/node-fetch": "^2.6.13",
3942
"@types/node-fetch-cache": "^3.0.5",
4043
"@vscode/vsce": "^3.7.1",

0 commit comments

Comments
 (0)