From 22dfa184804d9fd7a93cb8958bff47858c06ec4e Mon Sep 17 00:00:00 2001 From: damii Date: Fri, 6 Dec 2024 18:59:31 +1100 Subject: [PATCH] Fix codeblock rendering --- src/content/docs/es/whynixos.md | 5 ----- src/pages/[lang]/docs/[...slug].astro | 2 +- src/pages/[lang]/preface.astro | 2 +- src/pages/[lang]/why-nixos.astro | 2 +- tailwind.config.mjs | 26 ++++++++++++++++++-------- 5 files changed, 21 insertions(+), 16 deletions(-) delete mode 100644 src/content/docs/es/whynixos.md diff --git a/src/content/docs/es/whynixos.md b/src/content/docs/es/whynixos.md deleted file mode 100644 index 6f166ce..0000000 --- a/src/content/docs/es/whynixos.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: THIS IS A TEST ---- - -testtesttest diff --git a/src/pages/[lang]/docs/[...slug].astro b/src/pages/[lang]/docs/[...slug].astro index 789545c..2c07dd9 100644 --- a/src/pages/[lang]/docs/[...slug].astro +++ b/src/pages/[lang]/docs/[...slug].astro @@ -21,7 +21,7 @@ const { Content } = await render(entry);

{entry.data.title}

diff --git a/src/pages/[lang]/preface.astro b/src/pages/[lang]/preface.astro index a16d24d..4114533 100644 --- a/src/pages/[lang]/preface.astro +++ b/src/pages/[lang]/preface.astro @@ -22,7 +22,7 @@ const { Content } = await render(entry);

{entry.data.title}

diff --git a/src/pages/[lang]/why-nixos.astro b/src/pages/[lang]/why-nixos.astro index 05492a3..acb8354 100644 --- a/src/pages/[lang]/why-nixos.astro +++ b/src/pages/[lang]/why-nixos.astro @@ -22,7 +22,7 @@ const { Content } = await render(entry);

{entry.data.title}

diff --git a/tailwind.config.mjs b/tailwind.config.mjs index b7be980..3ca0379 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -1,5 +1,5 @@ /** @type {import('tailwindcss').Config} */ -const plugin = require('tailwindcss/plugin'); +const plugin = require("tailwindcss/plugin"); export default { content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], @@ -22,7 +22,17 @@ export default { }, }, typography: ({ theme }) => ({ - test: { + DEFAULT: { + css: { + "code::before": { + content: "", + }, + "code::after": { + content: "", + }, + }, + }, + colors: { css: { "--tw-prose-body": theme("colors.theme[900]"), "--tw-prose-headings": theme("colors.theme[900]"), @@ -61,10 +71,10 @@ export default { }), }, }, - plugins: [ - require("@tailwindcss/typography"), - plugin(function({ addVariant }) { - addVariant('children', '&>*') - }) -], + plugins: [ + require("@tailwindcss/typography"), + plugin(function ({ addVariant }) { + addVariant("children", "&>*"); + }), + ], };