Updated packages and config and fixed the CI/CD pipeline (I hope)
This commit is contained in:
parent
3dbd4d3b0a
commit
b04d9de788
5 changed files with 2377 additions and 1641 deletions
|
|
@ -1,8 +1,14 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
import { defineConfig, envField, fontProviders } from "astro/config";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
import remarkToc from "remark-toc";
|
||||
import remarkCollapse from "remark-collapse";
|
||||
import {
|
||||
transformerNotationDiff,
|
||||
transformerNotationHighlight,
|
||||
transformerNotationWordHighlight,
|
||||
} from "@shikijs/transformers";
|
||||
import { transformerFileName } from "./src/utils/transformers/fileName";
|
||||
import { SITE } from "./src/config";
|
||||
|
||||
// https://astro.build/config
|
||||
|
|
@ -18,23 +24,50 @@ export default defineConfig({
|
|||
shikiConfig: {
|
||||
// For more themes, visit https://shiki.style/themes
|
||||
themes: { light: "min-light", dark: "night-owl" },
|
||||
wrap: true,
|
||||
defaultColor: false,
|
||||
wrap: false,
|
||||
transformers: [
|
||||
transformerFileName({ style: "v2", hideDot: false }),
|
||||
transformerNotationHighlight(),
|
||||
transformerNotationWordHighlight(),
|
||||
transformerNotationDiff({ matchAlgorithm: "v3" }),
|
||||
],
|
||||
},
|
||||
},
|
||||
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"],
|
||||
},
|
||||
},
|
||||
image: {
|
||||
// Used for all Markdown images; not configurable per-image
|
||||
// Used for all `<Image />` and `<Picture />` components unless overridden with a prop
|
||||
experimentalLayout: "responsive",
|
||||
responsiveStyles: true,
|
||||
layout: "constrained",
|
||||
},
|
||||
env: {
|
||||
schema: {
|
||||
PUBLIC_GOOGLE_SITE_VERIFICATION: envField.string({
|
||||
access: "public",
|
||||
context: "client",
|
||||
optional: true,
|
||||
}),
|
||||
},
|
||||
},
|
||||
experimental: {
|
||||
svg: true,
|
||||
responsiveImages: true,
|
||||
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"],
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue