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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm

- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Single image used for both local dev (astro dev) and producing the static
# build (astro build). Node lives only in here — the host needs just Docker.
FROM node:20-alpine
FROM node:22-alpine

WORKDIR /app

Expand Down
10 changes: 8 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
import { defineConfig } from 'astro/config';
import { unified } from '@astrojs/markdown-remark';
import remarkSmartypants from 'remark-smartypants';
import remarkImageParagraphs from './src/lib/remark-image-paragraphs.ts';
import remarkReferences from './src/lib/remark-references.ts';
Expand All @@ -9,6 +10,9 @@ import remarkReferences from './src/lib/remark-references.ts';
export default defineConfig({
site: 'https://acl.mit.edu',
trailingSlash: 'ignore',
// Astro 7 defaults to JSX whitespace rules, which drop the spaces between
// inline elements that the templates rely on; keep the lossless compression.
compressHTML: true,
build: {
// Keep the old site's URLs: `people/index.astro` -> /people/index.html,
// `people/[kerberos].astro` -> /people/<kerberos>.html (served at /people/<kerberos>).
Expand All @@ -17,8 +21,10 @@ export default defineConfig({
markdown: {
// Typographic quotes and dashes as on the old (kramdown) site: `--` is an
// en dash, `---` an em dash.
smartypants: false,
remarkPlugins: [[/** @type {any} */ (remarkSmartypants), { dashes: 'oldschool' }], remarkReferences, remarkImageParagraphs],
processor: unified({
smartypants: false,
remarkPlugins: [[/** @type {any} */ (remarkSmartypants), { dashes: 'oldschool' }], remarkReferences, remarkImageParagraphs],
}),
syntaxHighlight: 'shiki',
shikiConfig: { theme: 'github-light' },
},
Expand Down
Loading
Loading