Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
node-version: [20]
node-version: [22]

steps:
- name: "☁️ Checkout repository"
Expand All @@ -29,7 +29,7 @@ jobs:
- name: "📦 Install pnpm"
uses: pnpm/action-setup@v4
with:
version: 10.11.1
version: 11.9.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.11.1
version: 11.9.0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: "pnpm"

- name: Setup Pages
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
50 changes: 27 additions & 23 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig, envField, fontProviders } from "astro/config";
import { unified } from "@astrojs/markdown-remark";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import remarkToc from "remark-toc";
Expand All @@ -14,18 +15,28 @@ import { SITE } from "./src/config";
// https://astro.build/config
export default defineConfig({
site: SITE.website,
// Astro 7 changed the default to "jsx"; keep v6 HTML-aware whitespace handling
// to avoid spacing regressions around inline elements. Revisit adopting "jsx" later.
compressHTML: true,
build: {
// Add cache busting with content hashes
inlineStylesheets: 'auto',
assets: '_astro',
inlineStylesheets: "auto",
assets: "_astro",
},
integrations: [
sitemap({
filter: page => SITE.showArchives || !page.endsWith("/archives"),
}),
],
markdown: {
remarkPlugins: [remarkToc, [remarkCollapse, { test: "Table of contents" }]],
// Astro 7 defaults to the Sätteri processor; keep the unified (remark/rehype)
// pipeline for parity in this stage. Sätteri migration happens in a later step.
processor: unified({
remarkPlugins: [
remarkToc,
[remarkCollapse, { test: "Table of contents" }],
],
}),
shikiConfig: {
// For more themes, visit https://shiki.style/themes
themes: { light: "min-light", dark: "night-owl" },
Expand All @@ -40,10 +51,6 @@ export default defineConfig({
},
},
vite: {
// eslint-disable-next-line
// @ts-ignore
// This will be fixed in Astro 6 with Vite 7 support
// See: https://github.com/withastro/astro/issues/14030
plugins: [tailwindcss()],
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
Expand All @@ -57,9 +64,9 @@ export default defineConfig({
rollupOptions: {
output: {
// Ensure unique filenames for cache busting
entryFileNames: '_astro/[name].[hash].js',
chunkFileNames: '_astro/[name].[hash].js',
assetFileNames: '_astro/[name].[hash][extname]',
entryFileNames: "_astro/[name].[hash].js",
chunkFileNames: "_astro/[name].[hash].js",
assetFileNames: "_astro/[name].[hash][extname]",
},
},
},
Expand All @@ -77,17 +84,14 @@ export default defineConfig({
}),
},
},
experimental: {
preserveScriptOrder: true,
fonts: [
{
name: "Google Sans Code",
cssVariable: "--font-google-sans-code",
provider: fontProviders.google(),
fallbacks: ["monospace"],
weights: [300, 400, 500, 600, 700],
styles: ["normal", "italic"],
},
],
},
fonts: [
{
name: "Google Sans Code",
cssVariable: "--font-google-sans-code",
provider: fontProviders.google(),
fallbacks: ["monospace"],
weights: [300, 400, 500, 600, 700],
styles: ["normal", "italic"],
},
],
});
Loading
Loading