From 8bfb251eb3b983f88cd33f310bbebf12417e349a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 18 Jun 2026 10:05:16 +0200 Subject: [PATCH 1/2] Add Deno to package-manager options --- src/mdx/Npm.astro | 4 ++-- src/mdx/Npx.astro | 4 ++-- src/mdx/NpxCompact.astro | 2 +- src/ui/CenteredLayout.astro | 8 ++++---- src/ui/DocsLayout.astro | 8 ++++---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/mdx/Npm.astro b/src/mdx/Npm.astro index 15e13e22d..de071965c 100644 --- a/src/mdx/Npm.astro +++ b/src/mdx/Npm.astro @@ -1,7 +1,7 @@ --- -const items = ["npm", "yarn", "pnpm", "bun"]; +const items = ["npm", "yarn", "pnpm", "bun", "deno"]; const html = await Astro.slots.render("default"); -const installCommands = ["npm i", "yarn add", "pnpm add", "bun add"]; +const installCommands = ["npm i", "yarn add", "pnpm add", "bun add", "deno add"]; const installLines = html.replaceAll(/<\/?p>/g, "").replaceAll('—', '--').split("\n"); const getCopyButton = (index: number) => { diff --git a/src/mdx/Npx.astro b/src/mdx/Npx.astro index dcecc1f5d..795084cbd 100644 --- a/src/mdx/Npx.astro +++ b/src/mdx/Npx.astro @@ -1,7 +1,7 @@ --- -const items = ["npm", "yarn", "pnpm", "bun"]; +const items = ["npm", "yarn", "pnpm", "bun", "deno"]; const html = await Astro.slots.render("default"); -const installCommands = ["npx", "yarn", "pnpm", "bunx"]; +const installCommands = ["npx", "yarn", "pnpm", "bunx", "deno run -A"]; const installLines = html .replaceAll(/<\/?p>/g, "") .replaceAll("—", "--") diff --git a/src/mdx/NpxCompact.astro b/src/mdx/NpxCompact.astro index d262ad463..987e46338 100644 --- a/src/mdx/NpxCompact.astro +++ b/src/mdx/NpxCompact.astro @@ -1,6 +1,6 @@ --- const html = await Astro.slots.render("default"); -const installCommands = ["npx", "yarn", "pnpm", "bun"]; +const installCommands = ["npx", "yarn", "pnpm", "bun", "deno run -A"]; const installLines = html.replaceAll(/<\/?p>/g, "").replaceAll('—', '--').split("\n"); const getInstallCommands = () => installLines diff --git a/src/ui/CenteredLayout.astro b/src/ui/CenteredLayout.astro index bccbfcd38..2a2b59b3c 100644 --- a/src/ui/CenteredLayout.astro +++ b/src/ui/CenteredLayout.astro @@ -137,7 +137,7 @@ const { title, tree } = await getContentTree({