diff --git a/website/astro.config.mjs b/website/astro.config.mjs index b1eb8842c..8c7bfb0e3 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -115,6 +115,13 @@ export default defineConfig({ content: '@htmlhint@mastodon.social', }, }, + { + tag: 'script', + attrs: { + type: 'speculationrules', + }, + content: `\n{\n "prerender": [{\n "where": {\n "href_matches": "/*"\n },\n "eagerness": "moderate"\n }]\n}\n`, + }, ], sidebar: [ { diff --git a/website/package-lock.json b/website/package-lock.json index 8f3050069..3408702d1 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -9,8 +9,8 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "@astrojs/starlight": "^0.35.0", - "astro": "^5.11.2", + "@astrojs/starlight": "^0.35.1", + "astro": "^5.12.0", "sharp": "^0.34.3", "starlight-llms-txt": "^0.5.1" }, @@ -117,9 +117,9 @@ } }, "node_modules/@astrojs/starlight": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.35.0.tgz", - "integrity": "sha512-YmHSj2KkzZ2B1ST/ZMqfvctPz1nbw78kBwHF4W2BFKnDFJhCTHFDW81IByT1Dwf52f81LPs8vlOTXtxSZq6yKQ==", + "version": "0.35.1", + "resolved": "https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.35.1.tgz", + "integrity": "sha512-/hshlAayMd3B+E+h8wY6JWT1lNmX/K1+ugiZPirW5XFo5QUcNMk/Bsa4oHgg+TFoU6kbxPtijo0VppATfD9XuA==", "license": "MIT", "dependencies": { "@astrojs/markdown-remark": "^6.3.1", @@ -2082,14 +2082,14 @@ } }, "node_modules/astro": { - "version": "5.11.2", - "resolved": "https://registry.npmjs.org/astro/-/astro-5.11.2.tgz", - "integrity": "sha512-jKJCqp0PMZ1ZpP2xySghsJ1xK7ZNh/ISTRNBf/7khY3iEGq/zup49ZMhNZXK5Cd/dFWP/pdBNHD91SByA42IvQ==", + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/astro/-/astro-5.12.0.tgz", + "integrity": "sha512-Oov5JsMFHuUmuO+Nx6plfv3nQNK1Xl/8CgLvR8lBhZTjYnraxhuPX5COVAzbom+YLgwaDfK7KBd8zOEopRf9mg==", "license": "MIT", "dependencies": { "@astrojs/compiler": "^2.12.2", "@astrojs/internal-helpers": "0.6.1", - "@astrojs/markdown-remark": "6.3.2", + "@astrojs/markdown-remark": "6.3.3", "@astrojs/telemetry": "3.3.0", "@capsizecss/unpack": "^2.4.0", "@oslojs/encoding": "^1.1.0", @@ -2132,6 +2132,7 @@ "rehype": "^13.0.2", "semver": "^7.7.1", "shiki": "^3.2.1", + "smol-toml": "^1.3.4", "tinyexec": "^0.3.2", "tinyglobby": "^0.2.12", "tsconfck": "^3.1.5", @@ -2177,6 +2178,35 @@ "astro": "^4.0.0-beta || ^5.0.0-beta || ^3.3.0" } }, + "node_modules/astro/node_modules/@astrojs/markdown-remark": { + "version": "6.3.3", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-6.3.3.tgz", + "integrity": "sha512-DDRtD1sPvAuA7ms2btc9A7/7DApKqgLMNrE6kh5tmkfy8utD0Z738gqd3p5aViYYdUtHIyEJ1X4mCMxfCfu15w==", + "license": "MIT", + "dependencies": { + "@astrojs/internal-helpers": "0.6.1", + "@astrojs/prism": "3.3.0", + "github-slugger": "^2.0.0", + "hast-util-from-html": "^2.0.3", + "hast-util-to-text": "^4.0.2", + "import-meta-resolve": "^4.1.0", + "js-yaml": "^4.1.0", + "mdast-util-definitions": "^6.0.0", + "rehype-raw": "^7.0.0", + "rehype-stringify": "^10.0.1", + "remark-gfm": "^4.0.1", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.1.2", + "remark-smartypants": "^3.0.2", + "shiki": "^3.2.1", + "smol-toml": "^1.3.4", + "unified": "^11.0.5", + "unist-util-remove-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "unist-util-visit-parents": "^6.0.1", + "vfile": "^6.0.3" + } + }, "node_modules/astro/node_modules/@img/sharp-darwin-arm64": { "version": "0.33.5", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", diff --git a/website/package.json b/website/package.json index 939c5fdba..c80621c35 100644 --- a/website/package.json +++ b/website/package.json @@ -25,8 +25,8 @@ "stylelint": "npx stylelint@latest \"src/*.css\" --fix -f verbose" }, "dependencies": { - "@astrojs/starlight": "^0.35.0", - "astro": "^5.11.2", + "@astrojs/starlight": "^0.35.1", + "astro": "^5.12.0", "sharp": "^0.34.3", "starlight-llms-txt": "^0.5.1" },